summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorQuentin Glidic2013-06-27 10:37:21 +0200
committerQuentin Glidic2013-06-27 10:37:21 +0200
commit9194ae6fd449c79f757ff8545cb6ebf162be57aa (patch)
treec23e76635fa1e68e19072a7992ee51aa9ef795d8 /packages
parentb33b405760e7eb83addfbbe8cd4feb64162129c9 (diff)
downloadsardemff7-pending-9194ae6fd449c79f757ff8545cb6ebf162be57aa.tar.xz
sun-jdk-bin: Bye bye
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'packages')
-rw-r--r--packages/dev-lang/sun-jdk-bin/sun-jdk-bin-1.7.0_11.exheres-010
-rw-r--r--packages/dev-lang/sun-jdk-bin/sun-jdk-bin.exlib135
2 files changed, 0 insertions, 145 deletions
diff --git a/packages/dev-lang/sun-jdk-bin/sun-jdk-bin-1.7.0_11.exheres-0 b/packages/dev-lang/sun-jdk-bin/sun-jdk-bin-1.7.0_11.exheres-0
deleted file mode 100644
index 613bab6..0000000
--- a/packages/dev-lang/sun-jdk-bin/sun-jdk-bin-1.7.0_11.exheres-0
+++ /dev/null
@@ -1,10 +0,0 @@
-# Copyright 2009 Sterling X. Winter <replica@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-SLOT="$(ever range 1-2)"
-require sun-jdk-bin
-
-PLATFORMS="~amd64 ~x86"
-
-UPSTREAM_DOCUMENTATION="http://java.sun.com/javase/7/docs/api/ [[ lang = en ]]"
-
diff --git a/packages/dev-lang/sun-jdk-bin/sun-jdk-bin.exlib b/packages/dev-lang/sun-jdk-bin/sun-jdk-bin.exlib
deleted file mode 100644
index e7096ea..0000000
--- a/packages/dev-lang/sun-jdk-bin/sun-jdk-bin.exlib
+++ /dev/null
@@ -1,135 +0,0 @@
-# Copyright 2009 Sterling X. Winter <replica@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-require java [ virtual_jdk_and_jre_deps=false ] java-jdk [ use_versioned_java_home=${SLOT} ]
-
-MY_PV=$(ever range 2)u$(ever range 4)
-
-MY_PN_AMD64="jdk-${MY_PV}-linux-x64"
-MY_PN_X86="jdk-${MY_PV}-linux-i586"
-
-SUMMARY="Sun Java SE Development Kit"
-DESCRIPTION="
-Java Platform, Standard Edition (Java SE) lets you develop and deploy Java
-applications on desktops and servers, as well as today's demanding Embedded and
-Real-Time environments. The JRE provides the libraries, Java virtual machine,
-and other components necessary for you to run applets and applications written
-in the Java programming language. This runtime environment can be redistributed
-with applications to make them free-standing. The JDK includes the JRE plus
-command-line development tools such as compilers and debuggers that are
-necessary or useful for developing applets and applications.
-"
-HOMEPAGE="http://java.sun.com/javase/"
-DOWNLOADS="
- platform:amd64? ( ${MY_PN_AMD64}.tar.gz )
- platform:x86? ( ${MY_PN_X86}.tar.gz )
-"
-
-LICENCES="DLJ-1.1"
-MYOPTIONS="
- X [[ description = [ Enable runtime support for GUI toolkits and graphics APIs ] ]]
- alsa [[ description = [ Enable runtime support for sound ] ]]
- examples [[ description = [ Install Java demos and samples ] ]]
- jce [[ description = [
- Install Java Cryptography Extension to enable unlimited strength crypto policies
- ] ]]
- nsplugin [[ description = [ Install Java browser plugin(s) ] ]]
- odbc [[ description = [ Enable runtime JDBC support for native ODBC driver ] ]]
- print [[ description = [ Enable runtime support for printing ] ]]
- source [[ description = [
- Install src.zip, an archive of the class library source code useful in debugging
- ] ]]
- platform: amd64 x86
-"
-
-DEPENDENCIES="
- build+run:
- jce? ( dev-java/sun-jce:${SLOT} )
- run:
- X? (
- dev-libs/libpthread-stubs
- x11-libs/libICE
- x11-libs/libSM
- x11-libs/libX11
- x11-libs/libXau
- x11-libs/libXdmcp
- x11-libs/libXext
- x11-libs/libXi
- x11-libs/libXp
- x11-libs/libXt
- x11-libs/libXtst
- x11-libs/libxcb
- )
- alsa? ( sys-sound/alsa-lib )
- odbc? ( dev-db/unixODBC )
- print? ( net-print/cups ) [[ note = [ cups only needed for /usr/sbin/lpc ] ]]
-"
-
-RESTRICT="fetch strip"
-
-WORK="${WORKBASE}"/jdk${PV}
-
-pkg_nofetch() {
- default
- einfo "Automatic fetching is not possible due to licences concerns"
- einfo "http://www.oracle.com/technetwork/java/javase/downloads/index.html"
-}
-
-src_compile() {
- # Class Data Sharing archives aren't created automatically for DLJ-licensed
- # JDK bundles, so do it manually. CDS isn't supported at all for 64-bit.
- # http://java.sun.com/javase/6/docs/technotes/guides/vm/class-data-sharing.html
- if option platform:x86 ; then
- if ever at_least 1.6 ${SLOT} ; then
- einfo "Generating Class Data Sharing archive for the server VM"
- edo nonfatal "${WORK}"/bin/java -server -Xshare:dump ||
- ewarn "Unable to create CDS archive for server VM on this platform"
- fi
- fi
-}
-
-src_install() {
- local java_home="/usr/${LIBDIR}/${PN}-${SLOT}"
-
- dodir "${java_home}"
- edo cp -a bin include jre lib man "${IMAGE}${java_home}"
- keepdir "${java_home}"/jre/lib/applet
-
- if option odbc ; then
- edo cp -a db "${IMAGE}${java_home}"
- keepdir "${java_home}"/db/demo/programs/localcal/lib
- fi
-
- insinto "${java_home}"
- option examples && doins -r demo sample
- option source && doins src.zip
-
- if option jce ; then
- local jce_dir="${java_home}"/jre/lib/security \
- sun_jce_dir=/usr/${LIBDIR}/sun-jce-${SLOT}
-
- # Move the default limited-strength policy files and replace them with
- # symlinks to unlimited-strength versions from the sun-jce package.
- dodir "${jce_dir}"/limited
- edo pushd "${IMAGE}${jce_dir}"
- edo mv US_export_policy.jar local_policy.jar limited/
- edo popd
- dosym "${sun_jce_dir}"/US_export_policy.jar "${jce_dir}"/US_export_policy.jar
- dosym "${sun_jce_dir}"/local_policy.jar "${jce_dir}"/local_policy.jar
- fi
-
- if option nsplugin ; then
- if option platform:x86 ; then
- register_mozplugin "${java_home}"/jre/plugin/i386/ns7/libjavaplugin_oji.so plugin1
- register_mozplugin "${java_home}"/jre/lib/i386/libnpjp2.so plugin2
- elif option platform:amd64 ; then
- register_mozplugin "${java_home}"/jre/lib/amd64/libnpjp2.so plugin2
- fi
- fi
-
- dodoc *README*
-
- linkify_redundant_jdk_bins
- do_jdk_alternatives
-}
-