diff options
author | hq <hq@FreeBSD.org> | 2005-02-17 18:41:09 +0000 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2005-02-17 18:41:09 +0000 |
commit | aaf76525e431169b25a91834ccf65d37c4cfb297 (patch) | |
tree | dfe37ddc06ef8e19ac4d5b3a36a48d85074071c5 /java/jdbcpool/Makefile | |
parent | fe9dfcd6c1a85303345e47f8c15c2a91ecc4b525 (diff) | |
download | FreeBSD-ports-aaf76525e431169b25a91834ccf65d37c4cfb297.zip FreeBSD-ports-aaf76525e431169b25a91834ccf65d37c4cfb297.tar.gz |
- Update to bsd.java.mk 2.0
- Add 'databases' category
- Use ${JAVAJARDIR} and %%JAVAJARDIR%%
- CP -> INSTALL_DATA
- Honor hier(7): install docs in DOCSDIR and samples in EXAMPLESDIR
- Honor NOPORTDOCS
- Minor cosmetic improvements
- Bump PORTREVISION
Diffstat (limited to 'java/jdbcpool/Makefile')
-rw-r--r-- | java/jdbcpool/Makefile | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/java/jdbcpool/Makefile b/java/jdbcpool/Makefile index 46a9d88..e8df41a 100644 --- a/java/jdbcpool/Makefile +++ b/java/jdbcpool/Makefile @@ -7,23 +7,32 @@ PORTNAME= jdbcpool PORTVERSION= 0.99 -CATEGORIES= java +PORTREVISION= 1 +CATEGORIES= java databases MASTER_SITES= http://www.bitmechanic.com/projects/jdbcpool/dist/ -MAINTAINER= java@freebsd.org +MAINTAINER= java@FreeBSD.org COMMENT= JDBC connection pool -USE_JAVA= 1.2+ +USE_JAVA= yes +JAVA_VERSION= 1.2+ NO_BUILD= yes -TARGET_DIR= ${PREFIX}/share/java/${PORTNAME} -JAR_DEST= ${PREFIX}/share/java/classes -PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///} + +PORTDOCS= CHANGES LICENSE README +.if !defined(NOPORTDOCS) +PORTDOCS+= javadoc +.endif + +post-extract: + @${FIND} ${WRKSRC} -name CVS -type dir | ${XARGS} ${RM} -rf do-install: - ${MKDIR} ${TARGET_DIR} ${JAR_DEST} - ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${JAR_DEST}/${PORTNAME}.jar - cd ${WRKSRC}; \ - ${RM} -rf `${FIND} examples javadoc -name CVS -type dir`; \ - ${CP} -R examples javadoc CHANGES LICENSE README ${TARGET_DIR} + ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.jar ${JAVAJARDIR}/${PORTNAME}.jar + cd ${WRKSRC}/examples \ + && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \ + && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \; + cd ${WRKSRC} \ + && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \ + && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; .include <bsd.port.mk> |