ports/java/apache-commons-lang/Makefile
Pedro F. Giffuni c937a4ccc9 rename most cases of jakarta- to apache-
The Apache Softare Foundation used to maintain an umbrella project named
Jakarta but it was retired on 2011. This name now conflicts with the new
name for Java EE under the Eclipse Foundation.

Rename most of the packages to be more consistent. Some other packages remain
but they will require intervention by their corresponding maintainers.

Approved by:	thierry (mentor), makc
Differential Revision:	https://reviews.freebsd.org/D21902
2019-10-06 19:08:14 +00:00

48 lines
1 KiB
Makefile

# Created by: Ernst de Haan <znerd@FreeBSD.org>
# $FreeBSD$
PORTNAME= commons-lang
PORTVERSION= 2.6
CATEGORIES= java devel
MASTER_SITES= APACHE_COMMONS_SOURCE
PKGNAMEPREFIX= apache-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= Apache library with helper utilities for the java.lang API
LICENSE= APACHE20
USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_ANT= yes
ALL_TARGET= jar
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
DESTJARFILE= ${PORTNAME}.jar
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+= javadoc
.endif
JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.? -maxdepth 1 -name api -type d 2>/dev/null || ${ECHO_CMD}) | ${TAIL} -n 1
.if ${JDK_API} != ""
MAKE_ARGS+= -Djdk.javadoc=${JDK_API}
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} \
${STAGEDIR}${JAVAJARDIR}/${DESTJARFILE}
.if ${PORT_OPTIONS:MDOCS}
(cd ${WRKSRC}/target/apidocs && ${COPYTREE_SHARE} . \
${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.post.mk>