diff options
author | Fabian Groffen <grobian@gentoo.org> | 2011-12-15 21:30:13 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2011-12-15 21:30:13 +0000 |
commit | 95e0bcff1b4aa890f9be9b6507d261f5ea4bd2cf (patch) | |
tree | eaee56c256a91d9bbfafe451a7219baa1217b987 /dev-java/diablo-jdk | |
parent | Drop old atheme-services-7.0.0_alpha8. (diff) | |
download | gentoo-2-95e0bcff1b4aa890f9be9b6507d261f5ea4bd2cf.tar.gz gentoo-2-95e0bcff1b4aa890f9be9b6507d261f5ea4bd2cf.tar.bz2 gentoo-2-95e0bcff1b4aa890f9be9b6507d261f5ea4bd2cf.zip |
Fix for Prefix, add amd64 FreeBSD support (~x64-freebsd Prefix arch), transferred Prefix keywords
(Portage version: 2.2.01.19941-prefix/cvs/Darwin i386)
Diffstat (limited to 'dev-java/diablo-jdk')
-rw-r--r-- | dev-java/diablo-jdk/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/diablo-jdk/diablo-jdk-1.6.0.07.02.ebuild | 65 |
2 files changed, 52 insertions, 20 deletions
diff --git a/dev-java/diablo-jdk/ChangeLog b/dev-java/diablo-jdk/ChangeLog index cbf625405c40..b19e4cee2c2f 100644 --- a/dev-java/diablo-jdk/ChangeLog +++ b/dev-java/diablo-jdk/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-java/diablo-jdk # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/diablo-jdk/ChangeLog,v 1.12 2011/05/21 04:29:26 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/diablo-jdk/ChangeLog,v 1.13 2011/12/15 21:30:13 grobian Exp $ + + 15 Dec 2011; Fabian Groffen <grobian@gentoo.org> + diablo-jdk-1.6.0.07.02.ebuild: + Fix for Prefix, add amd64 FreeBSD support (~x64-freebsd Prefix arch), + transferred Prefix keywords 21 May 2011; Samuli Suominen <ssuominen@gentoo.org> diablo-jdk-1.6.0.07.02.ebuild: diff --git a/dev-java/diablo-jdk/diablo-jdk-1.6.0.07.02.ebuild b/dev-java/diablo-jdk/diablo-jdk-1.6.0.07.02.ebuild index 51bee6828a69..22dcae13baf4 100644 --- a/dev-java/diablo-jdk/diablo-jdk-1.6.0.07.02.ebuild +++ b/dev-java/diablo-jdk/diablo-jdk-1.6.0.07.02.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/diablo-jdk/diablo-jdk-1.6.0.07.02.ebuild,v 1.3 2011/05/21 04:29:26 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/diablo-jdk/diablo-jdk-1.6.0.07.02.ebuild,v 1.4 2011/12/15 21:30:13 grobian Exp $ + +EAPI="3" inherit java-vm-2 eutils versionator @@ -9,13 +11,14 @@ HOMEPAGE="http://www.FreeBSDFoundation.org/downloads/java.shtml" MY_PV=$(replace_version_separator 3 '_') MY_PVL=$(get_version_component_range 1-3) -javafile="diablo-caffe-freebsd7-i386-$(replace_version_separator 4 '-b' ${MY_PV}).tar.bz2" +javafile32="diablo-caffe-freebsd7-i386-$(replace_version_separator 4 '-b' ${MY_PV}).tar.bz2" +javafile64="diablo-caffe-freebsd7-amd64-$(replace_version_separator 4 '-b' ${MY_PV}).tar.bz2" -SRC_URI="$javafile" +SRC_URI="x86-fbsd? ( ${javafile32} ) amd64-fbsd? ( ${javafile64} )" LICENSE="sun-bcla-java-vm" SLOT="1.6" -KEYWORDS="-* ~x86-fbsd" +KEYWORDS="-* ~x86-fbsd ~x64-freebsd ~x86-freebsd" RESTRICT="fetch" IUSE="X examples nsplugin jce" @@ -33,7 +36,7 @@ RDEPEND="X? ( x11-libs/libICE x11-libs/libXt x11-libs/libXtst ) - >=sys-freebsd/freebsd-lib-7 + !prefix? ( >=sys-freebsd/freebsd-lib-7 ) ${DEPEND}" JAVA_PROVIDE="jdbc-stdext jdbc-rowset" @@ -51,7 +54,7 @@ src_install() { dodir /opt/${P} for i in $dirs ; do - cp -pPR $i "${D}"/opt/${P}/ || die "failed to build" + cp -pPR $i "${ED}"/opt/${P}/ || die "failed to build" done dodoc COPYRIGHT README.html @@ -59,28 +62,31 @@ src_install() { dodir /opt/${P}/share/ - cp -pPR src.zip "${D}"/opt/${P}/share/ + cp -pPR src.zip "${ED}"/opt/${P}/share/ if use examples; then - cp -pPR demo "${D}"/opt/${P}/share/ - cp -pRR sample "${D}"/opt/${P}/share/ + cp -pPR demo "${ED}"/opt/${P}/share/ + cp -pRR sample "${ED}"/opt/${P}/share/ fi if use jce ; then - cd "${D}"/opt/${P}/jre/lib/security + cd "${ED}"/opt/${P}/jre/lib/security dodir /opt/${P}/jre/lib/security/strong-jce - mv "${D}"/opt/${P}/jre/lib/security/US_export_policy.jar "${D}"/opt/${P}/jre/lib/security/strong-jce - mv "${D}"/opt/${P}/jre/lib/security/local_policy.jar "${D}"/opt/${P}/jre/lib/security/strong-jce + mv "${ED}"/opt/${P}/jre/lib/security/US_export_policy.jar "${ED}"/opt/${P}/jre/lib/security/strong-jce + mv "${ED}"/opt/${P}/jre/lib/security/local_policy.jar "${ED}"/opt/${P}/jre/lib/security/strong-jce dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/US_export_policy.jar /opt/${P}/jre/lib/security/ dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/ fi + local arch=i386 + use amd64-fbsd && arch=amd64 + if use nsplugin; then - install_mozilla_plugin /opt/${P}/jre/plugin/i386/ns7/libjavaplugin_oji.so + install_mozilla_plugin /opt/${P}/jre/plugin/${arch}/ns7/libjavaplugin_oji.so fi # Change libz.so.4 to libz.so.1 - scanelf -qR -N libz.so.4 -F "#N" "${D}"/opt/${P}/ | \ + scanelf -qR -N libz.so.4 -F "#N" "${ED}"/opt/${P}/ | \ while read i; do if [[ $(strings "$i" | fgrep -c libz.so.4) -ne 1 ]]; then export SANITY_CHECK_LIBZ_FAILED=1 @@ -90,18 +96,39 @@ src_install() { done [[ "$SANITY_CHECK_LIBZ_FAILED" = "1" ]] && die "failed to change libz.so.4 to libz.so.1" + if [[ -n ${EPREFIX} ]] ; then + # create wrappers such that we can set LD_LIBRARY_PATH because all + # objects are created without RPATH we could tamper with :( + local d bin + for d in "${ED}"/opt/${P}/bin "${ED}"/opt/${P}/jre/bin ; do + cd "${d}" || die + mkdir real-bins || die + for bin in * ; do + [[ ${bin} == real-bins ]] && continue + mv ${bin} real-bins/ || die + cat > ${bin} <<- _EOD + #!${EPREFIX}/bin/sh + + export LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}\${LD_LIBRARY_PATH+:}${EPREFIX}/lib" + exec /${d#${D}}/real-bins/${bin} "\$@" + _EOD + chmod 755 ${bin} + done + done + fi + # create dir for system preferences dodir /opt/${P}/jre/.systemPrefs # Create files used as storage for system preferences. - touch "${D}"/opt/${P}/jre/.systemPrefs/.system.lock - chmod 644 "${D}"/opt/${P}/jre/.systemPrefs/.system.lock - touch "${D}"/opt/${P}/jre/.systemPrefs/.systemRootModFile - chmod 644 "${D}"/opt/${P}/jre/.systemPrefs/.systemRootModFile + touch "${ED}"/opt/${P}/jre/.systemPrefs/.system.lock + chmod 644 "${ED}"/opt/${P}/jre/.systemPrefs/.system.lock + touch "${ED}"/opt/${P}/jre/.systemPrefs/.systemRootModFile + chmod 644 "${ED}"/opt/${P}/jre/.systemPrefs/.systemRootModFile # install control panel for Gnome/KDE sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \ -e "s/\(Name=Java\)/\1 Control Panel ${SLOT}/" \ - "${D}"/opt/${P}/jre/plugin/desktop/sun_java.desktop > \ + "${ED}"/opt/${P}/jre/plugin/desktop/sun_java.desktop > \ "${T}"/sun_java-${SLOT}.desktop domenu "${T}"/sun_java-${SLOT}.desktop |