blob: d0baf85fc52db210db966fc3033e146b031202c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Created by: Mikhail Teterin
# $FreeBSD$
PORTNAME= je
PORTVERSION= 3.2.76
PORTREVISION= 1
CATEGORIES= java databases
MASTER_SITES= http://download.oracle.com/berkeley-db/ \
http://download-east.oracle.com/berkeley-db/ \
http://download-west.oracle.com/berkeley-db/
MAINTAINER= mi@aldan.algebra.com
COMMENT= Berkeley DB Java Edition
OPTIONS_DEFINE= DOCS EXAMPLES TEST
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_ANT= yes
MAKE_ENV+= JAVALIBDIR="${JAVALIBDIR}"
MAKE_ARGS+= -cp ${JAVALIBDIR}/junit.jar
USE_DOS2UNIX= build.xml
PLIST_FILES= %%JAVAJARDIR%%/je.jar
PORTDOCS= *
PORTEXAMPLES= *
test:
#
# Running the vendor-provided self-tests. This may take a while
#
if ! (cd ${BUILD_WRKSRC} ; ${MAKE_ENV} ${ANT} ${MAKE_ARGS} ${.TARGET}) ; \
then \
${ECHO_MSG} Please, review test failures and consider \
reporting them via \
http://forums.oracle.com/forums/forum.jspa?forumID=273 ; \
${FALSE} ; \
fi
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTEST}
post-build: test
#
# Please, review the reported failures (if any) and consider
# reporting them to the developers via:
# http://forums.oracle.com/forums/forum.jspa?forumID=273
# 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,${PREFIX}," ${WRKSRC}/build.xml
do-install:
@${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})
.include <bsd.port.mk>
|