From: Vlastimil Babka Date: Thu, 19 Apr 2007 22:43:26 +0000 (+0000) Subject: Version bump, bug #174481. Adds examples USE flag that controls installing of demos... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cb5755b88790a65d8ac2f610477c0e99e026e5ad;p=gentoo.git Version bump, bug #174481. Adds examples USE flag that controls installing of demos. The src.jar file moved to expected location per bug #2241, previously used location contains symlink that will be removed in next version bump. Package-Manager: portage-2.1.2.4 --- diff --git a/dev-java/ibm-jdk-bin/ChangeLog b/dev-java/ibm-jdk-bin/ChangeLog index ee71929c72a8..83e89757651b 100644 --- a/dev-java/ibm-jdk-bin/ChangeLog +++ b/dev-java/ibm-jdk-bin/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for dev-java/ibm-jdk-bin # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jdk-bin/ChangeLog,v 1.110 2007/04/13 16:56:28 caster Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jdk-bin/ChangeLog,v 1.111 2007/04/19 22:43:26 caster Exp $ + +*ibm-jdk-bin-1.4.2.8 (19 Apr 2007) + + 19 Apr 2007; Vlastimil Babka + +ibm-jdk-bin-1.4.2.8.ebuild: + Version bump, bug #174481. Adds examples USE flag that controls installing + of demos. The src.jar file moved to expected location per bug #2241, + previously used location contains symlink that will be removed in next + version bump. 13 Apr 2007; Vlastimil Babka -ibm-jdk-bin-1.4.2.6-r4.ebuild, ibm-jdk-bin-1.4.2.7.ebuild: diff --git a/dev-java/ibm-jdk-bin/Manifest b/dev-java/ibm-jdk-bin/Manifest index 81bb4c8f64c9..e8069630dc74 100644 --- a/dev-java/ibm-jdk-bin/Manifest +++ b/dev-java/ibm-jdk-bin/Manifest @@ -20,7 +20,15 @@ DIST IBMJava2-142-ppc64-SDK-1.4.2-7.0.ppc64.rpm 64389005 RMD160 f6d29a181ec77814 DIST IBMJava2-142-z31-SDK-1.4.2-7.0.s390.rpm 54794650 RMD160 dbdfc1661057847d6002a8e14ca4f12267cebc02 SHA1 d7f04f4c165352ff65ad760ce5587fc980d5cb20 SHA256 9631e42f57a72d2127504e71a23a1598a44eb88789d05d76addbbbf4260a7918 DIST IBMJava2-AMD64-142-SDK-1.4.2-7.0.x86_64.rpm 52762987 RMD160 57e4dda6b0dd8780bf495da0dfa10f84e8172948 SHA1 1b085c7195aee66c5d75316972aec3f90c78183b SHA256 04bd30e3a2b5ae2cabc5c052b73afc5dd4b8196f922f6916d318d90ff7435321 DIST IBMJava2-JAVACOMM-1.4.2-7.0.i386.rpm 121766 RMD160 64088291369bc4f75f83467bbd674f0396e7d77e SHA1 0bafc9aecaad9756426a9556c13e1177853d9050 SHA256 5cc7e42477aa62d6c50668b53b21bb464aa4dcb031844994a50394d30da2626e +DIST IBMJava2-JAVACOMM-1.4.2-8.0.ppc.tgz 124661 RMD160 9bf42ed20ec6a55f936a16b9f9bebe6c28c04b18 SHA1 e4b8e1319751e253b0da6e4e3d042b452ad56a66 SHA256 a51d630a24343216a1df5a77fdb2cf0e1055b342b6f370ad9526f23c835e3456 +DIST IBMJava2-JAVACOMM-1.4.2-8.0.ppc64.tgz 127731 RMD160 9d24e8acd2e5adda1a4b931d5295f71835943e80 SHA1 97393a6add9a8d6af242d6143bd5d60ac316bf89 SHA256 467ea13cf606eafcd8362e7996bee60c38eef20c0280beddf2f2881efdf37a94 +DIST IBMJava2-JAVACOMM-1.4.2-8.0.tgz 118351 RMD160 04d030551eb0e4abf349ff6185c862ed6ee097b9 SHA1 e92d27b4d2bd2592a45961418e7e836104ada285 SHA256 b1cab8c17752a7700e32511a6135aab291a6cf15eca123d3352d2609fc104090 DIST IBMJava2-JAVACOMM-AMD64-1.4.2-7.0.x86_64.rpm 123608 RMD160 58ca636893249e0c476d316c491f09568aaa995b SHA1 c1c8b7057993de69cb949be59d6541921eabacdc SHA256 519300df0c1144e600c29172f84cdeea739b29f83640b8f6b69b3d02996ed3ed +DIST IBMJava2-JAVACOMM-AMD64-1.4.2-8.0.x86_64.tgz 120223 RMD160 cb5c905befefe8c465ffd25418cb1b2f7077ec02 SHA1 ad85f0fb7666f061345892a0f96bdbfd797d204c SHA256 4b1b7c5ef7cb1c63edbb3d4eeb6c0d294989713de2b7e6b51946f4d055b9e8f1 +DIST IBMJava2-SDK-1.4.2-8.0.ppc.tgz 66354541 RMD160 e2bf580276a6b238b38d3bd279ba571fc38bd98c SHA1 aa0904b06608e8fb79534e7c26c521541a455b2e SHA256 4370724188f2e2ac549765d8d2e4bf0ef9e3a50d66657e0e7935dc9b4ecd1a97 +DIST IBMJava2-SDK-1.4.2-8.0.ppc64.tgz 64601721 RMD160 d2a984e38cb6af844de7d9c5dbbbd09a38965636 SHA1 cc666caf86d3a719e33a9ad69fa0afc48d3f1dbe SHA256 aae5abd91f3bf1ed387e6affdd98323949d37e2709272b9139d9ff96627afa26 +DIST IBMJava2-SDK-1.4.2-8.0.tgz 58613812 RMD160 d20623a495b1a57f2457f0db3966210685b339fb SHA1 959e0c94a4428ae2254ee6befbb3e5466d076faa SHA256 da63b0bd41baef600572ecd0514bfcc767757ba94839933909168bda2f62a8c3 +DIST IBMJava2-SDK-AMD64-1.4.2-8.0.x86_64.tgz 52926719 RMD160 70028cc3089819ee9f7c532f48aebf1fd07c4756 SHA1 124d2b21a6588cb0c525ce0c83679a4abda69091 SHA256 ce51e0634234674346b259bb8f47895769f8562575c9299507817fad045b5759 DIST ibm-java2-i386-javacomm-5.0-3.0.i386.rpm 125502 RMD160 7f730b454c73f95f59589735713d748736c6e7a5 SHA1 f0fe51d0e2c1a126d885a10afc6dd8776bff4899 SHA256 5766c8d8656c7dff6defda953954dee8f22d18c6dfbadb889bc5b27534ebd730 DIST ibm-java2-i386-sdk-5.0-3.0.i386.rpm 63033967 RMD160 dd32bc82e274923bb23e538942f727f1cbf36528 SHA1 b951f1d75a984dff3ef18b1689fdda88ecd84c9a SHA256 6455de039dac7c5ee6642d04940b2704fdf611f6275914821fdc548ee685ecd8 DIST ibm-java2-javacomm-5.0-4.0-linux-i386.tgz 119405 RMD160 6e541ac4df70e733a45871773496198e3163ff6f SHA1 2e5957947e69405d1d2e4ac2cb424c374ca13462 SHA256 d792a5eddb60b22cc749652c7fb8df56894c2bd88b423766256a9dc1744fbd30 @@ -41,6 +49,10 @@ EBUILD ibm-jdk-bin-1.4.2.7.ebuild 5511 RMD160 7fa64330251c8e802d96d1cc7ba721e50d MD5 db65d69f647a93c17a4c6e88f56f7935 ibm-jdk-bin-1.4.2.7.ebuild 5511 RMD160 7fa64330251c8e802d96d1cc7ba721e50dd66071 ibm-jdk-bin-1.4.2.7.ebuild 5511 SHA256 26527130a3d49f051fb33cd67fc6f36c76db19a180d3e33bb7505e880cbf6a03 ibm-jdk-bin-1.4.2.7.ebuild 5511 +EBUILD ibm-jdk-bin-1.4.2.8.ebuild 5990 RMD160 2677c210324c91d03fa1f5bb135ff2e89b9baa64 SHA1 ede95167a8208061a5f2e00c749018239b79a31c SHA256 23232d0115e926ab7828354d8c90e626e4de155eee753843f245ad1efdd648c3 +MD5 db612e8e69bb1b9019903a598cc455e4 ibm-jdk-bin-1.4.2.8.ebuild 5990 +RMD160 2677c210324c91d03fa1f5bb135ff2e89b9baa64 ibm-jdk-bin-1.4.2.8.ebuild 5990 +SHA256 23232d0115e926ab7828354d8c90e626e4de155eee753843f245ad1efdd648c3 ibm-jdk-bin-1.4.2.8.ebuild 5990 EBUILD ibm-jdk-bin-1.5.0.3-r1.ebuild 7916 RMD160 92a3cf988fb406250cb27932f8c63e614ee62dd4 SHA1 923bdaa9ddf88dfce9bfb3fe276457f925c5023c SHA256 155794eb9d539103a3d19d54a6594cc7f8762885dd0e7506aa069952cbfdeca5 MD5 97dd67ba7991d1cab4b03c02d16ba4fb ibm-jdk-bin-1.5.0.3-r1.ebuild 7916 RMD160 92a3cf988fb406250cb27932f8c63e614ee62dd4 ibm-jdk-bin-1.5.0.3-r1.ebuild 7916 @@ -49,10 +61,10 @@ EBUILD ibm-jdk-bin-1.5.0.4.ebuild 8065 RMD160 8e16ee133b7137ed3cb1e38f81ef8f1f09 MD5 5330cac3a88689064f592ba311dec964 ibm-jdk-bin-1.5.0.4.ebuild 8065 RMD160 8e16ee133b7137ed3cb1e38f81ef8f1f09616815 ibm-jdk-bin-1.5.0.4.ebuild 8065 SHA256 713566b4b9e1d63259ff2dda157e84c2fc4cc13e220be61ae6a120d774bfcfb2 ibm-jdk-bin-1.5.0.4.ebuild 8065 -MISC ChangeLog 17965 RMD160 a66edaf5bf4dfab811c281a3c8a908bf9e86ef63 SHA1 1d8c6974885f46077a8ca2b9f5fab2ec53663ef0 SHA256 f89fce6b599ff12dd51a74701799ed865a5500faed649bef9573e985b20a6e78 -MD5 3f170f21f2a6f108f65db8ab492604fa ChangeLog 17965 -RMD160 a66edaf5bf4dfab811c281a3c8a908bf9e86ef63 ChangeLog 17965 -SHA256 f89fce6b599ff12dd51a74701799ed865a5500faed649bef9573e985b20a6e78 ChangeLog 17965 +MISC ChangeLog 18321 RMD160 460153d6fbe221dc17d5de0fa951251cdf018892 SHA1 ed64b07547c00955259deeee6193cf20a19409de SHA256 ac2f47d937772b2acb1c5d9b1838c1b3a2a2281600f659732390f923bf5bdfeb +MD5 2a56c9027685065ab842a1cfaddb8455 ChangeLog 18321 +RMD160 460153d6fbe221dc17d5de0fa951251cdf018892 ChangeLog 18321 +SHA256 ac2f47d937772b2acb1c5d9b1838c1b3a2a2281600f659732390f923bf5bdfeb ChangeLog 18321 MISC metadata.xml 219 RMD160 2b7340f3ca0725d19839049c85a644fb2bb55b5e SHA1 7f610c6c183a353d1969b4d9ac48e01629830026 SHA256 97628c0f582c0835c18b9ea2d722a316084d64ded80d4e1be2db984a2c292428 MD5 4a3cb4232103a0de9bd143a145086a7b metadata.xml 219 RMD160 2b7340f3ca0725d19839049c85a644fb2bb55b5e metadata.xml 219 @@ -60,6 +72,9 @@ SHA256 97628c0f582c0835c18b9ea2d722a316084d64ded80d4e1be2db984a2c292428 metadata MD5 419c8a8434af302dad581a66c4f84366 files/digest-ibm-jdk-bin-1.4.2.7 2149 RMD160 8b10b0ac20175accaff97c0e9a6a6feda9325caa files/digest-ibm-jdk-bin-1.4.2.7 2149 SHA256 6c7f0571514f33f693e756e05621567f4d70e27c3c0ead655dee5b9539a046dd files/digest-ibm-jdk-bin-1.4.2.7 2149 +MD5 a6d46106014e6fdec5b4ad560719068b files/digest-ibm-jdk-bin-1.4.2.8 2294 +RMD160 43cd57e0b59c59b12b9dd4e178bc9369ada0fc0c files/digest-ibm-jdk-bin-1.4.2.8 2294 +SHA256 54b1a8191bf1850b31a737e6bcaa2d772b6d15f19ab673a5092e9bce59978e24 files/digest-ibm-jdk-bin-1.4.2.8 2294 MD5 bb9a5af9ad7ff0deddf4774fae62c81a files/digest-ibm-jdk-bin-1.5.0.3-r1 2396 RMD160 fda8627b96f7aa9352f3b4e682a3beb2c50a2e33 files/digest-ibm-jdk-bin-1.5.0.3-r1 2396 SHA256 e961c91ba6dc3a8afb2e2d763a0d92a82c6a178ea7800b8ab3cce00ecebe5af8 files/digest-ibm-jdk-bin-1.5.0.3-r1 2396 diff --git a/dev-java/ibm-jdk-bin/files/digest-ibm-jdk-bin-1.4.2.8 b/dev-java/ibm-jdk-bin/files/digest-ibm-jdk-bin-1.4.2.8 new file mode 100644 index 000000000000..fe288218246c --- /dev/null +++ b/dev-java/ibm-jdk-bin/files/digest-ibm-jdk-bin-1.4.2.8 @@ -0,0 +1,24 @@ +MD5 fc3a959a8c09b4c606593dfa6a633933 IBMJava2-JAVACOMM-1.4.2-8.0.ppc.tgz 124661 +RMD160 9bf42ed20ec6a55f936a16b9f9bebe6c28c04b18 IBMJava2-JAVACOMM-1.4.2-8.0.ppc.tgz 124661 +SHA256 a51d630a24343216a1df5a77fdb2cf0e1055b342b6f370ad9526f23c835e3456 IBMJava2-JAVACOMM-1.4.2-8.0.ppc.tgz 124661 +MD5 6f8825f699fc7d2e5c143ecdac4ecb5e IBMJava2-JAVACOMM-1.4.2-8.0.ppc64.tgz 127731 +RMD160 9d24e8acd2e5adda1a4b931d5295f71835943e80 IBMJava2-JAVACOMM-1.4.2-8.0.ppc64.tgz 127731 +SHA256 467ea13cf606eafcd8362e7996bee60c38eef20c0280beddf2f2881efdf37a94 IBMJava2-JAVACOMM-1.4.2-8.0.ppc64.tgz 127731 +MD5 0b2444077ef5afbc45cbccac80612737 IBMJava2-JAVACOMM-1.4.2-8.0.tgz 118351 +RMD160 04d030551eb0e4abf349ff6185c862ed6ee097b9 IBMJava2-JAVACOMM-1.4.2-8.0.tgz 118351 +SHA256 b1cab8c17752a7700e32511a6135aab291a6cf15eca123d3352d2609fc104090 IBMJava2-JAVACOMM-1.4.2-8.0.tgz 118351 +MD5 ab249cc262bc15e0d911f7898c66de8d IBMJava2-JAVACOMM-AMD64-1.4.2-8.0.x86_64.tgz 120223 +RMD160 cb5c905befefe8c465ffd25418cb1b2f7077ec02 IBMJava2-JAVACOMM-AMD64-1.4.2-8.0.x86_64.tgz 120223 +SHA256 4b1b7c5ef7cb1c63edbb3d4eeb6c0d294989713de2b7e6b51946f4d055b9e8f1 IBMJava2-JAVACOMM-AMD64-1.4.2-8.0.x86_64.tgz 120223 +MD5 6545eafe92e7001a79edc033c90b634c IBMJava2-SDK-1.4.2-8.0.ppc.tgz 66354541 +RMD160 e2bf580276a6b238b38d3bd279ba571fc38bd98c IBMJava2-SDK-1.4.2-8.0.ppc.tgz 66354541 +SHA256 4370724188f2e2ac549765d8d2e4bf0ef9e3a50d66657e0e7935dc9b4ecd1a97 IBMJava2-SDK-1.4.2-8.0.ppc.tgz 66354541 +MD5 4b054cb416db3784b84ef047ec89e89b IBMJava2-SDK-1.4.2-8.0.ppc64.tgz 64601721 +RMD160 d2a984e38cb6af844de7d9c5dbbbd09a38965636 IBMJava2-SDK-1.4.2-8.0.ppc64.tgz 64601721 +SHA256 aae5abd91f3bf1ed387e6affdd98323949d37e2709272b9139d9ff96627afa26 IBMJava2-SDK-1.4.2-8.0.ppc64.tgz 64601721 +MD5 d44d65a91667e4ad2cfe7d5b071817d0 IBMJava2-SDK-1.4.2-8.0.tgz 58613812 +RMD160 d20623a495b1a57f2457f0db3966210685b339fb IBMJava2-SDK-1.4.2-8.0.tgz 58613812 +SHA256 da63b0bd41baef600572ecd0514bfcc767757ba94839933909168bda2f62a8c3 IBMJava2-SDK-1.4.2-8.0.tgz 58613812 +MD5 389dc3881a2a3a3741785de66327457e IBMJava2-SDK-AMD64-1.4.2-8.0.x86_64.tgz 52926719 +RMD160 70028cc3089819ee9f7c532f48aebf1fd07c4756 IBMJava2-SDK-AMD64-1.4.2-8.0.x86_64.tgz 52926719 +SHA256 ce51e0634234674346b259bb8f47895769f8562575c9299507817fad045b5759 IBMJava2-SDK-AMD64-1.4.2-8.0.x86_64.tgz 52926719 diff --git a/dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.2.8.ebuild b/dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.2.8.ebuild new file mode 100644 index 000000000000..aec027f9a8fb --- /dev/null +++ b/dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.2.8.ebuild @@ -0,0 +1,206 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.2.8.ebuild,v 1.1 2007/04/19 22:43:26 caster Exp $ + +JAVA_SUPPORTS_GENERATION_1="true" +inherit java-vm-2 eutils versionator + +JDK_RELEASE=$(get_version_component_range 1-3) +SERVICE_RELEASE=$(get_version_component_range 4) +RPM_PV="${JDK_RELEASE}-${SERVICE_RELEASE}.0" + +JDK_DIST_PREFIX="IBMJava2-SDK-${RPM_PV}" +JAVACOMM_DIST_PREFIX="IBMJava2-JAVACOMM-${RPM_PV}" + +X86_JDK_DIST="${JDK_DIST_PREFIX}.tgz" +X86_JAVACOMM_DIST="${JAVACOMM_DIST_PREFIX}.tgz" + +# wonder why amd64 has this extra special AMD64 in its filename... +AMD64_JDK_DIST="IBMJava2-SDK-AMD64-${RPM_PV}.x86_64.tgz" +AMD64_JAVACOMM_DIST="IBMJava2-JAVACOMM-AMD64-${RPM_PV}.x86_64.tgz" + +PPC_JDK_DIST="${JDK_DIST_PREFIX}.ppc.tgz" +PPC_JAVACOMM_DIST="${JAVACOMM_DIST_PREFIX}.ppc.tgz" + +PPC64_JDK_DIST="${JDK_DIST_PREFIX}.ppc64.tgz" +PPC64_JAVACOMM_DIST="${JAVACOMM_DIST_PREFIX}.ppc64.tgz" + +if use x86; then + JDK_DIST=${X86_JDK_DIST} + JAVACOMM_DIST=${X86_JAVACOMM_DIST} + S="${WORKDIR}/IBMJava2-142" + LINK_ARCH="ia32" +elif use amd64; then + JDK_DIST=${AMD64_JDK_DIST} + JAVACOMM_DIST=${AMD64_JAVACOMM_DIST} + S="${WORKDIR}/IBMJava2-amd64-142" + LINK_ARCH="amd64" +elif use ppc; then + JDK_DIST=${PPC_JDK_DIST} + JAVACOMM_DIST=${PPC_JAVACOMM_DIST} + S="${WORKDIR}/IBMJava2-ppc-142" + LINK_ARCH="ip32" +elif use ppc64; then + JDK_DIST=${PPC64_JDK_DIST} + JAVACOMM_DIST=${PPC64_JAVACOMM_DIST} + S="${WORKDIR}/IBMJava2-ppc64-142" + LINK_ARCH="ip64" +fi + +DIRECT_DOWNLOAD="https://www14.software.ibm.com/webapp/iwm/web/preLogin.do?source=lxdk&S_PKG=${LINK_ARCH}142sr${SERVICE_RELEASE}&cp=UTF-8&S_TACT=105AGX05&S_CMP=JDK" + +DESCRIPTION="IBM Java Development Kit" +HOMEPAGE="http://www.ibm.com/developerworks/java/jdk/" +DOWNLOADPAGE="${HOMEPAGE}linux/download.html" +# bug #125178 +ALT_DOWNLOADPAGE="${HOMEPAGE}linux/older_download.html" + +SRC_URI="x86? ( ${X86_JDK_DIST} ) + amd64? ( ${AMD64_JDK_DIST} ) + ppc? ( ${PPC_JDK_DIST} ) + ppc64? ( ${PPC64_JDK_DIST} ) + javacomm? ( + x86? ( ${X86_JAVACOMM_DIST} ) + amd64? ( ${AMD64_JAVACOMM_DIST} ) + ppc? ( ${PPC_JAVACOMM_DIST} ) + ppc64? ( ${PPC64_JAVACOMM_DIST} ) + )" + +LICENSE="IBM-J1.4" +SLOT="1.4" +KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86" +IUSE="X alsa doc examples javacomm nsplugin" + +RDEPEND=" + =virtual/libstdc++-3.3 + alsa? ( media-libs/alsa-lib ) + X? ( + x11-libs/libXt + x11-libs/libX11 + x11-libs/libXtst + x11-libs/libXp + x11-libs/libXext + x11-libs/libXi + x11-libs/libXmu + ) + x86? ( nsplugin? ( =x11-libs/gtk+-1* =dev-libs/glib-1* ) ) + doc? ( =dev-java/java-sdk-docs-1.4.2* )" + + +RESTRICT="fetch" + +QA_TEXTRELS_amd64="opt/${P}/jre/bin/libj9jit22.so + opt/${P}/jre/bin/libjclscar_22.so" +QA_TEXTRELS_ppc64="opt/${P}/jre/bin/classic/libjvm.so" +QA_TEXTRELS_ppc="opt/${P}/jre/bin/libjitc.so + opt/${P}/jre/bin/libjaas.so" +QA_TEXTRELS_x86="opt/${P}/jre/bin/lib*.so + opt/${P}/jre/bin/javaplugin.so + opt/${P}/jre/bin/classic/libjvm.so + opt/${P}/jre/bin/classic/libcore.so" + +pkg_nofetch() { + einfo "Due to license restrictions, we cannot redistribute or fetch the distfiles" + einfo "Please visit: ${DOWNLOADPAGE}" + + einfo "Under Java 1.4.2, download SR${SERVICE_RELEASE} for your arch:" + einfo "${JDK_DIST}" + if use javacomm ; then + einfo "${JAVACOMM_DIST}" + fi + einfo "You can also use direct link to your arch download page:" + einfo "${DIRECT_DOWNLOAD}" + einfo "Place the file(s) in: ${DISTDIR}" + einfo "Then restart emerge: 'emerge --resume'" + + einfo "Note: if SR${SERVICE_RELEASE} is not available at ${DOWNLOADPAGE}" + einfo "it may have been moved to ${ALT_DOWNLOADPAGE}. Lately that page" + einfo "isn't updated, but the files should still available through the" + einfo "direct link to arch download page. If it doesn't work, file a bug." +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # bug #126105 + epatch "${FILESDIR}/${PN}-jawt.h.patch" +} + +src_compile() { true; } + +src_install() { + # javaws is on x86 only + if use x86; then + # The javaws execution script is 777 why? + chmod 0755 ${S}/jre/javaws/javaws + + # bug #147259 + dosym ../jre/javaws/javaws /opt/${P}/bin/javaws + dosym ../javaws/javaws /opt/${P}/jre/bin/javaws + fi + + # Copy all the files to the designated directory + dodir /opt/${P} + cp -pR ${S}/{bin,jre,lib,include} ${D}opt/${P}/ + + dodir /opt/${P}/share + if use examples; then + cp -pPR ${S}/demo ${D}opt/${P}/share/ + fi + + cp -pPR ${S}/src.jar "${D}/opt/${P}/" + dosym "../src.jar" /opt/${P}/share + + # setting the ppc stuff + if use ppc; then + dosed s:/proc/cpuinfo:/etc//cpuinfo:g /opt/${P}/jre/bin/libjitc.so + dosed s:/proc/cpuinfo:/etc//cpuinfo:g /opt/${P}/jre/bin/libjitc_g.so + insinto /etc + doins ${FILESDIR}/cpuinfo + fi + + if use x86 && use nsplugin; then + local plugin="libjavaplugin_oji.so" + + if has_version '>=sys-devel/gcc-3' ; then + plugin="libjavaplugin_ojigcc3.so" + fi + + install_mozilla_plugin /opt/${P}/jre/bin/${plugin} + elif use x86; then + rm ${D}/opt/${P}/jre/bin/libjavaplugin*.so + fi + + if ! use alsa; then + rm ${D}/opt/${P}/jre/bin/libjsoundalsa.so \ + || eerror "${D}/opt/${P}/jre/bin/libjsoundalsa.so not found" + fi + + dohtml -a html,htm,HTML -r docs + dodoc ${S}/docs/COPYRIGHT + + set_java_env +} + +pkg_postinst() { + java-vm-2_pkg_postinst + + if ! use X; then + ewarn + ewarn "You have not enabled the X useflag. It is possible that" + ewarn "you do not have an X server installed. Please note that" + ewarn "some parts of the IBM JDK require an X server to properly" + ewarn "function. Be careful which Java libraries you attempt to" + ewarn "use with your installation." + ewarn + fi + elog "" + elog "Starting with 1.4.2.8 the demos are installed only with USE=examples enabled" + elog "" + elog "Starting with 1.4.2.8 the src.jar is installed to the standard" + elog "location. It is still symlinked to the old location (/opt/${P}/share)" + elog "but it will be removed if there will ever be a version bump." + elog "See https://bugs.gentoo.org/show_bug.cgi?id=2241 and" + elog "for more details." +}