aboutsummaryrefslogtreecommitdiffstats
path: root/biology/chemeq/Makefile
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2013-06-20 04:01:30 +0800
committerbsam <bsam@FreeBSD.org>2013-06-20 04:01:30 +0800
commit3ac7dff6a3cf4316be63c507069cfcc8ebd777b9 (patch)
tree6f32e6880fd6fa22cc66d43edae3bb1c7f90aaef /biology/chemeq/Makefile
parent650c844cb37c1c27a8590c224bd424797ed03aa5 (diff)
downloadfreebsd-ports-gnome-3ac7dff6a3cf4316be63c507069cfcc8ebd777b9.tar.gz
freebsd-ports-gnome-3ac7dff6a3cf4316be63c507069cfcc8ebd777b9.tar.zst
freebsd-ports-gnome-3ac7dff6a3cf4316be63c507069cfcc8ebd777b9.zip
. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. introduce EXAMPLES option (do not install examples to DOCSDIR); . bump PORTREVISION; . make use of PLIST_FILES, PORTDOCS and PORTEXAMPLES at Makefile; . get rid of pkg-plist; . simpify install commands.
Diffstat (limited to 'biology/chemeq/Makefile')
-rw-r--r--biology/chemeq/Makefile22
1 files changed, 14 insertions, 8 deletions
diff --git a/biology/chemeq/Makefile b/biology/chemeq/Makefile
index e773ebf6918f..96888c38b509 100644
--- a/biology/chemeq/Makefile
+++ b/biology/chemeq/Makefile
@@ -3,7 +3,7 @@
PORTNAME= chemeq
PORTVERSION= 1.50
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= biology textproc
MASTER_SITES= http://download.gna.org/chemeq/chemeq-1.5/ \
http://freebsd.nsu.ru/distfiles/
@@ -17,19 +17,25 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-1.5
USES= bison
+PLIST_FILES+= bin/chemeq
MAN1= chemeq.1
+PORTDOCS= README
+PORTEXAMPLES= chemreport chemreport.pl chemtest chemtest.pl test.stuff
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
+.include <bsd.port.options.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/chemeq ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/chemeq.1 ${MAN1PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/tests/test.stuff ${EXAMPLESDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/tests/chemreport ${EXAMPLESDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/tests/chemreport.pl ${EXAMPLESDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/tests/chemtest ${EXAMPLESDIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/tests/chemtest.pl ${EXAMPLESDIR}
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/tests/,} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>