diff options
Diffstat (limited to 'java/berkeley-db/Makefile')
-rw-r--r-- | java/berkeley-db/Makefile | 68 |
1 files changed, 58 insertions, 10 deletions
diff --git a/java/berkeley-db/Makefile b/java/berkeley-db/Makefile index 00493cf3a3a2..5ab690375f31 100644 --- a/java/berkeley-db/Makefile +++ b/java/berkeley-db/Makefile @@ -6,29 +6,77 @@ # PORTNAME= je -PORTVERSION= 1.7.1 +PORTVERSION= 3.1.0 CATEGORIES= java databases -MASTER_SITES= http://downloads.sleepycat.com/ \ - ftp://ftp.sleepycat.com/releases/ +MASTER_SITES= http://download.oracle.com/berkeley-db/ MAINTAINER= mi@aldan.algebra.com COMMENT= Berkeley DB Java Edition +OPTIONS= TEST "Run the self-tests after building automatically" on + BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit -EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude '*.jar' --exclude ${DISTNAME}/docs/ USE_JAVA= yes +JAVA_VERSION= 1.4+ USE_ANT= yes -MAKE_ARGS+= -verbose MAKE_ENV+= JAVALIBDIR="${JAVALIBDIR}" +MAKE_ARGS+= -cp ${JAVALIBDIR}/junit.jar +USE_DOS2UNIX= build.xml + +PLIST_FILES= %%JAVAJARDIR%%/je.jar + +.if !defined(NOPORTDOCS) +PORTDOCS= * +.endif + +test: + # + # Running the vendor-provided self-tests. This may take a while + # + @cd ${BUILD_WRKSRC} && \ + ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${.TARGET} || \ + ${ECHO_MSG} Please, review test failures and consider \ + reporting them via \ + http://forums.oracle.com/forums/forum.jspa?forumID=273 + +.include <bsd.port.pre.mk> + +.if defined(WITH_TEST) +post-build: test + # + # Please, review the reported failures (if any) and consider + # reporting them to the developers at support@sleepycat.com + # You can re-run the tests without rebuilding the port by + # simply doing `make test' + # +.else +post-build: + # + # Doing `make test' now might be useful (if time-consuming) + # Please, review the reported failures (if any) and consider + # reporting them via + # http://forums.oracle.com/forums/forum.jspa?forumID=273 + # +.endif + + +post-patch: + @${REINPLACE_CMD} "s,/usr/local,${TARGETDIR}," ${WRKSRC}/build.xml do-install: - ${INSTALL_DATA} ${WRKSRC}/build/lib/je.jar ${JAVAJARDIR} + @${INSTALL_DATA} ${WRKSRC}/build/lib/je.jar ${JAVAJARDIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - ${TAR} -C ${DOCSDIR} -zxpf ${_DISTDIR}/${_DISTFILES} ${DISTNAME}/docs - ${MV} ${DOCSDIR}/${DISTNAME}/docs/* ${DOCSDIR} - ${RM} -rf ${DOCSDIR}/${DISTNAME} + @${CP} -R ${WRKSRC}/docs/ ${DOCSDIR} + @${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} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |