1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00

Fix the another big small typo and preemptively fix perl invocation, too.

This commit is contained in:
Michael Nottebrock 2005-01-30 10:29:22 +00:00
parent 9214fb9828
commit b073a2656d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127691
2 changed files with 10 additions and 8 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= alignmargins
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= http://people.freebsd.org/~lofi/ \
http://www.linuxprinting.org/download/printing/
@ -16,7 +17,7 @@ MAINTAINER= lofi@FreeBSD.org
COMMENT= Utility script to generate custom margins in PPDs for CUPS
NO_BUILD= yes
USE_PERL= yes
USE_PERL5= yes
USE_REINPLACE= yes
do-extract:

View File

@ -1,12 +1,13 @@
--- alignmargins.orig Fri Jan 28 11:19:27 2005
+++ alignmargins Fri Jan 28 11:22:34 2005
--- alignmargins.orig Sun Jan 30 11:24:53 2005
+++ alignmargins Sun Jan 30 11:25:06 2005
@@ -1,17 +1,17 @@
#! /usr/bin/perl
-#! /usr/bin/perl
+#! /usr/bin/env perl
$0 =~ m!^(.*)/[^/]+$!;
my $programpath = $1;
-my $printcommand = '/usr/bin/lpr -P ';
-my $egrep = '/bin/egrep';
+my $printcommand = '%%LOCALBASE%%/bin/lpr -P ';
+my $printcommand = '/usr/local/bin/lpr -P ';
+my $egrep = '/usr/bin/egrep';
my $cat = '/bin/cat';
my $cut = '/usr/bin/cut';
@ -17,9 +18,9 @@
-my $adjustmentpagepath = ($programpath ? "${programpath}:" : "") . '.:~:/usr/share/alignmargins:/usr/local/share/alignmargins:/usr/share:/usr/local/share:/usr/share/printer-testpages:/usr/local/share/printer-testpages:/usr/share/ghostscript/*/lib:/usr/local/share/ghostscript/*/lib';
-my $ppddir = '/etc/cups/ppd';
-my $printerconffile = '/etc/cups/printers.conf';
+my $adjustmentpagepath = ($programpath ? "${programpath}:" : "") . '.:~:%%DATADIR%%:/usr/share/alignmargins:/usr/local/share/alignmargins:/usr/share:/usr/local/share:/usr/share/printer-testpages:/usr/local/share/printer-testpages:/usr/share/ghostscript/*/lib:/usr/local/share/ghostscript/*/lib';
+my $ppddir = '%%LOCALBASE%%/etc/cups/ppd';
+my $printerconffile = '%%LOCALBASE%%/etc/cups/printers.conf';
+my $adjustmentpagepath = ($programpath ? "${programpath}:" : "") . '.:~:/usr/local/share/alignmargins:/usr/share/alignmargins:/usr/local/share/alignmargins:/usr/share:/usr/local/share:/usr/share/printer-testpages:/usr/local/share/printer-testpages:/usr/share/ghostscript/*/lib:/usr/local/share/ghostscript/*/lib';
+my $ppddir = '/usr/local/etc/cups/ppd';
+my $printerconffile = '/usr/local/etc/cups/printers.conf';
# Find "ćlign.ps"