diff options
author | Herve Quiroz <hq@FreeBSD.org> | 2006-04-28 15:44:51 +0000 |
---|---|---|
committer | Herve Quiroz <hq@FreeBSD.org> | 2006-04-28 15:44:51 +0000 |
commit | 9ed380696f1b13d4dc8c257e61c30faa4b1adc26 (patch) | |
tree | 33e00468b6a9bbb196e26f419b28c041c27b8d56 /graphics/mapyrus | |
parent | 493da70a5a7bee92bb84a51bb260176970616bc4 (diff) | |
download | ports-9ed380696f1b13d4dc8c257e61c30faa4b1adc26.tar.gz ports-9ed380696f1b13d4dc8c257e61c30faa4b1adc26.zip |
- Set Java required version to 1.4+ (as specified on the main website)
- Use javavmwrapper to avoid hardcoding a particular JVM
- Use 'exec' in the launcher shell script
- Quote "$@" in launcher shell script
- Cleanup redundant SUB_LIST entries
PR: 96461
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=160664
Diffstat (limited to 'graphics/mapyrus')
-rw-r--r-- | graphics/mapyrus/Makefile | 3 | ||||
-rw-r--r-- | graphics/mapyrus/files/mapyrus.in | 3 | ||||
-rw-r--r-- | graphics/mapyrus/files/pkg-message.in | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/graphics/mapyrus/Makefile b/graphics/mapyrus/Makefile index 2730b98452ec..71b6ce07d3aa 100644 --- a/graphics/mapyrus/Makefile +++ b/graphics/mapyrus/Makefile @@ -18,11 +18,12 @@ NO_BUILD= yes NO_WRKSUBDIR= yes USE_JAVA= yes +JAVA_VERSION= 1.4+ USE_ZIP= yes DATADIR= ${JAVASHAREDIR}/${PORTNAME} SUB_FILES= ${PORTNAME} pkg-message -SUB_LIST= JAVA=${JAVA} DATADIR=${DATADIR} MAPYRUSJAR=${MAPYRUSJAR} +SUB_LIST= MAPYRUSJAR=${MAPYRUSJAR} MAPYRUSJAR= ${PORTNAME}.jar MAPYRUSDOCS= ${PORTNAME}.pdf diff --git a/graphics/mapyrus/files/mapyrus.in b/graphics/mapyrus/files/mapyrus.in index b6088965ad3c..da1a60f328ff 100644 --- a/graphics/mapyrus/files/mapyrus.in +++ b/graphics/mapyrus/files/mapyrus.in @@ -1,3 +1,4 @@ #!/bin/sh # $FreeBSD$ -%%JAVA%% -jar %%DATADIR%%/%%MAPYRUSJAR%% $@ +JAVA_VERSION="%%JAVA_VERSION%%" \ + exec "%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/%%MAPYRUSJAR%%" "$@" diff --git a/graphics/mapyrus/files/pkg-message.in b/graphics/mapyrus/files/pkg-message.in index 299fdf8536af..0c3c693dfb57 100644 --- a/graphics/mapyrus/files/pkg-message.in +++ b/graphics/mapyrus/files/pkg-message.in @@ -2,7 +2,7 @@ Start Mapyrus from a terminal window with a command like: -%%JAVA%% -classpath %%DATADIR%%/%%MAPYRUSJAR%% org.mapyrus.Mapyrus myfile.mapyrus +java -classpath %%DATADIR%%/%%MAPYRUSJAR%% org.mapyrus.Mapyrus myfile.mapyrus or simply: |