From 60583fcce17a6e6c5314df7c8e24560d6c97d6a6 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Wed, 20 Feb 2019 23:05:13 +0100 Subject: [PATCH] openjdk10: add bootstrap JDK for x86_64. to simplify the recipe changes it's actually JDK11 for x86_64. --- .../openjdk/openjdk10_bin-10.0.2.13.recipe | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 dev-lang/openjdk/openjdk10_bin-10.0.2.13.recipe diff --git a/dev-lang/openjdk/openjdk10_bin-10.0.2.13.recipe b/dev-lang/openjdk/openjdk10_bin-10.0.2.13.recipe new file mode 100644 index 000000000..807beadc0 --- /dev/null +++ b/dev-lang/openjdk/openjdk10_bin-10.0.2.13.recipe @@ -0,0 +1,51 @@ +SUMMARY="Open-source implementation of the Java Platform, SE" +DESCRIPTION="OpenJDK (Open Java Development Kit) is a free and open source \ +implementation of the Java Platform, Standard Edition (Java SE). It is the \ +result of an effort Sun Microsystems began in 2006. The implementation is \ +licensed under the GNU General Public License (GNU GPL) with a linking \ +exception. Were it not for the GPL linking exception, components that linked \ +to the Java class library would be subject to the terms of the GPL license. \ +OpenJDK is the official Java SE 7 reference implementation." +HOMEPAGE="http://openjdk.java.net/" +COPYRIGHT="2012 Oracle and/or its affiliates." +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://korli.keybase.pub/openjdk-11.0.1%2B13-haiku-x86_64.tar.bz2#noarchive" +CHECKSUM_SHA256="cf91d8ec5f974921db6a4fac11cf4269f1feb11f930fb2ea081fdfb91253e872" + +ARCHITECTURES="x86_64" +DISABLE_SOURCE_PACKAGE="yes" + +PROVIDES=" + openjdk10_bin$secondaryArchSuffix = $portVersion compat >= 1.10 + java:environment = 10 + " + +REQUIRES=" + haiku$secondaryArchSuffix + lib:libfreetype$secondaryArchSuffix + lib:libiconv$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku + " + +BUILD_PREREQUIRES=" + cmd:tar + cmd:xz + " + +INSTALL() +{ + jdkDir=$libDir/openjdk10 + mkdir -p $jdkDir + tar xvf $sourceDir/openjdk-11.0.1%2B13-haiku-x86_64.tar.bz2 -C $jdkDir + + # create a profile.d file that sets up JDK10_HOME + jdkProfile=$dataDir/profile.d/openjdk10.sh + mkdir -p $(dirname $jdkProfile) + echo "JDK10_HOME=$jdkDir" > $jdkProfile + echo "export JDK10_HOME" >> $jdkProfile +}