aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--biology/chemeq/Makefile22
-rw-r--r--biology/chemeq/pkg-plist10
2 files changed, 14 insertions, 18 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>
diff --git a/biology/chemeq/pkg-plist b/biology/chemeq/pkg-plist
deleted file mode 100644
index 062462cecb63..000000000000
--- a/biology/chemeq/pkg-plist
+++ /dev/null
@@ -1,10 +0,0 @@
-@comment $FreeBSD$
-bin/chemeq
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%EXAMPLESDIR%%/test.stuff
-%%PORTDOCS%%%%EXAMPLESDIR%%/chemreport
-%%PORTDOCS%%%%EXAMPLESDIR%%/chemreport.pl
-%%PORTDOCS%%%%EXAMPLESDIR%%/chemtest
-%%PORTDOCS%%%%EXAMPLESDIR%%/chemtest.pl
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%