2002-11-14 11:00:03 +01:00
|
|
|
# New ports collection makefile for: Jakarta Commons CLI
|
|
|
|
# Date created: November 14, 2002
|
2002-11-14 10:02:09 +01:00
|
|
|
# Whom: Ernst de Haan <znerd@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= commons-cli
|
|
|
|
PORTVERSION= 1.0
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 2
|
2004-01-12 20:39:50 +01:00
|
|
|
PORTEPOCH= 1
|
2004-11-28 18:02:58 +01:00
|
|
|
CATEGORIES= java devel
|
2008-02-27 16:10:54 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_SOURCE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:S,commons-,,}
|
2002-11-14 10:02:09 +01:00
|
|
|
PKGNAMEPREFIX= jakarta-
|
2004-01-12 20:39:50 +01:00
|
|
|
DISTNAME= cli-${PORTVERSION}-src
|
2002-11-14 10:02:09 +01:00
|
|
|
|
2004-12-03 02:01:33 +01:00
|
|
|
MAINTAINER= hq@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Java library for command line arguments and options
|
2002-11-14 10:02:09 +01:00
|
|
|
|
2004-11-28 18:02:58 +01:00
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/commons-lang.jar:${PORTSDIR}/java/jakarta-commons-lang
|
2002-11-14 10:02:09 +01:00
|
|
|
|
2004-04-20 21:48:50 +02:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.2+
|
2004-11-28 18:02:58 +01:00
|
|
|
|
2002-11-14 10:18:51 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2002-11-14 10:02:09 +01:00
|
|
|
|
2004-11-28 18:02:58 +01:00
|
|
|
USE_ANT= yes
|
|
|
|
MAKE_ENV+= ANT_INCLUDE_SHARED_JARS=YES
|
|
|
|
MAKE_ARGS= -Dnoget=yes
|
|
|
|
ALL_TARGET= jar
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
ALL_TARGET+= javadoc
|
2002-11-14 10:02:09 +01:00
|
|
|
.endif
|
2004-11-28 18:02:58 +01:00
|
|
|
|
2002-11-14 10:18:51 +01:00
|
|
|
JARFILE= ${PORTNAME}-${PORTVERSION}-beta-2-dev.jar
|
|
|
|
DESTJARFILE= ${PORTNAME}.jar
|
2004-11-28 18:02:58 +01:00
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
|
2004-04-15 23:17:26 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-04-20 21:48:50 +02:00
|
|
|
PORTDOCS= apidocs LICENSE.txt
|
2004-04-15 23:17:26 +02:00
|
|
|
.endif
|
|
|
|
|
2004-11-28 18:02:58 +01:00
|
|
|
post-extract:
|
2002-11-14 10:02:09 +01:00
|
|
|
@${MKDIR} ${WRKSRC}/lib
|
|
|
|
|
|
|
|
do-install:
|
2004-11-28 18:02:58 +01:00
|
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2002-11-14 10:02:09 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2004-11-28 18:02:58 +01:00
|
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
|
|
@cd ${WRKSRC}/target/docs \
|
|
|
|
&& ${FIND} apidocs -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
|
|
|
|
&& ${FIND} apidocs -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}/
|
|
|
|
@${ECHO_MSG} " [ DONE ]"
|
2002-11-14 10:02:09 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|