mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Add alignmargins, a utility script to generate custom margins in PPDs for
CUPS.
This commit is contained in:
parent
a2ca357e34
commit
b4334e3825
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127541
@ -14,6 +14,7 @@
|
||||
SUBDIR += acroread5-commfont
|
||||
SUBDIR += adobe-cmaps
|
||||
SUBDIR += afm
|
||||
SUBDIR += alignmargins
|
||||
SUBDIR += amspsfnt
|
||||
SUBDIR += apsfilter
|
||||
SUBDIR += asprint
|
||||
|
43
print/alignmargins/Makefile
Normal file
43
print/alignmargins/Makefile
Normal file
@ -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>
|
4
print/alignmargins/distinfo
Normal file
4
print/alignmargins/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (alignmargins) = 3a6c4d03f1cd02e9adb47e4197c8549c
|
||||
SIZE (alignmargins) = 8089
|
||||
MD5 (align.ps) = a41ca958bf2c7073cf12f980c2231eb5
|
||||
SIZE (align.ps) = 5352
|
25
print/alignmargins/files/patch-alignmargins
Normal file
25
print/alignmargins/files/patch-alignmargins
Normal file
@ -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"
|
||||
|
5
print/alignmargins/pkg-descr
Normal file
5
print/alignmargins/pkg-descr
Normal file
@ -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
|
3
print/alignmargins/pkg-plist
Normal file
3
print/alignmargins/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
bin/alignmargins
|
||||
%%DATADIR%%/align.ps
|
||||
@dirrm %%DATADIR%%
|
Loading…
Reference in New Issue
Block a user