summaryrefslogtreecommitdiff
path: root/print/muttprint/Makefile
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2002-09-12 11:43:43 +0000
committerOliver Braun <obraun@FreeBSD.org>2002-09-12 11:43:43 +0000
commit6d67a23c5a84fe209b8d64c92f59c1e83a6d43da (patch)
treee929b45c9e3d7c5d0d747638e2271f5c6134adf7 /print/muttprint/Makefile
parentfix build: remove duplicate patches. (diff)
* Upgrade to 0.63a.
* Fix paths in manpage and html documentation.
Notes
Notes: svn path=/head/; revision=66198
Diffstat (limited to 'print/muttprint/Makefile')
-rw-r--r--print/muttprint/Makefile23
1 files changed, 18 insertions, 5 deletions
diff --git a/print/muttprint/Makefile b/print/muttprint/Makefile
index f34589c33b82..969c5dcc7d26 100644
--- a/print/muttprint/Makefile
+++ b/print/muttprint/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= muttprint
-PORTVERSION= 0.63
+PORTVERSION= 0.63a
CATEGORIES= print mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= muttprint
@@ -23,15 +23,28 @@ RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX \
convert:${PORTSDIR}/graphics/ImageMagick \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate
-MAN1= muttprint.1
-MANCOMPRESSED= yes
+USE_REINPLACE= yes
+REINPLACE_ARGS= -i ""
USE_GMAKE= yes
+ALL_TARGET= nothing
-post-patch:
- -${RM} -f ${WRKSRC}/pics/*.orig
+MAN1= muttprint.1
+MANCOMPRESSED= yes
.if !defined(NOPORTDOCS)
INSTALL_TARGET=install-with-doc
.endif
+post-patch:
+ @${RM} -f ${WRKSRC}/pics/*.orig
+ @${GUNZIP_CMD} ${WRKSRC}/doc/manpages/*/muttprint.1.gz
+ @${REINPLACE_CMD} -e 's|/usr/share/doc/packages|${PREFIX}/share/doc|g ; \
+ s|/usr/share|${PREFIX}/share|g ; \
+ s|/usr/bin|${PREFIX}/bin|g ; \
+ s|/etc|${PREFIX}/etc|g ; \
+ s|/usr/lib|${PREFIX}/lib|g' \
+ ${WRKSRC}/doc/manpages/*/muttprint.1 \
+ ${WRKSRC}/doc/manual/*/manual-*/*.html
+ @${GZIP_CMD} ${WRKSRC}/doc/manpages/*/muttprint.1
+
.include <bsd.port.mk>