diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2006-07-14 10:41:27 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2006-07-14 10:41:27 +0000 |
commit | 8210665c9c7e9b7ce934686d1f2097391fd1b067 (patch) | |
tree | 09c17bdc8e9af52f773b6e5d798b33ae3b42329d /dev-java/sun-j2me-bin | |
parent | updated 1.02.00 patch. (diff) | |
download | gentoo-2-8210665c9c7e9b7ce934686d1f2097391fd1b067.tar.gz gentoo-2-8210665c9c7e9b7ce934686d1f2097391fd1b067.tar.bz2 gentoo-2-8210665c9c7e9b7ce934686d1f2097391fd1b067.zip |
Revision bump to use update_2, see bug #140327.
(Portage version: 2.1.1_pre2-r8)
Diffstat (limited to 'dev-java/sun-j2me-bin')
-rw-r--r-- | dev-java/sun-j2me-bin/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/sun-j2me-bin/files/digest-sun-j2me-bin-2.2-r3 | 6 | ||||
-rw-r--r-- | dev-java/sun-j2me-bin/sun-j2me-bin-2.2-r3.ebuild | 100 |
3 files changed, 113 insertions, 1 deletions
diff --git a/dev-java/sun-j2me-bin/ChangeLog b/dev-java/sun-j2me-bin/ChangeLog index 0b92ae32888c..6461f1c3a07d 100644 --- a/dev-java/sun-j2me-bin/ChangeLog +++ b/dev-java/sun-j2me-bin/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/sun-j2me-bin # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2me-bin/ChangeLog,v 1.2 2006/07/08 14:30:09 nelchael Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2me-bin/ChangeLog,v 1.3 2006/07/14 10:41:27 nelchael Exp $ + +*sun-j2me-bin-2.2-r3 (14 Jul 2006) + + 14 Jul 2006; Krzysiek Pawlik <nelchael@gentoo.org> + -sun-j2me-bin-2.2-r2.ebuild, +sun-j2me-bin-2.2-r3.ebuild: + Revision bump to use update_2, see bug #140327. 08 Jul 2006; Krzysiek Pawlik <nelchael@gentoo.org> sun-j2me-bin-2.2-r2.ebuild: diff --git a/dev-java/sun-j2me-bin/files/digest-sun-j2me-bin-2.2-r3 b/dev-java/sun-j2me-bin/files/digest-sun-j2me-bin-2.2-r3 new file mode 100644 index 000000000000..81c377cf4acb --- /dev/null +++ b/dev-java/sun-j2me-bin/files/digest-sun-j2me-bin-2.2-r3 @@ -0,0 +1,6 @@ +MD5 c9c631a7bb4681b1421ec8a30eb2c8c4 j2me_wireless_toolkit-2_2-linux-i386.bin 17637106 +RMD160 2ab276d41a6e20476b51ec80279ef6fd0019de5b j2me_wireless_toolkit-2_2-linux-i386.bin 17637106 +SHA256 4480bea914a4537ea81a5a70c517f91aa5a567915f470e70e050c332bfdd4d34 j2me_wireless_toolkit-2_2-linux-i386.bin 17637106 +MD5 5314421d3234ad3506923ff5e9f6a370 j2me_wireless_toolkit-2_2-update_2-linux.zip 1537734 +RMD160 244ba6ba2fd35338546261d73cfb9e46372293d8 j2me_wireless_toolkit-2_2-update_2-linux.zip 1537734 +SHA256 cdb17207c4eb15110ccc5222202f0043ac74237aab8c8b9f45abda2e0f449662 j2me_wireless_toolkit-2_2-update_2-linux.zip 1537734 diff --git a/dev-java/sun-j2me-bin/sun-j2me-bin-2.2-r3.ebuild b/dev-java/sun-j2me-bin/sun-j2me-bin-2.2-r3.ebuild new file mode 100644 index 000000000000..68cbc0190319 --- /dev/null +++ b/dev-java/sun-j2me-bin/sun-j2me-bin-2.2-r3.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2me-bin/sun-j2me-bin-2.2-r3.ebuild,v 1.1 2006/07/14 10:41:27 nelchael Exp $ + +inherit java-pkg-2 + +DESCRIPTION="Java 2 Micro Edition Wireless Toolkit for developing wireless applications" +HOMEPAGE="http://java.sun.com/products/j2mewtoolkit/" + +BINARY="j2me_wireless_toolkit-${PV//./_}-linux-i386.bin" +PATCH="j2me_wireless_toolkit-2_2-update_2-linux.zip" + +SRC_URI="${BINARY} ${PATCH}" +LICENSE="sun-bcla-j2me" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc examples" +RESTRICT="fetch" +DEPEND=">=dev-java/sun-jaf-bin-1.0 + >=dev-java/sun-javamail-bin-1.3 + dev-java/xsdlib" +RDEPEND="${DEPEND} + >=virtual/jdk-1.4.2" + +S=${WORKDIR} + +MY_FILE=${DISTDIR}/${BINARY} + +pkg_nofetch() { + + einfo "Please download ${BINARY} and the patch" + einfo "${PATCH} from:" + einfo "http://java.sun.com/products/sjwtoolkit/download-2_2.html" + einfo "and move it to ${DISTDIR}" + +} + +src_unpack() { + + if [[ ! -r ${MY_FILE} ]]; then + + eerror "cannot read ${A}. Please check the permission and try again." + die + + fi + + #extract compressed data and unpack + ebegin "Unpacking ${BINARY}" + dd bs=2048 if=${MY_FILE} of=install.zip skip=10 2>/dev/null || die + unzip install.zip >/dev/null || die + eend $? + rm install.zip + + unpack ${PATCH} + + #Set the java-bin-path in some scripts + for file in ktoolbar emulator mekeytool prefs utils wscompile defaultdevice; do + sed -i -e \ + "s@pathtowtk=\$@pathtowtk=\`java-config --jdk-home\`\"/bin/\"@" \ + ${WORKDIR}/bin/${file} || die + done + + cd ${S}/bin + rm -f activation.jar mail.jar xsdlib.jar + +} + +src_install() { + + local DIR=/opt/${P} + cd ${WORKDIR} + + einfo "Copying files" + dodir ${DIR} + cp -r appdb bin lib wtklib ${D}/${DIR} + use examples && cp -r apps ${D}/${DIR} + + einfo "Setting permissions" + chmod 755 ${D}/${DIR}/bin/* || die + chmod 644 ${D}/${DIR}/bin/*.jar || die + + einfo "Installing documentation" + dohtml *.html + use doc && java-pkg_dohtml -r docs/* + + cd ${D}/${DIR}/bin + java-pkg_jar-from sun-jaf-bin activation.jar + java-pkg_jar-from sun-javamail-bin mail.jar + java-pkg_jar-from xsdlib xsdlib.jar + + einfo "Registering jar files" + java-pkg_regjar \ + ${D}${DIR}/lib/*.jar \ + ${D}${DIR}/wtklib/kenv.zip \ + ${D}${DIR}/wtklib/*.jar + + dodir /usr/bin + dosym ${DIR}/bin/ktoolbar /usr/bin/ktoolbar + +} |