Date: Wed, 19 Jun 2013 20:01:31 +0000 (UTC) From: Boris Samorodov <bsam@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r321316 - head/biology/chemeq Message-ID: <201306192001.r5JK1Vo8054461@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bsam Date: Wed Jun 19 20:01:30 2013 New Revision: 321316 URL: http://svnweb.freebsd.org/changeset/ports/321316 Log: . 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. Deleted: head/biology/chemeq/pkg-plist Modified: head/biology/chemeq/Makefile Modified: head/biology/chemeq/Makefile ============================================================================== --- head/biology/chemeq/Makefile Wed Jun 19 19:54:13 2013 (r321315) +++ head/biology/chemeq/Makefile Wed Jun 19 20:01:30 2013 (r321316) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306192001.r5JK1Vo8054461>