Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 50615 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/dev-java/rhino/rhino-1.5-r5.ebuild (-7 / +9 lines)
Lines 6-12 Link Here
6
6
7
MY_P="rhino1_5R5"
7
MY_P="rhino1_5R5"
8
DESCRIPTION="Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users"
8
DESCRIPTION="Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users"
9
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.zip"
9
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/js/${MY_P}.zip mirror://gentoo/rhino-swing-ex.zip"
10
HOMEPAGE="http://www.mozilla.org/rhino/"
10
HOMEPAGE="http://www.mozilla.org/rhino/"
11
LICENSE="NPL-1.1"
11
LICENSE="NPL-1.1"
12
SLOT="0"
12
SLOT="0"
Lines 19-32 Link Here
19
RDEPEND=">=virtual/jre-1.3"
19
RDEPEND=">=virtual/jre-1.3"
20
RESTRICT="nomirror"
20
RESTRICT="nomirror"
21
21
22
src_unpack() {
23
	unpack ${MY_P}.zip
24
}
25
22
src_compile() {
26
src_compile() {
23
	local antflags="jar"
27
	local antflags="jar"
24
28
	
25
	[ -n $http_proxy ] && proxyhost=`echo $http_proxy | sed -e "s/^\(.*\):\([0-9]*\)/\1/g" ` && \
29
	mkdir ${S}/build/
26
	  proxyport=`echo $http_proxy | sed -e "s/^\(.*\):\([0-9]*\)/\2/g" ` && \
30
	cp ${DISTDIR}/rhino-swing-ex.zip ${S}/build/swingExSrc.zip
27
	  sed -e "s:<target name=\"get-swing-ex\" unless=\"swing-ex-available\">:&\n<setproxy proxyhost=\"${proxyhost}\" proxyport=\"${proxyport}\" />:g" \
31
	epatch ${FILESDIR}/dont-fetch-swing-ex.patch
28
	      -i toolsrc/build.xml
29
30
	use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
32
	use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
31
	ant ${antflags} || die "compilation error"
33
	ant ${antflags} || die "compilation error"
32
}
34
}

Return to bug 50615