2012-12-10 14:18:28 +01:00
|
|
|
# Created by: Mikhail Teterin
|
2005-02-05 01:26:57 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= je
|
2008-05-17 00:34:46 +02:00
|
|
|
PORTVERSION= 3.2.76
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 1
|
2005-02-05 01:26:57 +01:00
|
|
|
CATEGORIES= java databases
|
2006-10-18 03:44:16 +02:00
|
|
|
MASTER_SITES= http://download.oracle.com/berkeley-db/ \
|
|
|
|
http://download-east.oracle.com/berkeley-db/ \
|
|
|
|
http://download-west.oracle.com/berkeley-db/
|
2005-02-05 01:26:57 +01:00
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
|
|
COMMENT= Berkeley DB Java Edition
|
|
|
|
|
2014-02-16 13:05:36 +01:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES TEST
|
2006-10-07 03:40:24 +02:00
|
|
|
|
2005-02-05 01:26:57 +01:00
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
|
|
|
|
|
|
|
|
USE_JAVA= yes
|
2012-12-10 14:18:28 +01:00
|
|
|
JAVA_VERSION= 1.6+
|
2005-02-05 01:26:57 +01:00
|
|
|
USE_ANT= yes
|
|
|
|
MAKE_ENV+= JAVALIBDIR="${JAVALIBDIR}"
|
2006-10-07 03:40:24 +02:00
|
|
|
MAKE_ARGS+= -cp ${JAVALIBDIR}/junit.jar
|
|
|
|
USE_DOS2UNIX= build.xml
|
|
|
|
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/je.jar
|
|
|
|
|
|
|
|
PORTDOCS= *
|
2013-03-16 08:29:22 +01:00
|
|
|
PORTEXAMPLES= *
|
2006-10-07 03:40:24 +02:00
|
|
|
|
|
|
|
test:
|
|
|
|
#
|
|
|
|
# Running the vendor-provided self-tests. This may take a while
|
|
|
|
#
|
2006-10-20 14:49:45 +02:00
|
|
|
if ! (cd ${BUILD_WRKSRC} ; ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${.TARGET}) ; \
|
|
|
|
then \
|
2006-10-07 03:40:24 +02:00
|
|
|
${ECHO_MSG} Please, review test failures and consider \
|
|
|
|
reporting them via \
|
2006-10-20 14:49:45 +02:00
|
|
|
http://forums.oracle.com/forums/forum.jspa?forumID=273 ; \
|
|
|
|
${FALSE} ; \
|
|
|
|
fi
|
2006-10-07 03:40:24 +02:00
|
|
|
|
2013-03-16 08:29:22 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2006-10-07 03:40:24 +02:00
|
|
|
|
2013-03-16 08:29:22 +01:00
|
|
|
.if ${PORT_OPTIONS:MTEST}
|
2006-10-07 03:40:24 +02:00
|
|
|
post-build: test
|
|
|
|
#
|
|
|
|
# Please, review the reported failures (if any) and consider
|
2006-11-23 07:21:16 +01:00
|
|
|
# reporting them to the developers via:
|
|
|
|
# http://forums.oracle.com/forums/forum.jspa?forumID=273
|
2006-10-07 03:40:24 +02:00
|
|
|
# You can re-run the tests without rebuilding the port by
|
|
|
|
# simply doing `make test'
|
|
|
|
#
|
|
|
|
.else
|
|
|
|
post-build:
|
|
|
|
#
|
2008-05-17 00:34:46 +02:00
|
|
|
# Doing `make test' now might be useful (if time-consuming).
|
2006-10-07 03:40:24 +02:00
|
|
|
# Please, review the reported failures (if any) and consider
|
|
|
|
# reporting them via
|
|
|
|
# http://forums.oracle.com/forums/forum.jspa?forumID=273
|
|
|
|
#
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2007-08-04 13:41:30 +02:00
|
|
|
@${REINPLACE_CMD} "s,/usr/local,${PREFIX}," ${WRKSRC}/build.xml
|
2005-02-05 01:26:57 +01:00
|
|
|
|
|
|
|
do-install:
|
2014-02-16 13:05:36 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/build/lib/je.jar ${STAGEDIR}${JAVAJARDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@(cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
|
2005-02-05 01:26:57 +01:00
|
|
|
|
2013-03-16 08:29:22 +01:00
|
|
|
.include <bsd.port.mk>
|