svn commit: r348992 - head/converters/uudeview
Pawel Pekala
pawel at FreeBSD.org
Mon Mar 24 13:18:59 UTC 2014
Author: pawel
Date: Mon Mar 24 13:18:58 2014
New Revision: 348992
URL: http://svnweb.freebsd.org/changeset/ports/348992
QAT: https://qat.redports.org/buildarchive/r348992/
Log:
- Add staging support
- Remove leading article from COMMENT
- Define DOCS option
Modified:
head/converters/uudeview/Makefile
Modified: head/converters/uudeview/Makefile
==============================================================================
--- head/converters/uudeview/Makefile Mon Mar 24 13:10:33 2014 (r348991)
+++ head/converters/uudeview/Makefile Mon Mar 24 13:18:58 2014 (r348992)
@@ -7,7 +7,7 @@ CATEGORIES= converters
MASTER_SITES= http://www.fpx.de/fp/Software/UUDeview/download/
MAINTAINER= ports at FreeBSD.org
-COMMENT= A program for uu/xx/Base64/BinHex/yEnc de-/encoding
+COMMENT= Program for uu/xx/Base64/BinHex/yEnc de-/encoding
LICENSE= GPLv2
@@ -18,11 +18,12 @@ CONFIGURE_ARGS= --disable-tcl
LDFLAGS+= -L${LOCALBASE}/lib
-MAN1= uudeview.1 uuenview.1
PORTDOCS= HISTORY porting.notes
-PLIST_FILES= bin/uudeview bin/uuenview
+PLIST_FILES= bin/uudeview bin/uuenview man/man1/uudeview.1.gz \
+ man/man1/uuenview.1.gz
+
+OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
.include <bsd.port.pre.mk>
# Try and catch some of the different places that inn and cnews put inews
@@ -34,14 +35,15 @@ CONFIGURE_ARGS+= --enable-inews=${PREFIX
CONFIGURE_ARGS+= --enable-inews=${PREFIX}/news/lib/inews
.endif
+post-configure:
+ @${REINPLACE_CMD} -E '/INSTALL_/ s,(BIN|MAN)DIR,DESTDIR\)$$\(&,g' \
+ ${WRKSRC}/Makefile
+
post-install:
- @${STRIP_CMD} ${PREFIX}/bin/uudeview
- @${STRIP_CMD} ${PREFIX}/bin/uuenview
-.if ${PORT_OPTIONS:MDOCS}
- @${ECHO_MSG} "===> Installing documents to ${DOCSDIR}"
- @${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/HISTORY ${DOCSDIR}
- @${INSTALL_DATA} ${FILESDIR}/porting.notes ${DOCSDIR}
-.endif
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/uudeview
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/uuenview
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/HISTORY ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${FILESDIR}/porting.notes ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list