aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhq <hq@FreeBSD.org>2005-08-30 01:59:53 +0800
committerhq <hq@FreeBSD.org>2005-08-30 01:59:53 +0800
commit3509f92a5658773f703ca7ed2c76444472d37abf (patch)
treee80643e254772d35ba890ea6c6b02f14a8e5bdc2
parentd4927c4244dc43c1e9dd3462f3f79f6aa91598fd (diff)
downloadfreebsd-ports-gnome-3509f92a5658773f703ca7ed2c76444472d37abf.tar.gz
freebsd-ports-gnome-3509f92a5658773f703ca7ed2c76444472d37abf.tar.zst
freebsd-ports-gnome-3509f92a5658773f703ca7ed2c76444472d37abf.zip
- Update to 1.6.1 [1]
- Use DATADIR=${JAVASHAREDIR}/${PORTNAME} [1] - Add 'java' category - Use INSTALL_DATA rather than CP - Use %%DATADIR%% in launcher scripts (already included in SUB_LIST by bsd.port.mk) - Pass JAVA_VERSION to javavmwrapper in launcher scripts PR: 83979 [1] Submitted by: Pedro F. Giffuni <giffunip@asme.org> [1]
-rw-r--r--cad/impact/Makefile14
-rw-r--r--cad/impact/distinfo4
-rw-r--r--cad/impact/files/impact.in4
-rw-r--r--cad/impact/files/impactgui.in4
4 files changed, 13 insertions, 13 deletions
diff --git a/cad/impact/Makefile b/cad/impact/Makefile
index 2cccfd95b64e..ef459fe491de 100644
--- a/cad/impact/Makefile
+++ b/cad/impact/Makefile
@@ -7,8 +7,8 @@
#
PORTNAME= impact
-PORTVERSION= 0.5.3
-CATEGORIES= cad
+PORTVERSION= 0.6.1
+CATEGORIES= cad java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= Impact-${PORTVERSION}
@@ -22,20 +22,20 @@ USE_JAVA= yes
JAVA_VERSION= 1.4+
NO_BUILD= yes
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
SUB_FILES= impact impactgui
-SUB_LIST= DIR=${PREFIX}/impact
PLIST_FILES= bin/impact bin/impactgui
do-install:
- @${MKDIR} ${PREFIX}/impact
- ${CP} -R ${WRKSRC}/ ${PREFIX}/impact
+ cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} ${DATADIR}/{} \;
+ cd ${WRKSRC} && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
${INSTALL_SCRIPT} ${WRKDIR}/impact ${WRKDIR}/impactgui ${PREFIX}/bin
post-install:
- @${FIND} ${PREFIX}/impact ! -type d | \
+ @${FIND} ${DATADIR} ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
- @${FIND} ${PREFIX}/impact -type d | ${SORT} -r | \
+ @${FIND} ${DATADIR} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.include <bsd.port.mk>
diff --git a/cad/impact/distinfo b/cad/impact/distinfo
index a39bce47db36..5cd521597a80 100644
--- a/cad/impact/distinfo
+++ b/cad/impact/distinfo
@@ -1,2 +1,2 @@
-MD5 (Impact-0.5.3.zip) = 45fbc9e4e17daeb7ff06d0118eb11298
-SIZE (Impact-0.5.3.zip) = 5150450
+MD5 (Impact-0.6.1.zip) = c06f34619bfe878fc8aa24f5f5c19d0a
+SIZE (Impact-0.6.1.zip) = 3670738
diff --git a/cad/impact/files/impact.in b/cad/impact/files/impact.in
index 41e8fe5dc9f4..acb9a1d6a169 100644
--- a/cad/impact/files/impact.in
+++ b/cad/impact/files/impact.in
@@ -2,6 +2,6 @@
#
# $FreeBSD$
-cd %%DIR%%/bin
-"%%LOCALBASE%%/bin/java" -Xmx500m run.Impact $1
+cd %%DATADIR%%/bin
+JAVA_VERSION="%%JAVA_VERSION" "%%LOCALBASE%%/bin/java" -Xmx500m run.Impact "$@"
cd -
diff --git a/cad/impact/files/impactgui.in b/cad/impact/files/impactgui.in
index 13c99f61b004..289fc62a36da 100644
--- a/cad/impact/files/impactgui.in
+++ b/cad/impact/files/impactgui.in
@@ -2,6 +2,6 @@
#
# $FreeBSD$
-cd %%DIR%%/bin
-"%%LOCALBASE%%/bin/java" -Xmx500m gui.ImpactGUI
+cd %%DATADIR%%/bin
+JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -Xmx500m gui.ImpactGUI
cd -