aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/jdraw
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2006-07-12 04:23:11 +0800
committeritetcu <itetcu@FreeBSD.org>2006-07-12 04:23:11 +0800
commit3dd3e321b7f43a11e7b3d7f3218b85a45d889152 (patch)
tree4776b845d170f5ccf58d3b05616e3e3dbc0f2c28 /graphics/jdraw
parent768d987d8b868cabc3fd36ca4f43a6e851abbc44 (diff)
downloadfreebsd-ports-gnome-3dd3e321b7f43a11e7b3d7f3218b85a45d889152.tar.gz
freebsd-ports-gnome-3dd3e321b7f43a11e7b3d7f3218b85a45d889152.tar.zst
freebsd-ports-gnome-3dd3e321b7f43a11e7b3d7f3218b85a45d889152.zip
- Update to 1.1.5
PR: ports/100105 Submitted by: maintainer
Diffstat (limited to 'graphics/jdraw')
-rw-r--r--graphics/jdraw/Makefile4
-rw-r--r--graphics/jdraw/distinfo6
-rw-r--r--graphics/jdraw/files/jdraw.in11
-rw-r--r--graphics/jdraw/pkg-plist2
4 files changed, 14 insertions, 9 deletions
diff --git a/graphics/jdraw/Makefile b/graphics/jdraw/Makefile
index cffe4dd1b99c..16e60f31bb08 100644
--- a/graphics/jdraw/Makefile
+++ b/graphics/jdraw/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= jdraw
-PORTVERSION= 1.1.4
+PORTVERSION= 1.1.5
CATEGORIES= graphics java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -24,7 +24,7 @@ OPTIONS= PLASTIC3D "Use Plastic3DLook&Feel" on
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
SUB_FILES= ${PORTNAME}
-SUB_LIST= JAVA=${JAVA} JAVAJARDIR=${JAVAJARDIR} JDRAWJAR=${JDRAWJAR} PLASTIC3D=${PLASTIC3D}
+SUB_LIST= JAVA_VERSION=${JAVA_VERSION} JDRAWJAR=${JDRAWJAR} PLASTIC3D=${PLASTIC3D}
JDRAWJAR= ${DATADIR}/${DISTFILES}
diff --git a/graphics/jdraw/distinfo b/graphics/jdraw/distinfo
index c9c04a236dbd..5e9c54c5fb2c 100644
--- a/graphics/jdraw/distinfo
+++ b/graphics/jdraw/distinfo
@@ -1,3 +1,3 @@
-MD5 (jdraw_v1.1.4.jar) = ad8942da9873ddea09094245cd820c02
-SHA256 (jdraw_v1.1.4.jar) = c59d46942d25535d1581ee8d5091f8dd4679559bdc81aba7a078c4460859cd7e
-SIZE (jdraw_v1.1.4.jar) = 672892
+MD5 (jdraw_v1.1.5.jar) = 16282b9a7863cf5660451327334bde12
+SHA256 (jdraw_v1.1.5.jar) = 4bc17505ee86644789e6d93ee6ebdfb5de0e4e4f4b7f63e4c83ffcd49d78d284
+SIZE (jdraw_v1.1.5.jar) = 705527
diff --git a/graphics/jdraw/files/jdraw.in b/graphics/jdraw/files/jdraw.in
index 7cb6969e16eb..ff618b262676 100644
--- a/graphics/jdraw/files/jdraw.in
+++ b/graphics/jdraw/files/jdraw.in
@@ -1,9 +1,14 @@
#!/bin/sh
# $FreeBSD$
-if [ -z "$1" ]; then
+if [ -z "${JAVA_VERSION}" ]; then
+ JAVA_VERSION="%%JAVA_VERSION%%"
+fi
+
+if [ "${JAVA_VERSION}" \> "1.4" ]; then
LOOK_AND_FEEL="%%PLASTIC3D%%"
else
- LOOK_AND_FEEL="$1"
+ LOOK_AND_FEEL=
fi
-%%JAVA%% -cp %%JAVAJARDIR%% ${LOOK_AND_FEEL} -jar %%JDRAWJAR%%
+exec "%%LOCALBASE%%/bin/java" -cp "%%JAVAJARDIR%%" ${LOOK_AND_FEEL} -jar "%%JDRAWJAR%%" "$@"
+
diff --git a/graphics/jdraw/pkg-plist b/graphics/jdraw/pkg-plist
index c3506d704cca..9762b2492cd2 100644
--- a/graphics/jdraw/pkg-plist
+++ b/graphics/jdraw/pkg-plist
@@ -1,4 +1,4 @@
@comment $FreeBSD$
bin/jdraw
-%%JAVASHAREDIR%%/jdraw/jdraw_v1.1.4.jar
+%%JAVASHAREDIR%%/jdraw/jdraw_v1.1.5.jar
@dirrm %%JAVASHAREDIR%%/jdraw