From ba8ee5b29954cb1855f31120f7e59c9c99891377 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Wed, 23 Jan 2013 10:31:07 +0000 Subject: Bump and make gcc[gtk] dep optional. #453422 Package-Manager: portage-2.1.11.31/cvs/Linux x86_64 Manifest-Sign-Key: 0x3C5CF75A --- dev-java/gcj-jdk/ChangeLog | 10 +++- dev-java/gcj-jdk/Manifest | 19 ++++--- dev-java/gcj-jdk/gcj-jdk-4.5.4-r1.ebuild | 98 ++++++++++++++++++++++++++++++++ dev-java/gcj-jdk/gcj-jdk-4.6.3-r3.ebuild | 98 ++++++++++++++++++++++++++++++++ dev-java/gcj-jdk/gcj-jdk-4.7.2.ebuild | 98 ++++++++++++++++++++++++++++++++ 5 files changed, 314 insertions(+), 9 deletions(-) create mode 100644 dev-java/gcj-jdk/gcj-jdk-4.5.4-r1.ebuild create mode 100644 dev-java/gcj-jdk/gcj-jdk-4.6.3-r3.ebuild create mode 100644 dev-java/gcj-jdk/gcj-jdk-4.7.2.ebuild (limited to 'dev-java/gcj-jdk') diff --git a/dev-java/gcj-jdk/ChangeLog b/dev-java/gcj-jdk/ChangeLog index f0e4a32a1923..615135d8ed95 100644 --- a/dev-java/gcj-jdk/ChangeLog +++ b/dev-java/gcj-jdk/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-java/gcj-jdk # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/gcj-jdk/ChangeLog,v 1.10 2013/01/13 16:53:02 sera Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/gcj-jdk/ChangeLog,v 1.11 2013/01/23 10:30:56 sera Exp $ + +*gcj-jdk-4.7.2 (23 Jan 2013) +*gcj-jdk-4.6.3-r3 (23 Jan 2013) +*gcj-jdk-4.5.4-r1 (23 Jan 2013) + + 23 Jan 2013; Ralph Sennhauser +gcj-jdk-4.5.4-r1.ebuild, + +gcj-jdk-4.6.3-r3.ebuild, +gcj-jdk-4.7.2.ebuild: + Bump and make gcc[gtk] dep optional. #453422 13 Jan 2013; Ralph Sennhauser files/gcj-jdk.env: Make vm env file Prefix aware. #445350 diff --git a/dev-java/gcj-jdk/Manifest b/dev-java/gcj-jdk/Manifest index 95f3449cdba3..66d0aa2d5df6 100644 --- a/dev-java/gcj-jdk/Manifest +++ b/dev-java/gcj-jdk/Manifest @@ -8,23 +8,26 @@ EBUILD gcj-jdk-4.4.6.ebuild 3728 SHA256 bde8e11a1e6942f53de2949c041ab7775fb8abc1 EBUILD gcj-jdk-4.5.1-r1.ebuild 3731 SHA256 0806f5fe7dcb7debc72356275ab796db52e7b929d6e366b1d2dcc0f3edc91019 SHA512 99d44838b412072ce26f394b6c924c13e45dca087107b8aa165e348b085089c61e6c6b0354653cf4c861c3f904c57a93f6698dcb257be881e4c167927fc38a37 WHIRLPOOL b0b9ca02aae454f947af3c2d4b0bd2e7729ff231844a6f769ffbe9455afa13d85d18b9365d6a8575216a519ea0d6495ddfecd46623e589938ef9d720506b566c EBUILD gcj-jdk-4.5.2-r1.ebuild 3731 SHA256 f095e83fb2412f61207e70196d94145044f2d36d44e070517f48d03274e71ab1 SHA512 7b171a18abcec74f51a9718ee13a8dbb95c86169334159abff54a1b7ae8522feec4e24af48c6a2008a5f0f4cd4605cdfbad1031133abdefa351a61b4c1cce416 WHIRLPOOL 973375027d104e627b8d877329c08f0f6a706a4addfd70676aacc220a83d92df069832f67726dfb132d7ff4f09b9c5f727f36e528f156b2c048b5ec71ea86fe0 EBUILD gcj-jdk-4.5.3.ebuild 3734 SHA256 5f11991c29201628298018492d0b0fb3a2403625eeaaa81c44d7fe5e9d0bd43d SHA512 e2b87b182320bd22661baa789c82125b917a4aae81adbb2bc85c4470d9164b0602be769cae2ab3c9c63bf487febd9885a957d417d6965f63f55fb15f1835ff34 WHIRLPOOL 2e0255b2be10a1687557f1496c234a681cf44207dca649ee5ed7689a9c0006a933ef7be34e557516efe799d0eecf5b559301e64dc3d978c2c1247aa2b4de26e0 +EBUILD gcj-jdk-4.5.4-r1.ebuild 3442 SHA256 835dff8e2a6f92b7de94d79c71235f89495f2901bb2ebd5c1d81cb26dcce3f33 SHA512 19efef1b91920551623439bf72f4c13035be505dde81fe49351c55b18b666c16d18b3de2bf89be262e6d257a031e3cd39dc2d61ef3f5c2f62ca51be528cd1410 WHIRLPOOL de69a9ae30102421a329c61d44994c1bd50c5620c77a87dafe7c314e42448598c3c7b1e8735b3d0490000096e0fff832a79c5470f38683272518ffa90590b68f EBUILD gcj-jdk-4.5.4.ebuild 3399 SHA256 e97fb564ac395c241c075143bac48df662b05c75ce4fcacacd73a7bbbf05b498 SHA512 da407a4606efbfb028fa2681113593d0daf6f5e14bb9bcf4fc4a8ab5e3cf201fae16fa7d5ff99f654388906f5766e0f0fdc6956ab232d15424b5211e27948c1f WHIRLPOOL eef35eed58ef22d1288d473855d5405fcd2586b594af4a7d4d5bca3941d64ea32400cf14d38d7641e7986712f96df765320648fe8af44515cf70ab8cf3560e93 EBUILD gcj-jdk-4.6.0.ebuild 3682 SHA256 fe95e431925daed2668250516f736edf9dc6a490331fae98379447fe24ac5eff SHA512 5a2090bb4577f2f8ddb22b652d8e22491a27406671219d92b13d5e65aa26a4b0f97ef7815250627ca9e284615d9115c4520d84e9b70d6a41ccbfdaad69c266b8 WHIRLPOOL 8d7d84dffa04430d9b20d2cbbde54c178d40b8a8b65db3fbccb5dc39c7d45f5b88d525c136ee47a2befe08e60dc679c48ce743815aff5c6f4b203043d57f7653 EBUILD gcj-jdk-4.6.1.ebuild 3682 SHA256 0710efad7c1b350a3ecc62efae6424bf006a74ae04dd9d948b0aeb663b06c7d2 SHA512 577ca80dda3e72702b92103c5952126cd9fbf4f91d63096d9cfe1501a82af1ce3606a710e6550b6b6c2c2236a0fc008a1e4d74d8cefdf1aadc1719ae8f8e4a5c WHIRLPOOL 92f221d3e9459b819e2de64ae54e79620d383213876f651cf6e1422b23d011c418906a7aff6460d7fe2f2f276bdd5b2777d19d6287bb812de590f6537a4a81fc EBUILD gcj-jdk-4.6.2-r1.ebuild 3814 SHA256 52f887c8a0f28f2d9504b809d987dcfb007f76208c1db8538eb1636f099d1f67 SHA512 2acb433fe8083818493fd8528cf8349874afd4f607e295c687a1071bb4224121debe5b77fc4abe1485ad5022fdd13d76739d42f73ceb1f44dbb5bedcb770034d WHIRLPOOL ccbb0e555fa60179b40656e8bdc2f4b41dfdc93aa1c2071528c66ff85579ed1486c3ba3db4673ca55be5a3d4767709c0b63758948ca32c7e4422830281142259 EBUILD gcj-jdk-4.6.3-r1.ebuild 3762 SHA256 f52f0b5bf3fd1df89842f6a7089e24fd654c819f5b2dbb32b1637270604a04b1 SHA512 f9c370cb10889efbc4c722df7abe40710b48ab2c585b75fc3b85c0dc06aa33ffe0084ba35120fead5528b0d73f8b94e95c7731e505cdeafd077201154c73a2df WHIRLPOOL 201087bd2d610124a32af83aece6b8ad7d230238e19bc89fd69e62635cca71e4c9dd6b6d8c49ca8b49f00f920c3a4ccd80bd0efc3aaaf3e72c618baf92050076 EBUILD gcj-jdk-4.6.3-r2.ebuild 3418 SHA256 83f62d076d09d027b1507e1138a6d0147b78c86974bc2e61eede0030e3f0c588 SHA512 43e64a693753314a2b33032c117a59b5ac9e9e3bb71ec3ee4d71c90ab61dabaa14a7992e411ca1bca629443891f6b327dfd3a4e6064910984f220c508f04d789 WHIRLPOOL db2842c368f04df2c424f1f23d71d831474f59ed17bba469cda78f61152661950762933d885e4eebeb263f1cd6acdf228555a80df68592ac48123cba08c2f7b7 +EBUILD gcj-jdk-4.6.3-r3.ebuild 3458 SHA256 d2df1668becdf4d5424a9ec48b0dda31c41ec3a9fb3af49e77b08c44dc5966fe SHA512 1ba3c440cc7190338334753f453c6463c85e42077ea456859b857fbdfc3764eef91aefdb3bc94ec30f00d1a6188f6717c13cbacb93a17c9cac62f6efeda8d32b WHIRLPOOL d468d8e7dd30007a7e77957d181c58198de6422f6657cd36ed4096a0b1bf7bda7e0f42e7e8cbf1ce3ded90267e1d1ae35338c6762daa668163af0b22d5dc4d7a EBUILD gcj-jdk-4.6.3.ebuild 3820 SHA256 27b45809157c0055ce6418c103905f412c7c5dd2f70e6b24cf0b5906fcb44bfa SHA512 15e43819132880317a718215eefb9fe26a102c632886fe27bb353ddbd153ecdcb13c9825c56b71f2112be0e53552a95e4b9d790124aa80c17bae5c703411527b WHIRLPOOL dd09140b44bc2c296aacf01db431b338a9654b1acec1a2e5884ca5e6b2cc93dc5dc9180db7fc24ec57234abf5bd3288d039de9d2e04e621e667f7bcd2f3a3bbd -MISC ChangeLog 2794 SHA256 b2c44885034eaa484086ca0db1c1f7ca9411e3938e22affe9d79ce87e99bbfbb SHA512 a2134da667bfccb800edb1f81ac8be8b48a69112fcfc08be833d43eca5d65fe2597ed41f7d869c4ad5e8ffac5acf152db767cfa979c0e8a2df20df87c39b1e20 WHIRLPOOL 8c8d8c0a8a894d654867dea0b136f5823521622cdc089c2970f3fdb7d1b10cec70b827ee51789aaf8597ca182e04890d555d8bdcd92397c91b52dad6331d0e1b +EBUILD gcj-jdk-4.7.2.ebuild 3455 SHA256 ad6323aba4b90dfaafbb8543b4939e920927c688e7127671a04dafecb2b8ef3e SHA512 a9248eae1ea293748e11f4a38834c98418e0be876247b31bb4a02c2663faac1d559f365dce1560c0299957487df47ca2e3f1d9cee34134f281d0dc2c53a11be4 WHIRLPOOL 759757dd96b93074dbf418743a93254842cc7a0d7130e4dd67de44c9aa698296611ddc27e08834a4d50ac817a28e74ac5e3511c64516e634ebfc6f869fbacf5b +MISC ChangeLog 3063 SHA256 77182611423e354102ccfe611577cf48b1528286b82d72b56d31b66e6a84661b SHA512 4dcf7846667efb50fa66b986877abfd9d20402e07dea8dd699190fad4dc4baa1f0edcb082fe6f921e1085b816bd1d79fb9f4e5e663620ea850e076f3ab6003f8 WHIRLPOOL c39aee513ade47bcf8a3fb1f26d2ce49ae18cede51761900b08d439888e340ba090a0a82f2768f37c70f51da0d5246d83a1aaa3b433cab6ab7e3818aba810439 MISC metadata.xml 389 SHA256 a1a04237211b0bac3c7d591a283c41bd4ee9afcb2304f85cf15a9436a66c724b SHA512 8214632729e5d93013b28af2aadaa324b6fb14b7cae83816dee1fe612537e58150080df0ae940237d65f8e08e6df01b4eb281a2d4af9002f8e2a5db1aa715b5c WHIRLPOOL 52aca940bef6aa74d862f2ca3704afb79983cfbd4d33d7384f362548e0d7b1f8a1c9cdacd4bbe58f24d31e3938ff67af48bec88f9ecadc92a7a083da9798c314 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQEcBAEBCAAGBQJQ8uczAAoJELjwI6Q8XPda0xoH/RsGiinaRC7QxiIH6cfaEr2c -RFTCxtRxwwKsCCsIEV8BOWMGcLW9IuYuhS/3G304Xqhej0i/X5BZTeyAj46UmPnz -SKvrWvJ2Vk3Nr4eCAmJhtBF1xpQlq43GT4OVAKXqLYM16G7V8egfU2W876/jPC64 -a+IuZh8Wrbkx70K79ZXKcgFF0gHQgBwDqo68H2/OcqL5ZLPMfZsFUlvCy8zM5phN -tAb+I13sp994M81HVOiXWBGvMw9ovsZ1ZD0nxmtOUc8BIipGCMRu6JeluhxUcdwI -8dtEgAUxEA1v5skxrIhVn4hGeEg/NjQzNxCucjuluR8UP4EXNCNoyhFw39vxqYc= -=8uXV +iQEcBAEBCAAGBQJQ/7zJAAoJELjwI6Q8XPda1kEH/R9+aLwLvCWD0sn6rU9Ls6he +8uci+hXf6nfky+UjpL0nKxoddNfyLnW9YzldeFYfN3tzdDAiNC6/FU7oECTiD8ta +aTlRnNEmLdBIiADDpc8tSFffjwEI62ifT8HuGwfoDTV3pvNFzj65VXLSjlXCmP1Q +xvXhfFct6UxCgjgk2LMRcw1YPHXxsTNIDpHmHScGRjSBBww8jl7pkgC2C7Zg0MPI +qgU09XeKYU6hLoaD0GRyUbZeGLhRy7h+jxBZeSUY9V72mD/ITQ0jxFWJxAQ5bqT1 +Xpwl4tXu2pwUQ1LhgfWWyF6Y5tNtKkmXMb9qZVX0Ysy+XTSRF6elP4/uHT8pNGw= +=Sk7t -----END PGP SIGNATURE----- diff --git a/dev-java/gcj-jdk/gcj-jdk-4.5.4-r1.ebuild b/dev-java/gcj-jdk/gcj-jdk-4.5.4-r1.ebuild new file mode 100644 index 000000000000..4223cf5a4f89 --- /dev/null +++ b/dev-java/gcj-jdk/gcj-jdk-4.5.4-r1.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/gcj-jdk/gcj-jdk-4.5.4-r1.ebuild,v 1.1 2013/01/23 10:30:56 sera Exp $ + +EAPI="5" + +inherit java-vm-2 multilib + +DESCRIPTION="Java wrappers around GCJ" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86" +SLOT="0" +IUSE="X" + +ECJ_GCJ_SLOT="3.5" + +RDEPEND=" + ~sys-devel/gcc-${PV}[gcj] + X? ( ~sys-devel/gcc-${PV}[gtk] ) + dev-java/ecj-gcj:${ECJ_GCJ_SLOT}" +DEPEND="${RDEPEND}" + +S="${WORKDIR}" + +src_install() { + # jre lib paths ... + local libarch="$(get_system_arch)" + local gcc_version=${PV} + local gccbin=$(gcc-config -B ${gcc_version}) + gccbin=${gccbin#"${EPREFIX}"} + local gcclib=$(gcc-config -L ${gcc_version} | cut -d':' -f1) + gcclib=${gcclib#"${EPREFIX}"} + local gcjhome="/usr/$(get_libdir)/${P}" + local gccchost="${CHOST}" + local gcjlibdir=$(echo "${EPREFIX}"/usr/$(get_libdir)/gcj-${gcc_version}-*) + gcjlibdir=${gcjlibdir#"${EPREFIX}"} + + # links + dodir ${gcjhome}/bin + dodir ${gcjhome}/jre/bin + dosym ${gccbin}/gij ${gcjhome}/bin/java + dosym ${gccbin}/gij ${gcjhome}/jre/bin/java + dosym ${gccbin}/gjar ${gcjhome}/bin/jar + dosym ${gccbin}/gjdoc ${gcjhome}/bin/javadoc + dosym ${gccbin}/grmic ${gcjhome}/bin/rmic + dosym ${gccbin}/gjavah ${gcjhome}/bin/javah + dosym ${gccbin}/jcf-dump ${gcjhome}/bin/javap + dosym ${gccbin}/gappletviewer ${gcjhome}/bin/appletviewer + dosym ${gccbin}/gjarsigner ${gcjhome}/bin/jarsigner + dosym ${gccbin}/grmiregistry ${gcjhome}/bin/rmiregistry + dosym ${gccbin}/grmiregistry ${gcjhome}/jre/bin/rmiregistry + dosym ${gccbin}/gkeytool ${gcjhome}/bin/keytool + dosym ${gccbin}/gkeytool ${gcjhome}/jre/bin/keytool + dosym ${gccbin}/gnative2ascii ${gcjhome}/bin/native2ascii + dosym ${gccbin}/gorbd ${gcjhome}/bin/orbd + dosym ${gccbin}/gorbd ${gcjhome}/jre/bin/orbd + dosym ${gccbin}/grmid ${gcjhome}/bin/rmid + dosym ${gccbin}/grmid ${gcjhome}/jre/bin/rmid + dosym ${gccbin}/gserialver ${gcjhome}/bin/serialver + dosym ${gccbin}/gtnameserv ${gcjhome}/bin/tnameserv + dosym ${gccbin}/gtnameserv ${gcjhome}/jre/bin/tnameserv + + dodir ${gcjhome}/jre/lib/${libarch}/client + dodir ${gcjhome}/jre/lib/${libarch}/server + dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/client/libjvm.so + dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/server/libjvm.so + use X && dosym ${gcjlibdir}/libjawt.so ${gcjhome}/jre/lib/${libarch}/libjawt.so + + dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-${gcc_version/_/-}.jar \ + ${gcjhome}/jre/lib/rt.jar + dodir ${gcjhome}/lib + dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-tools-${gcc_version/_/-}.jar \ + ${gcjhome}/lib/tools.jar + dosym ${gcclib}/include ${gcjhome} + + dosym /usr/bin/ecj-gcj-${ECJ_GCJ_SLOT} ${gcjhome}/bin/javac + + set_java_env +} + +pkg_postinst() { + # Do not set as system VM (see below) + # java-vm-2_pkg_postinst + + ewarn "gcj does not currently provide all the 1.5 APIs." + ewarn "See http://builder.classpath.org/japi/libgcj-jdk15.html" + ewarn "Check for existing bugs relating to missing APIs and file" + ewarn "new ones at http://gcc.gnu.org/bugzilla/" + ewarn + ewarn "Due to this and limited manpower, we currently cannot support" + ewarn "using gcj-jdk as a system VM. Its main purpose is to bootstrap" + ewarn "IcedTea without prior binary VM installation. To do that, execute:" + ewarn + ewarn "emerge -o icedtea && emerge icedtea" +} diff --git a/dev-java/gcj-jdk/gcj-jdk-4.6.3-r3.ebuild b/dev-java/gcj-jdk/gcj-jdk-4.6.3-r3.ebuild new file mode 100644 index 000000000000..4560dc154ae7 --- /dev/null +++ b/dev-java/gcj-jdk/gcj-jdk-4.6.3-r3.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/gcj-jdk/gcj-jdk-4.6.3-r3.ebuild,v 1.1 2013/01/23 10:30:56 sera Exp $ + +EAPI="5" + +inherit java-vm-2 multilib + +DESCRIPTION="Java wrappers around GCJ" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~x86-linux" +SLOT="0" +IUSE="X" + +ECJ_GCJ_SLOT="3.6" + +RDEPEND=" + ~sys-devel/gcc-${PV}[gcj] + X? ( ~sys-devel/gcc-${PV}[gtk] ) + dev-java/ecj-gcj:${ECJ_GCJ_SLOT}" +DEPEND="${RDEPEND}" + +S="${WORKDIR}" + +src_install() { + # jre lib paths ... + local libarch="$(get_system_arch)" + local gcc_version=${PV} + local gccbin=$(gcc-config -B ${gcc_version}) + gccbin=${gccbin#"${EPREFIX}"} + local gcclib=$(gcc-config -L ${gcc_version} | cut -d':' -f1) + gcclib=${gcclib#"${EPREFIX}"} + local gcjhome="/usr/$(get_libdir)/${P}" + local gccchost="${CHOST}" + local gcjlibdir=$(echo "${EPREFIX}"/usr/$(get_libdir)/gcj-${gcc_version}-*) + gcjlibdir=${gcjlibdir#"${EPREFIX}"} + + # links + dodir ${gcjhome}/bin + dodir ${gcjhome}/jre/bin + dosym ${gccbin}/gij ${gcjhome}/bin/java + dosym ${gccbin}/gij ${gcjhome}/jre/bin/java + dosym ${gccbin}/gjar ${gcjhome}/bin/jar + dosym ${gccbin}/gjdoc ${gcjhome}/bin/javadoc + dosym ${gccbin}/grmic ${gcjhome}/bin/rmic + dosym ${gccbin}/gjavah ${gcjhome}/bin/javah + dosym ${gccbin}/jcf-dump ${gcjhome}/bin/javap + dosym ${gccbin}/gappletviewer ${gcjhome}/bin/appletviewer + dosym ${gccbin}/gjarsigner ${gcjhome}/bin/jarsigner + dosym ${gccbin}/grmiregistry ${gcjhome}/bin/rmiregistry + dosym ${gccbin}/grmiregistry ${gcjhome}/jre/bin/rmiregistry + dosym ${gccbin}/gkeytool ${gcjhome}/bin/keytool + dosym ${gccbin}/gkeytool ${gcjhome}/jre/bin/keytool + dosym ${gccbin}/gnative2ascii ${gcjhome}/bin/native2ascii + dosym ${gccbin}/gorbd ${gcjhome}/bin/orbd + dosym ${gccbin}/gorbd ${gcjhome}/jre/bin/orbd + dosym ${gccbin}/grmid ${gcjhome}/bin/rmid + dosym ${gccbin}/grmid ${gcjhome}/jre/bin/rmid + dosym ${gccbin}/gserialver ${gcjhome}/bin/serialver + dosym ${gccbin}/gtnameserv ${gcjhome}/bin/tnameserv + dosym ${gccbin}/gtnameserv ${gcjhome}/jre/bin/tnameserv + + dodir ${gcjhome}/jre/lib/${libarch}/client + dodir ${gcjhome}/jre/lib/${libarch}/server + dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/client/libjvm.so + dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/server/libjvm.so + use X && dosym ${gcjlibdir}/libjawt.so ${gcjhome}/jre/lib/${libarch}/libjawt.so + + dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-${gcc_version/_/-}.jar \ + ${gcjhome}/jre/lib/rt.jar + dodir ${gcjhome}/lib + dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-tools-${gcc_version/_/-}.jar \ + ${gcjhome}/lib/tools.jar + dosym ${gcclib}/include ${gcjhome} + + dosym /usr/bin/ecj-gcj-${ECJ_GCJ_SLOT} ${gcjhome}/bin/javac + + set_java_env +} + +pkg_postinst() { + # Do not set as system VM (see below) + # java-vm-2_pkg_postinst + + ewarn "gcj does not currently provide all the 1.5 APIs." + ewarn "See http://builder.classpath.org/japi/libgcj-jdk15.html" + ewarn "Check for existing bugs relating to missing APIs and file" + ewarn "new ones at http://gcc.gnu.org/bugzilla/" + ewarn + ewarn "Due to this and limited manpower, we currently cannot support" + ewarn "using gcj-jdk as a system VM. Its main purpose is to bootstrap" + ewarn "IcedTea without prior binary VM installation. To do that, execute:" + ewarn + ewarn "emerge -o icedtea && emerge icedtea" +} diff --git a/dev-java/gcj-jdk/gcj-jdk-4.7.2.ebuild b/dev-java/gcj-jdk/gcj-jdk-4.7.2.ebuild new file mode 100644 index 000000000000..d9a0efeae3c5 --- /dev/null +++ b/dev-java/gcj-jdk/gcj-jdk-4.7.2.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/gcj-jdk/gcj-jdk-4.7.2.ebuild,v 1.1 2013/01/23 10:30:56 sera Exp $ + +EAPI="5" + +inherit java-vm-2 multilib + +DESCRIPTION="Java wrappers around GCJ" +HOMEPAGE="http://www.gentoo.org/" +SRC_URI="" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~x86-linux" +SLOT="0" +IUSE="X" + +ECJ_GCJ_SLOT="3.6" + +RDEPEND=" + ~sys-devel/gcc-${PV}[gcj] + X? ( ~sys-devel/gcc-${PV}[gtk] ) + dev-java/ecj-gcj:${ECJ_GCJ_SLOT}" +DEPEND="${RDEPEND}" + +S="${WORKDIR}" + +src_install() { + # jre lib paths ... + local libarch="$(get_system_arch)" + local gcc_version=${PV} + local gccbin=$(gcc-config -B ${gcc_version}) + gccbin=${gccbin#"${EPREFIX}"} + local gcclib=$(gcc-config -L ${gcc_version} | cut -d':' -f1) + gcclib=${gcclib#"${EPREFIX}"} + local gcjhome="/usr/$(get_libdir)/${P}" + local gccchost="${CHOST}" + local gcjlibdir=$(echo "${EPREFIX}"/usr/$(get_libdir)/gcj-${gcc_version}-*) + gcjlibdir=${gcjlibdir#"${EPREFIX}"} + + # links + dodir ${gcjhome}/bin + dodir ${gcjhome}/jre/bin + dosym ${gccbin}/gij ${gcjhome}/bin/java + dosym ${gccbin}/gij ${gcjhome}/jre/bin/java + dosym ${gccbin}/gjar ${gcjhome}/bin/jar + dosym ${gccbin}/gjdoc ${gcjhome}/bin/javadoc + dosym ${gccbin}/grmic ${gcjhome}/bin/rmic + dosym ${gccbin}/gjavah ${gcjhome}/bin/javah + dosym ${gccbin}/jcf-dump ${gcjhome}/bin/javap + dosym ${gccbin}/gappletviewer ${gcjhome}/bin/appletviewer + dosym ${gccbin}/gjarsigner ${gcjhome}/bin/jarsigner + dosym ${gccbin}/grmiregistry ${gcjhome}/bin/rmiregistry + dosym ${gccbin}/grmiregistry ${gcjhome}/jre/bin/rmiregistry + dosym ${gccbin}/gkeytool ${gcjhome}/bin/keytool + dosym ${gccbin}/gkeytool ${gcjhome}/jre/bin/keytool + dosym ${gccbin}/gnative2ascii ${gcjhome}/bin/native2ascii + dosym ${gccbin}/gorbd ${gcjhome}/bin/orbd + dosym ${gccbin}/gorbd ${gcjhome}/jre/bin/orbd + dosym ${gccbin}/grmid ${gcjhome}/bin/rmid + dosym ${gccbin}/grmid ${gcjhome}/jre/bin/rmid + dosym ${gccbin}/gserialver ${gcjhome}/bin/serialver + dosym ${gccbin}/gtnameserv ${gcjhome}/bin/tnameserv + dosym ${gccbin}/gtnameserv ${gcjhome}/jre/bin/tnameserv + + dodir ${gcjhome}/jre/lib/${libarch}/client + dodir ${gcjhome}/jre/lib/${libarch}/server + dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/client/libjvm.so + dosym ${gcjlibdir}/libjvm.so ${gcjhome}/jre/lib/${libarch}/server/libjvm.so + use X && dosym ${gcjlibdir}/libjawt.so ${gcjhome}/jre/lib/${libarch}/libjawt.so + + dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-${gcc_version/_/-}.jar \ + ${gcjhome}/jre/lib/rt.jar + dodir ${gcjhome}/lib + dosym /usr/share/gcc-data/${gccchost}/${gcc_version}/java/libgcj-tools-${gcc_version/_/-}.jar \ + ${gcjhome}/lib/tools.jar + dosym ${gcclib}/include ${gcjhome} + + dosym /usr/bin/ecj-gcj-${ECJ_GCJ_SLOT} ${gcjhome}/bin/javac + + set_java_env +} + +pkg_postinst() { + # Do not set as system VM (see below) + # java-vm-2_pkg_postinst + + ewarn "gcj does not currently provide all the 1.5 APIs." + ewarn "See http://builder.classpath.org/japi/libgcj-jdk15.html" + ewarn "Check for existing bugs relating to missing APIs and file" + ewarn "new ones at http://gcc.gnu.org/bugzilla/" + ewarn + ewarn "Due to this and limited manpower, we currently cannot support" + ewarn "using gcj-jdk as a system VM. Its main purpose is to bootstrap" + ewarn "IcedTea without prior binary VM installation. To do that, execute:" + ewarn + ewarn "emerge -o icedtea && emerge icedtea" +} -- cgit v1.2.3-65-gdbad