# Created by: Ernst de Haan # $FreeBSD$ PORTNAME= commons-lang PORTVERSION= 2.6 CATEGORIES= java devel MASTER_SITES= APACHE_COMMONS_SOURCE PKGNAMEPREFIX= jakarta- DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= ports@FreeBSD.org COMMENT= Jakarta 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 .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