freebsd-ports/lang/groovy/files/set-groovy_home.sed.in
Herve Quiroz 88ccac22d2 - Update to 1.0-jsr-06 [1]
- Set GROOVY_HOME only when not already defined
- Set JAVA_HOME when not already defined, using feature from javavmwrapper 2.2

Reported by:	portscout [1]
2006-07-05 09:48:49 +00:00

5 lines
169 B
Sed

# $FreeBSD$
14i\
: ${GROOVY_HOME="%%DATADIR%%"}
14i\
[ -z "${JAVA_HOME}" ] && JAVA_HOME="`env JAVAVM_DRYRUN=yes %%LOCALBASE%%/bin/java | grep '^JAVA_HOME' | cut -c11-`"