Lines 6-58
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= commons-cli |
8 |
PORTNAME= commons-cli |
9 |
PORTVERSION= 1.0 |
9 |
PORTVERSION= 1.2 |
10 |
PORTREVISION= 2 |
|
|
11 |
PORTEPOCH= 1 |
10 |
PORTEPOCH= 1 |
12 |
CATEGORIES= java devel |
11 |
CATEGORIES= java devel |
13 |
MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_SOURCE} |
12 |
MASTER_SITES= ${MASTER_SITE_APACHE_COMMONS_BINARIES} |
14 |
MASTER_SITE_SUBDIR= ${PORTNAME:S,commons-,,} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME:S,commons-,,} |
15 |
PKGNAMEPREFIX= jakarta- |
14 |
PKGNAMEPREFIX= jakarta- |
16 |
DISTNAME= cli-${PORTVERSION}-src |
15 |
DISTNAME= ${PORTNAME}-${PORTVERSION}-bin |
17 |
|
16 |
|
18 |
MAINTAINER= hq@FreeBSD.org |
17 |
MAINTAINER= hq@FreeBSD.org |
19 |
COMMENT= Java library for command line arguments and options |
18 |
COMMENT= Java library for command line arguments and options |
20 |
|
19 |
|
21 |
BUILD_DEPENDS= ${JAVALIBDIR}/commons-lang.jar:${PORTSDIR}/java/jakarta-commons-lang |
20 |
LICENSE= ASL |
22 |
|
21 |
|
23 |
USE_JAVA= yes |
22 |
USE_JAVA= yes |
24 |
JAVA_VERSION= 1.2+ |
23 |
JAVA_VERSION= 1.2+ |
|
|
24 |
NO_BUILD= yes |
25 |
|
25 |
|
26 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
26 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
27 |
|
27 |
|
28 |
USE_ANT= yes |
28 |
JARFILE= ${PORTNAME}-${PORTVERSION}.jar |
29 |
MAKE_ENV+= ANT_INCLUDE_SHARED_JARS=YES |
|
|
30 |
MAKE_ARGS= -Dnoget=yes |
31 |
ALL_TARGET= jar |
32 |
.if !defined(NOPORTDOCS) |
33 |
ALL_TARGET+= javadoc |
34 |
.endif |
35 |
|
36 |
JARFILE= ${PORTNAME}-${PORTVERSION}-beta-2-dev.jar |
37 |
DESTJARFILE= ${PORTNAME}.jar |
29 |
DESTJARFILE= ${PORTNAME}.jar |
38 |
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE} |
30 |
PLIST_FILES= %%JAVAJARDIR%%/${DESTJARFILE} |
39 |
.if !defined(NOPORTDOCS) |
31 |
.if !defined(NOPORTDOCS) |
40 |
PORTDOCS= apidocs LICENSE.txt |
32 |
PORTDOCS= * |
|
|
33 |
DOC_FILES= LICENSE.txt NOTICE.txt RELEASE-NOTES.txt |
41 |
.endif |
34 |
.endif |
42 |
|
35 |
|
43 |
post-extract: |
|
|
44 |
@${MKDIR} ${WRKSRC}/lib |
45 |
|
46 |
do-install: |
36 |
do-install: |
47 |
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..." |
37 |
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..." |
48 |
@${INSTALL_DATA} ${WRKSRC}/target/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE} |
38 |
@${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE} |
49 |
@${ECHO_MSG} " [ DONE ]" |
39 |
@${ECHO_MSG} " [ DONE ]" |
50 |
.if !defined(NOPORTDOCS) |
40 |
.if !defined(NOPORTDOCS) |
51 |
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." |
41 |
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." |
52 |
@cd ${WRKSRC}/target/docs \ |
42 |
@-${MKDIR} ${DOCSDIR} |
53 |
&& ${FIND} apidocs -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \ |
43 |
@cd ${WRKSRC} && ${COPYTREE_SHARE} apidocs ${DOCSDIR} |
54 |
&& ${FIND} apidocs -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; |
44 |
.for f in ${DOC_FILES} |
55 |
@${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}/ |
45 |
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ |
|
|
46 |
.endfor |
56 |
@${ECHO_MSG} " [ DONE ]" |
47 |
@${ECHO_MSG} " [ DONE ]" |
57 |
.endif |
48 |
.endif |
58 |
|
49 |
|