2002-11-14 05:23:58 -05:00
|
|
|
# New ports collection makefile for: Jakarta Commons Beanutils
|
|
|
|
# Date created: November 14, 2002
|
|
|
|
# Whom: Ernst de Haan <znerd@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= commons-beanutils
|
2010-10-02 08:21:16 -04:00
|
|
|
PORTVERSION= 1.8.3
|
2004-11-28 21:41:13 -05:00
|
|
|
CATEGORIES= java devel
|
2008-02-27 10:10:54 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_SOURCE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:S,commons-,,}
|
2002-11-14 05:23:58 -05:00
|
|
|
PKGNAMEPREFIX= jakarta-
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
|
2010-10-02 08:21:16 -04:00
|
|
|
MAINTAINER= olgeni@FreeBSD.org
|
2003-03-07 01:14:21 -05:00
|
|
|
COMMENT= JavaBeans utility library
|
2002-11-14 05:23:58 -05:00
|
|
|
|
2004-11-28 21:41:13 -05:00
|
|
|
BUILD_DEPENDS= ${JAR_DEPENDS}
|
|
|
|
RUN_DEPENDS= ${JAR_DEPENDS}
|
2002-11-14 05:23:58 -05:00
|
|
|
|
2004-11-28 21:41:13 -05:00
|
|
|
JAR_DEPENDS= ${JAVALIBDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging \
|
|
|
|
${JAVALIBDIR}/commons-collections.jar:${PORTSDIR}/java/jakarta-commons-collections
|
|
|
|
|
|
|
|
USE_JAVA= yes
|
2011-07-21 01:03:02 -04:00
|
|
|
JAVA_VERSION= 1.5+
|
2004-11-28 21:41:13 -05:00
|
|
|
|
|
|
|
USE_ANT= yes
|
|
|
|
ALL_TARGET= dist
|
2009-03-15 08:54:35 -04:00
|
|
|
MAKE_ARGS+= -Dcommons-collections.jar=${JAVALIBDIR}/commons-collections.jar \
|
2004-11-28 21:41:13 -05:00
|
|
|
-Dcommons-logging.jar=${JAVALIBDIR}/commons-logging.jar
|
|
|
|
|
2002-11-14 05:23:58 -05:00
|
|
|
JARFILE= ${PORTNAME}.jar
|
2004-11-28 21:41:13 -05:00
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE}
|
|
|
|
.if !defined(NOPORTDOCS)
|
2009-03-15 08:54:35 -04:00
|
|
|
APIDOCS= api
|
2004-11-28 21:41:13 -05:00
|
|
|
OTHERDOCS= LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt
|
|
|
|
PORTDOCS= ${APIDOCS} ${OTHERDOCS}
|
|
|
|
.endif
|
2002-11-14 05:23:58 -05:00
|
|
|
|
|
|
|
do-install:
|
2004-11-28 21:41:13 -05:00
|
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..."
|
2009-03-15 08:54:35 -04:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${JARFILE}
|
2004-11-28 21:41:13 -05:00
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2002-11-14 05:23:58 -05:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-11-28 21:41:13 -05:00
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
|
|
@cd ${WRKSRC}/dist/docs \
|
|
|
|
&& ${FIND} ${APIDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
|
|
|
&& ${FIND} ${APIDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
|
|
@${INSTALL_DATA} ${OTHERDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2002-11-14 05:23:58 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|