diff options
author | Oliver Braun <obraun@FreeBSD.org> | 2003-08-06 19:27:25 +0000 |
---|---|---|
committer | Oliver Braun <obraun@FreeBSD.org> | 2003-08-06 19:27:25 +0000 |
commit | b653323da3e93c14fa926852e5206f7ba6e0b156 (patch) | |
tree | 757bd2fbe7145332b24b52447e4bd96b47b76af7 /print/muttprint | |
parent | Update to DAT 4283 (diff) |
* Set papersize in muttprint.
* Add a 'WITH_CUPS' knob to have muttprint use CUPS by default.
* Look for global conffile under ${PREFIX}/etc/
* Make portlint happy: use DOCSDIR and SITE_PERL
PR: ports/55317
Submitted by: Glenn Johnson <gjohnson@srrc.ars.usda.gov>
Notes
Notes:
svn path=/head/; revision=86398
Diffstat (limited to 'print/muttprint')
-rw-r--r-- | print/muttprint/Makefile | 33 | ||||
-rw-r--r-- | print/muttprint/files/patch-ab | 44 | ||||
-rw-r--r-- | print/muttprint/pkg-plist | 100 |
3 files changed, 122 insertions, 55 deletions
diff --git a/print/muttprint/Makefile b/print/muttprint/Makefile index 73c9f3876609..247933d62f57 100644 --- a/print/muttprint/Makefile +++ b/print/muttprint/Makefile @@ -22,8 +22,12 @@ RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX \ psnup:${PORTSDIR}/print/psutils-${PAPERSIZE} \ uncompface:${PORTSDIR}/mail/faces \ convert:${PORTSDIR}/graphics/ImageMagick \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp + ${SITE_PERL}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate \ + ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp +.if defined(WITH_CUPS) +RUN_DEPENDS+= cupstestppd:${PORTSDIR}/print/cups-lpr \ + espgs:${PORTSDIR}/print/cups-pstoraster +.endif USE_REINPLACE= yes REINPLACE_ARGS= -i "" @@ -33,10 +37,22 @@ ALL_TARGET= nothing MAN1= muttprint.1 MANCOMPRESSED= yes +.if defined(WITH_CUPS) +PRINT_COMMAND=CUPS +.else +PRINT_COMMAND=lpr -P$$PRINTER +.endif + .if !defined(NOPORTDOCS) INSTALL_TARGET=install-with-doc .endif +pre-everything:: + @${ECHO} + @${ECHO} Set PAPERSIZE=A4 if you need that paper size. + @${ECHO} Set WITH_CUPS=yes if you want to use CUPS. + @${ECHO} + post-patch: @${RM} -f ${WRKSRC}/pics/*.orig @${GUNZIP_CMD} ${WRKSRC}/doc/manpages/*/muttprint.1.gz @@ -47,6 +63,19 @@ post-patch: s|/usr/lib|${PREFIX}/lib|g' \ ${WRKSRC}/doc/manpages/*/muttprint.1 \ ${WRKSRC}/doc/manual/*/manual-*/*.html +.if ${PAPERSIZE}==a4 + @${REINPLACE_CMD} 's|%%PAPERSIZE%%|${PAPERSIZE:U}|' \ + ${WRKSRC}/muttprint +.else + @${REINPLACE_CMD} 's|%%PAPERSIZE%%|${PAPERSIZE}|' \ + ${WRKSRC}/muttprint +.endif + @${REINPLACE_CMD} 's|%%PRINT_COMMAND%%|${PRINT_COMMAND}| ; \ + s|%%PREFIX%%|${PREFIX}|' \ + ${WRKSRC}/muttprint +.if defined(WITH_CUPS) + @${REINPLACE_CMD} 's|lpr $$CUPS_OPTIONS|${PREFIX}/bin/lpr $$CUPS_OPTIONS|' ${WRKSRC}/muttprint +.endif @${GZIP_CMD} ${WRKSRC}/doc/manpages/*/muttprint.1 .include <bsd.port.mk> diff --git a/print/muttprint/files/patch-ab b/print/muttprint/files/patch-ab index 3061f817c5f8..cc915bf6b6ca 100644 --- a/print/muttprint/files/patch-ab +++ b/print/muttprint/files/patch-ab @@ -1,6 +1,35 @@ ---- muttprint.orig Sat Apr 26 19:18:18 2003 -+++ muttprint Sat Apr 26 23:36:53 2003 -@@ -189,8 +189,8 @@ + +$FreeBSD$ + +--- muttprint.orig Tue May 27 14:11:31 2003 ++++ muttprint Wed Aug 6 12:28:31 2003 +@@ -79,13 +79,13 @@ + ######## 'private' Variablen für den Rest + %Config = ( + PRINTER => '', +- PRINT_COMMAND => 'lpr -P$PRINTER', ++ PRINT_COMMAND => '%%PRINT_COMMAND%%', + PENGUIN => 'on', + DUPLEX => 'off', + SPEED => '30', + PAPERSAVE => 'off', + FONT => 'Latex', +- PAPER => 'A4', ++ PAPER => '%%PAPERSIZE%%', + DEBUG => '1', + REM_SIG => 'off', + REM_QUOTE => 'off', +@@ -182,16 +182,16 @@ + } + } + +-$Config{PAPER} = getPaperConfig (); +-readConfig ("/etc/Muttprintrc", "$ENV{HOME}/.muttprintrc"); ++#$Config{PAPER} = getPaperConfig (); ++readConfig ("%%PREFIX%%/etc/Muttprintrc", "$ENV{HOME}/.muttprintrc"); + + + @print = readOpts (); if ($Config{'PENGUIN'} eq "on") { my $sharedir = findCommonDir("share"); @@ -11,3 +40,12 @@ : "off"; } +@@ -1671,7 +1671,7 @@ + Options: + + PLEASE NOTICE: These options override the corresponding settings in +-~/.muttprintrc and /etc/Muttprintrc. ++~/.muttprintrc and %%PREFIX%%/etc/Muttprintrc. + + -h, --help + This help. diff --git a/print/muttprint/pkg-plist b/print/muttprint/pkg-plist index f4902357a0c0..9e66df6aec73 100644 --- a/print/muttprint/pkg-plist +++ b/print/muttprint/pkg-plist @@ -1,48 +1,48 @@ bin/muttprint -%%PORTDOCS%%share/doc/muttprint/CHANGES -%%PORTDOCS%%share/doc/muttprint/COPYING -%%PORTDOCS%%share/doc/muttprint/INSTALL -%%PORTDOCS%%share/doc/muttprint/README -%%PORTDOCS%%share/doc/muttprint/README.es -%%PORTDOCS%%share/doc/muttprint/README.Gnus -%%PORTDOCS%%share/doc/muttprint/README.Latex -%%PORTDOCS%%share/doc/muttprint/README.translations -%%PORTDOCS%%share/doc/muttprint/manual-de/muttprint.html -%%PORTDOCS%%share/doc/muttprint/manual-de/x15.html -%%PORTDOCS%%share/doc/muttprint/manual-de/x23.html -%%PORTDOCS%%share/doc/muttprint/manual-de/x196.html -%%PORTDOCS%%share/doc/muttprint/manual-de/x703.html -%%PORTDOCS%%share/doc/muttprint/manual-de.pdf -%%PORTDOCS%%share/doc/muttprint/manual-en/muttprint.html -%%PORTDOCS%%share/doc/muttprint/manual-en/x15.html -%%PORTDOCS%%share/doc/muttprint/manual-en/x23.html -%%PORTDOCS%%share/doc/muttprint/manual-en/x195.html -%%PORTDOCS%%share/doc/muttprint/manual-en/x706.html -%%PORTDOCS%%share/doc/muttprint/manual-en.pdf -%%PORTDOCS%%share/doc/muttprint/manual-es/muttprint.html -%%PORTDOCS%%share/doc/muttprint/manual-es/x15.html -%%PORTDOCS%%share/doc/muttprint/manual-es/x23.html -%%PORTDOCS%%share/doc/muttprint/manual-es/x191.html -%%PORTDOCS%%share/doc/muttprint/manual-es/x650.html -%%PORTDOCS%%share/doc/muttprint/manual-es.pdf -%%PORTDOCS%%share/doc/muttprint/manual-it/muttprint.html -%%PORTDOCS%%share/doc/muttprint/manual-it/x15.html -%%PORTDOCS%%share/doc/muttprint/manual-it/x23.html -%%PORTDOCS%%share/doc/muttprint/manual-it/x194.html -%%PORTDOCS%%share/doc/muttprint/manual-it/x683.html -%%PORTDOCS%%share/doc/muttprint/manual-it.pdf -%%PORTDOCS%%share/doc/muttprint/manual-sl/muttprint.html -%%PORTDOCS%%share/doc/muttprint/manual-sl/x15.html -%%PORTDOCS%%share/doc/muttprint/manual-sl/x195.html -%%PORTDOCS%%share/doc/muttprint/manual-sl/x23.html -%%PORTDOCS%%share/doc/muttprint/manual-sl/x700.html -%%PORTDOCS%%share/doc/muttprint/manual-sl.pdf -%%PORTDOCS%%share/doc/muttprint/sample-muttprintrc-de -%%PORTDOCS%%share/doc/muttprint/sample-muttprintrc-en -%%PORTDOCS%%share/doc/muttprint/sample-muttprintrc-es -%%PORTDOCS%%share/doc/muttprint/sample-muttprintrc-fr -%%PORTDOCS%%share/doc/muttprint/sample-muttprintrc-it -%%PORTDOCS%%share/doc/muttprint/sample-muttprintrc-si +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/README.es +%%PORTDOCS%%%%DOCSDIR%%/README.Gnus +%%PORTDOCS%%%%DOCSDIR%%/README.Latex +%%PORTDOCS%%%%DOCSDIR%%/README.translations +%%PORTDOCS%%%%DOCSDIR%%/manual-de/muttprint.html +%%PORTDOCS%%%%DOCSDIR%%/manual-de/x15.html +%%PORTDOCS%%%%DOCSDIR%%/manual-de/x23.html +%%PORTDOCS%%%%DOCSDIR%%/manual-de/x196.html +%%PORTDOCS%%%%DOCSDIR%%/manual-de/x703.html +%%PORTDOCS%%%%DOCSDIR%%/manual-de.pdf +%%PORTDOCS%%%%DOCSDIR%%/manual-en/muttprint.html +%%PORTDOCS%%%%DOCSDIR%%/manual-en/x15.html +%%PORTDOCS%%%%DOCSDIR%%/manual-en/x23.html +%%PORTDOCS%%%%DOCSDIR%%/manual-en/x195.html +%%PORTDOCS%%%%DOCSDIR%%/manual-en/x706.html +%%PORTDOCS%%%%DOCSDIR%%/manual-en.pdf +%%PORTDOCS%%%%DOCSDIR%%/manual-es/muttprint.html +%%PORTDOCS%%%%DOCSDIR%%/manual-es/x15.html +%%PORTDOCS%%%%DOCSDIR%%/manual-es/x23.html +%%PORTDOCS%%%%DOCSDIR%%/manual-es/x191.html +%%PORTDOCS%%%%DOCSDIR%%/manual-es/x650.html +%%PORTDOCS%%%%DOCSDIR%%/manual-es.pdf +%%PORTDOCS%%%%DOCSDIR%%/manual-it/muttprint.html +%%PORTDOCS%%%%DOCSDIR%%/manual-it/x15.html +%%PORTDOCS%%%%DOCSDIR%%/manual-it/x23.html +%%PORTDOCS%%%%DOCSDIR%%/manual-it/x194.html +%%PORTDOCS%%%%DOCSDIR%%/manual-it/x683.html +%%PORTDOCS%%%%DOCSDIR%%/manual-it.pdf +%%PORTDOCS%%%%DOCSDIR%%/manual-sl/muttprint.html +%%PORTDOCS%%%%DOCSDIR%%/manual-sl/x15.html +%%PORTDOCS%%%%DOCSDIR%%/manual-sl/x195.html +%%PORTDOCS%%%%DOCSDIR%%/manual-sl/x23.html +%%PORTDOCS%%%%DOCSDIR%%/manual-sl/x700.html +%%PORTDOCS%%%%DOCSDIR%%/manual-sl.pdf +%%PORTDOCS%%%%DOCSDIR%%/sample-muttprintrc-de +%%PORTDOCS%%%%DOCSDIR%%/sample-muttprintrc-en +%%PORTDOCS%%%%DOCSDIR%%/sample-muttprintrc-es +%%PORTDOCS%%%%DOCSDIR%%/sample-muttprintrc-fr +%%PORTDOCS%%%%DOCSDIR%%/sample-muttprintrc-it +%%PORTDOCS%%%%DOCSDIR%%/sample-muttprintrc-si share/muttprint/BabyTuX.eps share/muttprint/BabyTuX_color.eps share/muttprint/Beastie.eps @@ -64,9 +64,9 @@ share/muttprint/translations/translation-sl.pl share/muttprint/translations/translation-sv.pl @dirrm share/muttprint/translations @dirrm share/muttprint -%%PORTDOCS%%@dirrm share/doc/muttprint/manual-de -%%PORTDOCS%%@dirrm share/doc/muttprint/manual-en -%%PORTDOCS%%@dirrm share/doc/muttprint/manual-es -%%PORTDOCS%%@dirrm share/doc/muttprint/manual-it -%%PORTDOCS%%@dirrm share/doc/muttprint/manual-sl -%%PORTDOCS%%@dirrm share/doc/muttprint +%%PORTDOCS%%@dirrm %%DOCSDIR%%/manual-de +%%PORTDOCS%%@dirrm %%DOCSDIR%%/manual-en +%%PORTDOCS%%@dirrm %%DOCSDIR%%/manual-es +%%PORTDOCS%%@dirrm %%DOCSDIR%%/manual-it +%%PORTDOCS%%@dirrm %%DOCSDIR%%/manual-sl +%%PORTDOCS%%@dirrm %%DOCSDIR%% |