Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 63834
Collapse All | Expand All

(-)sun-j2me-1.0.4.01.ebuild (-7 / +7 lines)
Lines 4-16 Link Here
4
4
5
DESCRIPTION="Java 2 Micro Edition Wireless Toolkit for developing wireless applications"
5
DESCRIPTION="Java 2 Micro Edition Wireless Toolkit for developing wireless applications"
6
HOMEPAGE="http://java.sun.com/products/j2mewtoolkit/"
6
HOMEPAGE="http://java.sun.com/products/j2mewtoolkit/"
7
SRC_URI="j2me_wireless_toolkit-${PV//./_}-bin-linuxi386.bin"
7
SRC_URI="j2me_wireless_toolkit-${PV//./_}-linux-i386.bin"
8
LICENSE="sun-bcla-j2me"
8
LICENSE="sun-bcla-j2me"
9
SLOT="0"
9
SLOT="0"
10
KEYWORDS="~x86"
10
KEYWORDS="~x86"
11
IUSE=""
11
IUSE=""
12
RESTRICT="fetch"
12
RESTRICT="fetch"
13
DEPEND=">=dev-java/sun-jdk-1.3"
13
DEPEND=">=dev-java/sun-jdk-1.4.2"
14
RDEPEND=">=dev-java/java-config-1.1.7"
14
RDEPEND=">=dev-java/java-config-1.1.7"
15
S=${WORKDIR}
15
S=${WORKDIR}
16
16
Lines 32-47 Link Here
32
	( jar xf install.zip >/dev/null && rm install.zip ) || die
32
	( jar xf install.zip >/dev/null && rm install.zip ) || die
33
33
34
	#Set the java-bin-path in some scripts
34
	#Set the java-bin-path in some scripts
35
	for file in ktoolbar emulator prefs utils defaultdevice; do
35
	for file in ktoolbar emulator mekeytool prefs utils wscompile defaultdevice
36
		sed -e "s@javapathtowtk=.*@javapathtowtk=\`java-config --jdk-home\`\"/bin/\"@" \
36
	do
37
			< ${WORKDIR}/bin/${file} > ${WORKDIR}/temp || die
37
		sed ${WORKDIR}/bin/${file} --in-place --expression \
38
		mv ${WORKDIR}/temp ${WORKDIR}/bin/${file} || die
38
			"s@pathtowtk=\$@pathtowtk=\`java-config --jdk-home\`\"/bin/\"@" ||die
39
	done
39
	done
40
}
40
}
41
41
42
src_install() {
42
src_install() {
43
	cd ${WORKDIR}
43
	cd ${WORKDIR}
44
	dohtml -r *.html document.css docs
44
	dohtml -r *.html docs
45
	exeinto /opt/${P}/bin
45
	exeinto /opt/${P}/bin
46
	doexe bin/*
46
	doexe bin/*
47
	fperms -x /opt/${P}/bin/*jar
47
	fperms -x /opt/${P}/bin/*jar

Return to bug 63834