mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
The following features have been added or changed: - Instead of USE_JAVA use USES=java. This defaults to USES=java:build,run if NO_BUILD is undefined. Else it defaults to USES=java:run - Instead of USE_ANT=yes use USES=java:ant which also implies USES=java:build - Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or extract - Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply build or run - Instead of JAVA_RUN=yes use USES=java:run does not imply extract or build - Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version> Approved by: mat (portmgr), glewis Differential Revision: https://reviews.freebsd.org/D48201
38 lines
1 KiB
Makefile
38 lines
1 KiB
Makefile
PORTNAME= commons-configuration
|
|
PORTVERSION= 1.10
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= APACHE_COMMONS_BINARIES
|
|
PKGNAMEPREFIX= apache-
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Java package for the reading of configuration/preferences files
|
|
WWW= https://commons.apache.org/proper/commons-configuration/
|
|
|
|
LICENSE= APACHE20
|
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/commons-beanutils.jar:java/apache-commons-beanutils \
|
|
${JAVALIBDIR}/commons-lang.jar:java/apache-commons-lang \
|
|
${JAVALIBDIR}/commons-logging.jar:java/apache-commons-logging
|
|
|
|
USES= java
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
NO_BUILD= yes
|
|
|
|
PORTDOCS= *
|
|
PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}.jar
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \
|
|
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
|
cd ${WRKSRC}/apidocs && ${FIND} . -type d -exec ${MKDIR} \
|
|
${STAGEDIR}${DOCSDIR}/{} \;
|
|
cd ${WRKSRC}/apidocs && ${FIND} . -type f -exec ${INSTALL_DATA} {} \
|
|
${STAGEDIR}${DOCSDIR}/{} \;
|
|
|
|
.include <bsd.port.mk>
|