mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
Support stage
Switch from latex to texlive
This commit is contained in:
parent
6a9c8e62c6
commit
868163b617
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350369
@ -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 <bsd.port.options.mk>
|
||||
|
||||
.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
|
||||
|
@ -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
|
||||
|
||||
#####################################################
|
||||
|
@ -1,4 +1,5 @@
|
||||
bin/muttprint
|
||||
man/man1/muttprint.1.gz
|
||||
%%LANGINFO%%bin/muttprint-langinfo
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
|
||||
%%PORTDOCS%%%%DOCSDIR%%/COPYING
|
||||
|
Loading…
Reference in New Issue
Block a user