Date: Sat, 16 Mar 2013 07:29:22 +0000 (UTC) From: Jason Helfman <jgh@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r314337 - head/java/berkeley-db Message-ID: <201303160729.r2G7TM36058516@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jgh Date: Sat Mar 16 07:29:22 2013 New Revision: 314337 URL: http://svnweb.freebsd.org/changeset/ports/314337 Log: - adopt optionsNG - cleanup of EXAMPLES and unconditionally assign PORTDOCS Approved by: portmgr (miwi) Modified: head/java/berkeley-db/Makefile Modified: head/java/berkeley-db/Makefile ============================================================================== --- head/java/berkeley-db/Makefile Sat Mar 16 06:47:21 2013 (r314336) +++ head/java/berkeley-db/Makefile Sat Mar 16 07:29:22 2013 (r314337) @@ -12,7 +12,7 @@ MASTER_SITES= http://download.oracle.com MAINTAINER= mi@aldan.algebra.com COMMENT= Berkeley DB Java Edition -OPTIONS= TEST "Run the self-tests after building automatically" off +OPTIONS_DEFINE= TEST BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit @@ -25,9 +25,8 @@ USE_DOS2UNIX= build.xml PLIST_FILES= %%JAVAJARDIR%%/je.jar -.if !defined(NOPORTDOCS) PORTDOCS= * -.endif +PORTEXAMPLES= * test: # @@ -41,9 +40,9 @@ test: ${FALSE} ; \ fi -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_TEST) +.if ${PORT_OPTIONS:MTEST} post-build: test # # Please, review the reported failures (if any) and consider @@ -68,17 +67,13 @@ post-patch: do-install: @${INSTALL_DATA} ${WRKSRC}/build/lib/je.jar ${JAVAJARDIR} -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} - @${CP} -R ${WRKSRC}/docs/ ${DOCSDIR} + @(cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} \* ${DOCSDIR}) +.endif +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} - @${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR} - -post-install: - @${FIND} ${EXAMPLESDIR} ! -type d | \ - ${SED} -e "s,^${PREFIX}/,," >> ${TMPPLIST} - @${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \ - ${SED} -e "s,^${PREFIX}/,@dirrm ," >> ${TMPPLIST} + @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}) .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303160729.r2G7TM36058516>