freebsd-ports/java/jakarta-commons-cli/Makefile
Mathieu Arnold 88bfe4bd43 Cleanup DIST* variables.
When appropriate:
- Try to use DISTVERSION{SUF,PRE}FIX
- Replace PORTNAME-PORTVERSION by DISTNAME
- Convert MASTER_SITES to use macros
- Other light cleanup

With hat:	portmgr
Sponsored by:	Absolight
2015-05-11 18:34:57 +00:00

38 lines
913 B
Makefile

# Created by: Ernst de Haan <znerd@FreeBSD.org>
# $FreeBSD$
PORTNAME= commons-cli
PORTVERSION= 1.2
PORTEPOCH= 1
CATEGORIES= java devel
MASTER_SITES= APACHE_COMMONS_BINARIES
PKGNAMEPREFIX= jakarta-
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin
MAINTAINER= ports@FreeBSD.org
COMMENT= Java library for command line arguments and options
LICENSE= APACHE20
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
JARFILE= ${PORTNAME}-${PORTVERSION}.jar
DESTJARFILE= ${PORTNAME}.jar
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_DATA} ${WRKSRC}/${JARFILE} \
${STAGEDIR}${JAVAJARDIR}/${DESTJARFILE}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} apidocs ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC} && ${INSTALL_DATA} LICENSE.txt NOTICE.txt \
RELEASE-NOTES.txt ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>