diff options
author | lofi <lofi@FreeBSD.org> | 2005-01-28 18:49:14 +0800 |
---|---|---|
committer | lofi <lofi@FreeBSD.org> | 2005-01-28 18:49:14 +0800 |
commit | 9b80b0f14b7d6869be406be1583b3ab56604afc8 (patch) | |
tree | 5ad6390143a16d788b5f926d373f75aaa51b39ea /print | |
parent | e7f86a4b7176820aa10d19a97740d878b19666a2 (diff) | |
download | freebsd-ports-gnome-9b80b0f14b7d6869be406be1583b3ab56604afc8.tar.gz freebsd-ports-gnome-9b80b0f14b7d6869be406be1583b3ab56604afc8.tar.zst freebsd-ports-gnome-9b80b0f14b7d6869be406be1583b3ab56604afc8.zip |
Add alignmargins, a utility script to generate custom margins in PPDs for
CUPS.
Diffstat (limited to 'print')
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/alignmargins/Makefile | 43 | ||||
-rw-r--r-- | print/alignmargins/distinfo | 4 | ||||
-rw-r--r-- | print/alignmargins/files/patch-alignmargins | 25 | ||||
-rw-r--r-- | print/alignmargins/pkg-descr | 5 | ||||
-rw-r--r-- | print/alignmargins/pkg-plist | 3 |
6 files changed, 81 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile index f659a3ae3a55..26f26a6ed92f 100644 --- a/print/Makefile +++ b/print/Makefile @@ -14,6 +14,7 @@ SUBDIR += acroread5-commfont SUBDIR += adobe-cmaps SUBDIR += afm + SUBDIR += alignmargins SUBDIR += amspsfnt SUBDIR += apsfilter SUBDIR += asprint diff --git a/print/alignmargins/Makefile b/print/alignmargins/Makefile new file mode 100644 index 000000000000..aa5ec2e6fcb0 --- /dev/null +++ b/print/alignmargins/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: alignmargins +# Date created: 2005-01-28 +# Whom: Michael Nottebrock <lofi@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= alignmargins +PORTVERSION= 1.0 +CATEGORIES= print +MASTER_SITES= http://people.freebsd.org/~lofi/ \ + http://www.linuxprinting.org/download/printing/ +DISTFILES= alignmargins align.ps + +MAINTAINER= lofi@FreeBSD.org +COMMENT= Utility script to generate custom margins in PPDs for CUPS + +NO_BUILD= yes +USE_PERL= yes +USE_REINPLACE= yes + +do-extract: + @${RM} -rf ${WRKDIR} + @${MKDIR} ${WRKDIR} + @${MKDIR} ${WRKSRC} + @for distfile in ${EXTRACT_ONLY}; do \ + if ! (cd ${WRKDIR} && ${CP} ${_DISTDIR}/$$distfile ${WRKSRC});\ + then \ + exit 1; \ + fi \ + done + +post-patch: + ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ + -e 's|%%DATADIR%%|${DATADIR}|g' \ + ${WRKSRC}/alignmargins + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/alignmargins ${LOCALBASE}/bin + ${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/align.ps ${DATADIR} + +.include <bsd.port.mk> diff --git a/print/alignmargins/distinfo b/print/alignmargins/distinfo new file mode 100644 index 000000000000..9fb8b552e796 --- /dev/null +++ b/print/alignmargins/distinfo @@ -0,0 +1,4 @@ +MD5 (alignmargins) = 3a6c4d03f1cd02e9adb47e4197c8549c +SIZE (alignmargins) = 8089 +MD5 (align.ps) = a41ca958bf2c7073cf12f980c2231eb5 +SIZE (align.ps) = 5352 diff --git a/print/alignmargins/files/patch-alignmargins b/print/alignmargins/files/patch-alignmargins new file mode 100644 index 000000000000..20983d8a631f --- /dev/null +++ b/print/alignmargins/files/patch-alignmargins @@ -0,0 +1,25 @@ +--- alignmargins.orig Fri Jan 28 11:19:27 2005 ++++ alignmargins Fri Jan 28 11:22:34 2005 +@@ -1,17 +1,17 @@ + #! /usr/bin/perl + $0 =~ m!^(.*)/[^/]+$!; + my $programpath = $1; +-my $printcommand = '/usr/bin/lpr -P '; +-my $egrep = '/bin/egrep'; ++my $printcommand = '%%LOCALBASE%%/bin/lpr -P '; ++my $egrep = '/usr/bin/egrep'; + my $cat = '/bin/cat'; + my $cut = '/usr/bin/cut'; + my $head = '/usr/bin/head'; + my $tail = '/usr/bin/tail'; + my $wc = '/usr/bin/wc'; + my $adjustmentpagename = 'align.ps'; +-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'; + + # Find "ælign.ps" + diff --git a/print/alignmargins/pkg-descr b/print/alignmargins/pkg-descr new file mode 100644 index 000000000000..fb2206c6ba93 --- /dev/null +++ b/print/alignmargins/pkg-descr @@ -0,0 +1,5 @@ +Utility script which allows you to interactively adjust the default printer +margin settings with the help of a special test page and saves them into a PPD +for CUPS. + +WWW: http://www.linuxprinting.org diff --git a/print/alignmargins/pkg-plist b/print/alignmargins/pkg-plist new file mode 100644 index 000000000000..bada46007f73 --- /dev/null +++ b/print/alignmargins/pkg-plist @@ -0,0 +1,3 @@ +bin/alignmargins +%%DATADIR%%/align.ps +@dirrm %%DATADIR%% |