Commit 1a78290d authored by olgeni's avatar olgeni
Browse files

Upgrade to version 1.0.22.

- Add LICENSE
- Convert to USES=zip
- Replace WITHOUT_COMPILE with COMPILE option
- Replace NOPORTDOCS with MDOCS
- Use COPYTREE_SHARE
- Remove indefinite article from COMMENT
parent ebc7a6da
......@@ -2,17 +2,26 @@
# $FreeBSD$
PORTNAME= jcommon
PORTVERSION= 1.0.19
PORTVERSION= 1.0.22
CATEGORIES= java devel
MASTER_SITES= SF/jfreechart/3.%20JCommon/${PORTVERSION}
MAINTAINER= olgeni@FreeBSD.org
COMMENT= A collection of useful classes used by JFreeChart and JFreeReport
COMMENT= Collection of useful classes used by JFreeChart and JFreeReport
LICENSE= LGPL21
USES= zip
USE_JAVA= yes
JAVA_VERSION= 1.6+
.if !defined(WITHOUT_COMPILE)
OPTIONS_DEFINE= COMPILE
OPTIONS_DEFAULT=COMPILE
COMPILE_DESC= Build from source
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCOMPILE}
USE_ANT= yes
ALL_TARGET= compile-xml
BUILD_WRKSRC= ${WRKSRC}/ant
......@@ -20,27 +29,19 @@ BUILD_WRKSRC= ${WRKSRC}/ant
NO_BUILD= yes
.endif
.if !defined(NOPORTDOCS) && !defined(WITHOUT_COMPILE)
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MCOMPILE}
ALL_TARGET+= javadoc
PORTDOCS= *
.endif
PLIST_FILES= %%JAVAJARDIR%%/jcommon.jar %%JAVAJARDIR%%/jcommon-xml.jar
pre-fetch:
@${ECHO_MSG} ""
@${ECHO_MSG} "You may use the following build options:"
@${ECHO_MSG} ""
@${ECHO_MSG} " WITHOUT_COMPILE=yes Install the pre-compiled .jar file"
@${ECHO_MSG} ""
do-install:
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-xml-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-xml.jar
.if !defined(NOPORTDOCS) && !defined(WITHOUT_COMPILE)
.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MCOMPILE}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/javadoc && ${FIND} . \
| ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
SHA256 (jcommon-1.0.19.tar.gz) = 13eeb516394efe965dfbdb988242c92d2add7e11494ca6f5f53a1430122041dc
SIZE (jcommon-1.0.19.tar.gz) = 1121203
SHA256 (jcommon-1.0.22.zip) = b616388389aa0c1d46d54a9b768ba4158104af55c9c280db44e2b05d510beadb
SIZE (jcommon-1.0.22.zip) = 1581626
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment