1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Fix javaws launcher. This shell script now uses bash extensions.

This commit is contained in:
Jung-uk Kim 2012-03-06 00:38:48 +00:00
parent 4f2f499449
commit 4021f1476f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=292789
2 changed files with 15 additions and 4 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= icedtea-web
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= java www
MASTER_SITES= http://icedtea.classpath.org/download/source/
@ -37,6 +38,7 @@ PORTDOCS= netx
BUILD_DEPENDS+= ${LOCALBASE}/bin/zip:${PORTSDIR}/archivers/zip \
${LOCALBASE}/bin/pkg-config:${PORTSDIR}/devel/pkg-config
RUN_DEPENDS+= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
CONFIGURE_ARGS+=--with-ecj=no --with-jdk-home="${JAVA_HOME}"
@ -79,6 +81,10 @@ BUILD_DEPENDS+= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
CONFIGURE_ARGS+=--with-junit=no
.endif
post-patch:
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/launcher/javaws.in
pre-extract:
@${ECHO_MSG}
@${ECHO_MSG} "IMPORTANT: To build IcedTea-Web ${PORTVERSION}, you have to turn on 'ICEDTEA' option"

View File

@ -1,6 +1,11 @@
--- launcher/javaws.in.orig 2011-06-08 15:42:40.284750000 -0400
+++ launcher/javaws.in 2011-07-12 14:12:11.000000000 -0400
@@ -5,7 +5,7 @@
--- launcher/javaws.in.orig 2012-03-05 11:04:20.493026000 -0500
+++ launcher/javaws.in 2012-03-05 19:04:39.000000000 -0500
@@ -1,11 +1,11 @@
-#!/bin/bash
+#!%%LOCALBASE%%/bin/bash
JAVA=@JAVA@
LAUNCHER_BOOTCLASSPATH=@LAUNCHER_BOOTCLASSPATH@
LAUNCHER_FLAGS=-Xms8m
CLASSNAME=net.sourceforge.jnlp.runtime.Boot
BINARY_LOCATION=@JAVAWS_BIN_LOCATION@
@ -8,4 +13,4 @@
+PROGRAM_NAME=itweb-javaws
CP=@JRE@/lib/rt.jar
JAVA_ARGS=
JAVA_ARGS=( )