diff options
author | Boris Samorodov <bsam@FreeBSD.org> | 2013-06-19 20:01:30 +0000 |
---|---|---|
committer | Boris Samorodov <bsam@FreeBSD.org> | 2013-06-19 20:01:30 +0000 |
commit | 6c45647e0736003d6aa8eaa23d6d792740851793 (patch) | |
tree | 6f32e6880fd6fa22cc66d43edae3bb1c7f90aaef /biology | |
parent | 75e93c8196082f5dba3b7e42241dd6e88d42882c (diff) | |
download | ports-6c45647e0736003d6aa8eaa23d6d792740851793.tar.gz ports-6c45647e0736003d6aa8eaa23d6d792740851793.zip |
Notes
Diffstat (limited to 'biology')
-rw-r--r-- | biology/chemeq/Makefile | 22 | ||||
-rw-r--r-- | biology/chemeq/pkg-plist | 10 |
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%% |