From 868163b61789733232319efd167629a572e2b69a Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 6 Apr 2014 15:42:15 +0000 Subject: [PATCH] Support stage Switch from latex to texlive --- print/muttprint/Makefile | 24 +++++++++++------------- print/muttprint/files/patch-Makefile | 12 ++++++------ print/muttprint/pkg-plist | 1 + 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/print/muttprint/Makefile b/print/muttprint/Makefile index ec49f6d84cb2..1470263459de 100644 --- a/print/muttprint/Makefile +++ b/print/muttprint/Makefile @@ -3,7 +3,7 @@ PORTNAME?= muttprint PORTVERSION= 0.72d -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES?= print mail MASTER_SITES= SF/muttprint/muttprint/muttprint-${PORTVERSION} @@ -16,37 +16,35 @@ USES= perl5 PAPERSIZE= letter .endif +OPTIONS_DEFINE= CUPS DOCS + RUN_DEPENDS= psnup:${PORTSDIR}/print/psutils \ uncompface:${PORTSDIR}/mail/faces \ convert:${PORTSDIR}/graphics/ImageMagick \ p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate \ p5-Text-Iconv>=0:${PORTSDIR}/converters/p5-Text-Iconv -.if defined(WITH_CUPS) -RUN_DEPENDS+= cupstestppd:${PORTSDIR}/print/cups-base \ - espgs:${PORTSDIR}/print/cups-pstoraster -.endif +CUPS_RUN_DEPENDS+= cupstestppd:${PORTSDIR}/print/cups-base \ + espgs:${PORTSDIR}/print/cups-pstoraster NO_BUILD= yes PLIST_SUB+= LANGINFO="@comment " REINPLACE_ARGS= -i "" -USE_TEX= latex -USE_GMAKE= yes +USES= gmake +USE_TEX= texlive -MAN1= muttprint.1 -MANCOMPRESSED= yes +.include -.if defined(WITH_CUPS) +.if ${PORT_OPTIONS:MCUPS} PRINT_COMMAND=CUPS .else PRINT_COMMAND=lpr -P$$PRINTER .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} INSTALL_TARGET=install-with-doc .endif -NO_STAGE= yes pre-everything:: @${ECHO} @${ECHO} Set PAPERSIZE=a4 if you need that paper size. @@ -74,7 +72,7 @@ post-patch: @${REINPLACE_CMD} 's|%%PRINT_COMMAND%%|${PRINT_COMMAND}| ; \ s|%%PREFIX%%|${PREFIX}|' \ ${WRKSRC}/muttprint -.if defined(WITH_CUPS) +.if ${PORT_OPTIONS:MCUPS} @${REINPLACE_CMD} 's|lpr $$CUPS_OPTIONS|${PREFIX}/bin/lpr $$CUPS_OPTIONS|' ${WRKSRC}/muttprint .endif @${GZIP_CMD} ${WRKSRC}/doc/manpages/*/muttprint.1 diff --git a/print/muttprint/files/patch-Makefile b/print/muttprint/files/patch-Makefile index 4a16d72994d1..51711a2c170f 100644 --- a/print/muttprint/files/patch-Makefile +++ b/print/muttprint/files/patch-Makefile @@ -10,12 +10,12 @@ # Change this for some distributions (current setting # is OK for SuSE) -docdir = /usr/share/doc/packages -+docdir = ${PREFIX}/share/doc ++docdir = $(DESTDIR)${PREFIX}/share/doc # Change this to $(prefix)/man for older distributions # (current setting is correct according to LSB) -mandir = $(prefix)/share/man -+mandir = ${PREFIX}/man ++mandir = $(DESTDIR)${PREFIX}/man # # Muttprint needs GNU make. If you installed GNU make @@ -29,10 +29,10 @@ -libdir = $(prefix)/lib -bindir = $(prefix)/bin -sysconfdir = /etc -+sharedir = ${PREFIX}/share -+libdir = ${PREFIX}/lib -+bindir = ${PREFIX}/bin -+sysconfdir = ${PREFIX}/etc ++sharedir = $(DESTDIR)${PREFIX}/share ++libdir = $(DESTDIR)${PREFIX}/lib ++bindir = $(DESTDIR)${PREFIX}/bin ++sysconfdir = $(DESTDIR)${PREFIX}/etc docdirname = muttprint ##################################################### diff --git a/print/muttprint/pkg-plist b/print/muttprint/pkg-plist index 4cdacda02950..d49436f4aa20 100644 --- a/print/muttprint/pkg-plist +++ b/print/muttprint/pkg-plist @@ -1,4 +1,5 @@ bin/muttprint +man/man1/muttprint.1.gz %%LANGINFO%%bin/muttprint-langinfo %%PORTDOCS%%%%DOCSDIR%%/CHANGES %%PORTDOCS%%%%DOCSDIR%%/COPYING