aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2004-05-30 11:38:17 +0800
committerlinimon <linimon@FreeBSD.org>2004-05-30 11:38:17 +0800
commita4eb8f0596720be6256131d0091377300a87f4f4 (patch)
treeb0d2abc192fcd96a60b2da6ac0e4e7a375f317ac /java
parentea026cb4bd64e45888dcf4f60517f42043dbfe90 (diff)
downloadfreebsd-ports-gnome-a4eb8f0596720be6256131d0091377300a87f4f4.tar.gz
freebsd-ports-gnome-a4eb8f0596720be6256131d0091377300a87f4f4.tar.zst
freebsd-ports-gnome-a4eb8f0596720be6256131d0091377300a87f4f4.zip
Upgrade java/jcommon to 0.9.3. Tweak the original port a little according
to ports' CHANGES file. Assign maintainership. PR: ports/67323 Submitted by: Sepherosa Ziehau <sepherosa at softhome.net>
Diffstat (limited to 'java')
-rw-r--r--java/jcommon/Makefile58
-rw-r--r--java/jcommon/distinfo4
2 files changed, 54 insertions, 8 deletions
diff --git a/java/jcommon/Makefile b/java/jcommon/Makefile
index 6bd908060599..8542edbcf111 100644
--- a/java/jcommon/Makefile
+++ b/java/jcommon/Makefile
@@ -7,19 +7,65 @@
#
PORTNAME= jcommon
-PORTVERSION= 0.8.8
+PORTVERSION= 0.9.3
CATEGORIES= java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= jfreechart
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= sepherosa@softhome.net
COMMENT= A collection of useful classes used by JFreeChart and JFreeReport
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
+
+RUN_DEPENDS= ${JAVAJARDIR}/log4j.jar:${PORTSDIR}/java/jakarta-log4j
+
+.if !defined(WITHOUT_COMPILE) || !defined(NOPORTDOCS)
+BUILD_DEPENDS= ${ANT_CMD}:${PORTSDIR}/devel/apache-ant
+ANT_CMD?= ${LOCALBASE}/bin/ant
+ANT= ${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT_CMD}
+.endif
+
+.if !defined(WITHOUT_COMPILE)
+JAVA_BUILD= yes
+ANT_TARGETS= compile
+.else
+JAVA_RUN= yes
+.endif
+
+.if !defined(NOPORTDOCS)
+ANT_TARGETS+= javadoc
+PORTDOCS= *
+.endif
+
PLIST_FILES= share/java/classes/jcommon.jar
-USE_JAVA= 1.2+
-NO_BUILD= yes
-do-install:
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.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-build:
+.if !defined(WITHOUT_COMPILE) || !defined(NOPORTDOCS)
+ @cd ${WRKSRC}/ant && ${ANT} ${ANT_TARGETS}
+.endif
+
+do-install: do-install-jar do-install-javadoc
+
+do-install-jar:
+ @${ECHO_CMD} -n ">> Installing .jar file..."
+ @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
+ @${ECHO_CMD} " [DONE]"
+
+do-install-javadoc:
+.if !defined(NOPORTDOCS)
+ @${ECHO_CMD} -n ">> Installing documentation in ${DOCSDIR}..."
+ @${MKDIR} ${DOCSDIR}
+ @cd ${WRKSRC}/javadoc && ${FIND} . \
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
+ @${ECHO_CMD} " [DONE]"
+.endif
.include <bsd.port.mk>
diff --git a/java/jcommon/distinfo b/java/jcommon/distinfo
index 3b5b280ee14a..71e4e84125bd 100644
--- a/java/jcommon/distinfo
+++ b/java/jcommon/distinfo
@@ -1,2 +1,2 @@
-MD5 (jcommon-0.8.8.tar.gz) = 0500ac56535aaf5c8ae7ecd49ee88df3
-SIZE (jcommon-0.8.8.tar.gz) = 451273
+MD5 (jcommon-0.9.3.tar.gz) = 99cfef482ba9d8c0319e02da85cff976
+SIZE (jcommon-0.9.3.tar.gz) = 1105632