# New ports collection makefile for: Jakarta Commons Lang # Date created: October 18, 2002 # Whom: Ernst de Haan # # $FreeBSD$ # PORTNAME= commons-lang PORTVERSION= 2.0 CATEGORIES= java MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA} MASTER_SITE_SUBDIR= commons/lang/source PKGNAMEPREFIX= jakarta- DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= znerd@FreeBSD.org COMMENT= Jakarta library with helper utilities for the java.lang API BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/apache-ant USE_JAVA= 1.2+ WRKSRC= ${WRKDIR}/${DISTNAME} PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///} ANT?= ${LOCALBASE}/bin/ant .if defined(NOPORTDOCS) ANT_TARGET= jar .else ANT_TARGET= jar javadoc PORTDOCS= * .endif JAVASHAREDIR= ${PREFIX}/share/java JARDIR= ${JAVASHAREDIR}/classes JARFILE= ${PORTNAME}-${PORTVERSION}.jar DESTJARFILE= ${PORTNAME}.jar do-build: @cd ${WRKSRC} && ${ANT} ${ANT_TARGET} do-install: @${ECHO} -n ">> Installing JAR as ${JARDIR}/${DESTJARFILE}..." @${CP} ${WRKSRC}/dist/${JARFILE} ${JARDIR}/${DESTJARFILE} @${ECHO} " [ DONE ]" .if !defined(NOPORTDOCS) @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..." @${MKDIR} ${DOCSDIR} @${CP} -r ${WRKSRC}/dist/docs/api/* ${DOCSDIR} @${ECHO} " [ DONE ]" .endif .include