aboutsummaryrefslogtreecommitdiffstats
path: root/java/jgrapht
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2014-06-05 05:50:22 +0800
committerjkim <jkim@FreeBSD.org>2014-06-05 05:50:22 +0800
commitd437dd668a18208c4e5192d7ba6be5682d6c6b1a (patch)
treec1f2c3122e9700f3111c51815645a6961dbdfd7c /java/jgrapht
parent9512a8c6df90e31f148b122539bacba0c92b763c (diff)
downloadfreebsd-ports-gnome-d437dd668a18208c4e5192d7ba6be5682d6c6b1a.tar.gz
freebsd-ports-gnome-d437dd668a18208c4e5192d7ba6be5682d6c6b1a.tar.zst
freebsd-ports-gnome-d437dd668a18208c4e5192d7ba6be5682d6c6b1a.zip
Fix build with java/openjdk7 and support staging. Note it does not build
with java/openjdk8. Reported by: exp-run (PR190511)
Diffstat (limited to 'java/jgrapht')
-rw-r--r--java/jgrapht/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/java/jgrapht/Makefile b/java/jgrapht/Makefile
index bc2ae75447e0..12e1d3bdea9f 100644
--- a/java/jgrapht/Makefile
+++ b/java/jgrapht/Makefile
@@ -12,7 +12,7 @@ COMMENT= Java package for mathematical graph-theory objects and algorithms
USES= zip
USE_JAVA= yes
-JAVA_VERSION= 1.6+
+JAVA_VERSION= 1.6 1.7
.if !defined(WITHOUT_COMPILE)
USE_ANT= yes
@@ -30,7 +30,6 @@ PORTDOCS= *
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
-NO_STAGE= yes
.include <bsd.port.pre.mk>
JAVA_PORT_API= ${LOCALBASE}/share/doc/jdk${JAVA_PORT_VERSION:C/([0-9]\.[0-9])\.[0-9]/\1/}/api
@@ -47,12 +46,12 @@ pre-fetch:
do-install:
@${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
- @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-jdk${JAVA_PORT_VERSION:C/1\.4\.[0-9]/1.4/:C/1\.[56]\.[0-9]/1.5/}.jar ${JAVAJARDIR}/${PORTNAME}.jar
+ @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-jdk1.5.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [DONE]"
.if !defined(NOPORTDOCS)
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
- @cd ${WRKSRC}/javadoc && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \;
- @cd ${WRKSRC}/javadoc && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
+ @cd ${WRKSRC}/javadoc && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
+ @cd ${WRKSRC}/javadoc && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
@${ECHO_MSG} " [DONE]"
.endif