e0ac1afbf4
- Thanks to crees@ for generating the initial patch PR: ports/163521 Submitted by: Pedro Giffuni <pfg apache.org> Hat: portmgr Exp run by: pav
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# New ports collection makefile for: Jakarta Commons CLI
|
|
# Date created: November 14, 2002
|
|
# Whom: Ernst de Haan <znerd@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= commons-cli
|
|
PORTVERSION= 1.2
|
|
PORTEPOCH= 1
|
|
CATEGORIES= java devel
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_BINARIES}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:S,commons-,,}
|
|
PKGNAMEPREFIX= jakarta-
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
|
|
|
|
MAINTAINER= hq@FreeBSD.org
|
|
COMMENT= Java library for command line arguments and options
|
|
|
|
LICENSE= AL2
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.5+
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
|
|
DESTJARFILE= ${PORTNAME}.jar
|
|
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= *
|
|
DOC_FILES= LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
|
|
.endif
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
|
|
@${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.if !defined(NOPORTDOCS)
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
|
|
@-${MKDIR} ${DOCSDIR}
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} apidocs ${DOCSDIR}
|
|
.for f in ${DOC_FILES}
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
.endfor
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|