From 7d9a37dd5453880833164636b8162ac1f46fc733 Mon Sep 17 00:00:00 2001 From: Krzysztof Pawlik Date: Thu, 6 Jul 2006 17:30:17 +0000 Subject: Initial version. (Portage version: 2.1.1_pre2-r4) --- dev-java/sun-j2me-bin/ChangeLog | 10 +++ dev-java/sun-j2me-bin/Manifest | 17 ++++ .../sun-j2me-bin/files/digest-sun-j2me-bin-2.2-r2 | 6 ++ dev-java/sun-j2me-bin/metadata.xml | 5 ++ dev-java/sun-j2me-bin/sun-j2me-bin-2.2-r2.ebuild | 94 ++++++++++++++++++++++ 5 files changed, 132 insertions(+) create mode 100644 dev-java/sun-j2me-bin/ChangeLog create mode 100644 dev-java/sun-j2me-bin/Manifest create mode 100644 dev-java/sun-j2me-bin/files/digest-sun-j2me-bin-2.2-r2 create mode 100644 dev-java/sun-j2me-bin/metadata.xml create mode 100644 dev-java/sun-j2me-bin/sun-j2me-bin-2.2-r2.ebuild (limited to 'dev-java/sun-j2me-bin') diff --git a/dev-java/sun-j2me-bin/ChangeLog b/dev-java/sun-j2me-bin/ChangeLog new file mode 100644 index 000000000000..8d61f8cc8ad5 --- /dev/null +++ b/dev-java/sun-j2me-bin/ChangeLog @@ -0,0 +1,10 @@ +# 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.1 2006/07/06 17:30:17 nelchael Exp $ + +*sun-j2me-bin-2.2-r2 (06 Jul 2006) + + 06 Jul 2006; Krzysiek Pawlik +metadata.xml, + +sun-j2me-bin-2.2-r2.ebuild: + Initial version. + diff --git a/dev-java/sun-j2me-bin/Manifest b/dev-java/sun-j2me-bin/Manifest new file mode 100644 index 000000000000..0a692552cc8f --- /dev/null +++ b/dev-java/sun-j2me-bin/Manifest @@ -0,0 +1,17 @@ +DIST j2me_wireless_toolkit-2_2-linux-i386.bin 17637106 RMD160 2ab276d41a6e20476b51ec80279ef6fd0019de5b SHA1 fa9888ab2a7486be1b168e395e0aa40ca0103f14 SHA256 4480bea914a4537ea81a5a70c517f91aa5a567915f470e70e050c332bfdd4d34 +DIST j2me_wireless_toolkit-2_2-update_1-linux.zip 1521230 RMD160 418d3cb3e95c959bb0010022e32f976648a892e5 SHA1 d83a9b6a7c253633d37619b2796f4aa271bd57f0 SHA256 678db2b8bbd365fd5ff3457272ce123c6720d08b2fe8f2b256eeabb3d65da153 +EBUILD sun-j2me-bin-2.2-r2.ebuild 2222 RMD160 4123f46a5a480e465f98b7b6c8c07933d5a1f8a5 SHA1 fbc7db761734750186bd37634b04b901a946e5c8 SHA256 824a1c11bf1f263e62c1c1fd9bb2e4aca35c154e6b1292e0f1993136881d5511 +MD5 76935a310dd7cfff3f8d672f785aac7a sun-j2me-bin-2.2-r2.ebuild 2222 +RMD160 4123f46a5a480e465f98b7b6c8c07933d5a1f8a5 sun-j2me-bin-2.2-r2.ebuild 2222 +SHA256 824a1c11bf1f263e62c1c1fd9bb2e4aca35c154e6b1292e0f1993136881d5511 sun-j2me-bin-2.2-r2.ebuild 2222 +MISC ChangeLog 277 RMD160 8f11de62c095c9519108bc48206772aba00967b1 SHA1 99974cf88e700d2ad38a26e9dfecdcbc560d9006 SHA256 b14ad065d5d9f1a63271768789675440ea2e64a893ea8ca3d53bc68570a7c72a +MD5 aad84cf54702d9f7047a6b208e5f7dbd ChangeLog 277 +RMD160 8f11de62c095c9519108bc48206772aba00967b1 ChangeLog 277 +SHA256 b14ad065d5d9f1a63271768789675440ea2e64a893ea8ca3d53bc68570a7c72a ChangeLog 277 +MISC metadata.xml 158 RMD160 493079b5fb71d66863beea1b023901c90ba81be5 SHA1 77cd509a8b3c377b9a24480b48a5d5481b7874f1 SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb +MD5 123cf9440c1d4ac78f2caba1624765f9 metadata.xml 158 +RMD160 493079b5fb71d66863beea1b023901c90ba81be5 metadata.xml 158 +SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb metadata.xml 158 +MD5 d982119b2e6d42951ca295fa800e919b files/digest-sun-j2me-bin-2.2-r2 623 +RMD160 e9f25dc6f761a1dbedddc34a6dec16cf56a4c48b files/digest-sun-j2me-bin-2.2-r2 623 +SHA256 3f99926c16b528b7d1a38fdf0859d6a89dcb95bddf8b332bf4be5b9087c6fc48 files/digest-sun-j2me-bin-2.2-r2 623 diff --git a/dev-java/sun-j2me-bin/files/digest-sun-j2me-bin-2.2-r2 b/dev-java/sun-j2me-bin/files/digest-sun-j2me-bin-2.2-r2 new file mode 100644 index 000000000000..b70ee34f8bbf --- /dev/null +++ b/dev-java/sun-j2me-bin/files/digest-sun-j2me-bin-2.2-r2 @@ -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 ed2aeadb22a73c46561394e59a6a3ce2 j2me_wireless_toolkit-2_2-update_1-linux.zip 1521230 +RMD160 418d3cb3e95c959bb0010022e32f976648a892e5 j2me_wireless_toolkit-2_2-update_1-linux.zip 1521230 +SHA256 678db2b8bbd365fd5ff3457272ce123c6720d08b2fe8f2b256eeabb3d65da153 j2me_wireless_toolkit-2_2-update_1-linux.zip 1521230 diff --git a/dev-java/sun-j2me-bin/metadata.xml b/dev-java/sun-j2me-bin/metadata.xml new file mode 100644 index 000000000000..7303cef96964 --- /dev/null +++ b/dev-java/sun-j2me-bin/metadata.xml @@ -0,0 +1,5 @@ + + + + java + diff --git a/dev-java/sun-j2me-bin/sun-j2me-bin-2.2-r2.ebuild b/dev-java/sun-j2me-bin/sun-j2me-bin-2.2-r2.ebuild new file mode 100644 index 000000000000..ed17f5d9faf2 --- /dev/null +++ b/dev-java/sun-j2me-bin/sun-j2me-bin-2.2-r2.ebuild @@ -0,0 +1,94 @@ +# 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-r2.ebuild,v 1.1 2006/07/06 17:30:17 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_1-linux.zip" +SRC_URI="${BINARY} ${PATCH}" +LICENSE="sun-bcla-j2me" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc examples" +RESTRICT="fetch" +# Before going official with this all the jars should be checked for packed stuff +# I think the lib/jsrXXX.jar probably are at least packed jars +DEPEND=">=dev-java/sun-jaf-bin-1.0 + >=dev-java/sun-javamail-bin-1.3" +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 + dd bs=2048 if=${MY_FILE} of=install.zip skip=10 2>/dev/null || die + unzip install.zip >/dev/null || die + 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 + + #replace included jar files with local versions + cd bin + rm -f activation.jar mail.jar + java-pkg_jar-from sun-jaf-bin activation.jar + java-pkg_jar-from sun-javamail-bin mail.jar + +} + +src_install() { + + local BIN_DESTINATION=/opt/${P}/bin + cd ${WORKDIR} + + insinto /opt/${P} + exeinto ${BIN_DESTINATION} + + dohtml *.html + + use doc && java-pkg_dohtml -r docs/* + use examples && doins -r apps + + doins -r appdb bin lib wtklib + + fperms 755 ${BIN_DESTINATION}/* + fperms 644 ${BIN_DESTINATION}/*.jar + + dodir /usr/bin + dosym ${BIN_DESTINATION}/ktoolbar /usr/bin/ktoolbar + + java-pkg_regjar \ + /opt/${P}/lib/*.jar \ + /opt/${P}/wtklib/kenv.zip \ + /opt/${P}/wtklib/*.jar + +} -- cgit v1.2.3-65-gdbad