Lines 2-52
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= commons-dbcp |
4 |
PORTNAME= commons-dbcp |
5 |
PORTVERSION= 1.4 |
5 |
PORTVERSION= 2.7.0 |
6 |
CATEGORIES= java databases |
6 |
CATEGORIES= java databases |
7 |
MASTER_SITES= APACHE_COMMONS_SOURCE |
7 |
MASTER_SITES= APACHE_COMMONS_BINARIES |
8 |
PKGNAMEPREFIX= jakarta- |
8 |
PKGNAMEPREFIX= jakarta- |
9 |
DISTNAME= ${PORTNAME}-${PORTVERSION}-src |
9 |
DISTNAME= ${PORTNAME}2-${PORTVERSION}-bin |
10 |
|
10 |
|
11 |
MAINTAINER= ale@FreeBSD.org |
11 |
MAINTAINER= ale@FreeBSD.org |
12 |
COMMENT= The DBCP Component |
12 |
COMMENT= Apache Commons Database Connection Pool |
13 |
|
13 |
|
14 |
LICENSE= APACHE20 |
14 |
LICENSE= APACHE20 |
15 |
|
15 |
|
16 |
BUILD_DEPENDS= ${JAVALIBDIR}/commons-pool.jar:java/jakarta-commons-pool \ |
16 |
RUN_DEPENDS= ${JAVALIBDIR}/commons-pool.jar:java/jakarta-commons-pool |
17 |
${JAVALIBDIR}/jta.jar:java/jta |
|
|
18 |
RUN_DEPENDS= ${JAVALIBDIR}/commons-pool.jar:java/jakarta-commons-pool \ |
19 |
${JAVALIBDIR}/jta.jar:java/jta |
20 |
|
17 |
|
21 |
OPTIONS_DEFINE= DOCS |
18 |
OPTIONS_DEFINE= DOCS |
22 |
|
19 |
|
23 |
USE_JAVA= yes |
20 |
USE_JAVA= yes |
24 |
JAVA_VERSION= 1.6 |
21 |
JAVA_VERSION= 8 |
|
|
22 |
NO_BUILD= yes |
25 |
|
23 |
|
26 |
USE_ANT= yes |
24 |
WRKSRC= ${WRKDIR}/${PORTNAME}2-${PORTVERSION} |
27 |
MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES |
25 |
JARFILE= ${PORTNAME}2-${PORTVERSION}.jar |
28 |
ALL_TARGET= build-jar |
26 |
DOCFILES= LICENSE.txt \ |
|
|
27 |
NOTICE.txt \ |
28 |
README.txt \ |
29 |
RELEASE-NOTES.txt |
29 |
|
30 |
|
30 |
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar |
|
|
31 |
|
32 |
PORTDOCS= * |
31 |
PORTDOCS= * |
|
|
32 |
PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}.jar \ |
33 |
${JAVAJARDIR}/${JARFILE} |
33 |
|
34 |
|
34 |
.include <bsd.port.options.mk> |
35 |
.include <bsd.port.options.mk> |
35 |
|
36 |
|
36 |
.if ${PORT_OPTIONS:MDOCS} |
|
|
37 |
ALL_TARGET+= javadoc |
38 |
.endif |
39 |
|
40 |
do-install: |
37 |
do-install: |
41 |
@${ECHO} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..." |
38 |
${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${STAGEDIR}${JAVAJARDIR} |
42 |
@${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/ |
39 |
${LN} -sf ${JARFILE} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar |
43 |
@${ECHO} " [ DONE ]" |
|
|
44 |
.if ${PORT_OPTIONS:MDOCS} |
40 |
.if ${PORT_OPTIONS:MDOCS} |
45 |
@${ECHO} -n ">> Installing documentation in ${DOCSDIR}..." |
41 |
cd ${WRKSRC} && ${COPYTREE_SHARE} apidocs ${STAGEDIR}${DOCSDIR} |
46 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
42 |
.for FILE in ${DOCFILES} |
47 |
@cd ${WRKSRC}/dist/docs && ${FIND} api \ |
43 |
${INSTALL_MAN} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR} |
48 |
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1 |
44 |
.endfor |
49 |
@${ECHO} " [ DONE ]" |
|
|
50 |
.endif |
45 |
.endif |
51 |
|
46 |
|
52 |
.include <bsd.port.mk> |
47 |
.include <bsd.port.mk> |