openjdk: add binary bootstrap package for 1.7

adapt 1.8 to pick up the 1.7 package.
This commit is contained in:
Jerome Duval
2018-12-15 08:58:16 +01:00
parent 193312d550
commit 0b76d5b898
2 changed files with 57 additions and 1 deletions

View File

@@ -0,0 +1,53 @@
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_x86-1.7.u80_b32-3-x86_gcc2.hpkg#noarchive"
CHECKSUM_SHA256="1fb7a47c0b5b630905884eee3a080b35a3cd2b1d8dbe9ecfe8d0206c1f39e76a"
ARCHITECTURES="!x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
DISABLE_SOURCE_PACKAGE="yes"
PROVIDES="
openjdk7_bin$secondaryArchSuffix = $portVersion compat >= 1.7
java:environment = 7
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku
"
BUILD_PREREQUIRES="
"
INSTALL()
{
package extract $sourceDir/openjdk_x86-1.7.u80_b32-3-x86_gcc2.hpkg \
lib/x86/openjdk
jdkDir=$libDir/openjdk7
mkdir -p $(dirname $jdkDir)
mv lib/x86/openjdk $jdkDir
# create a profile.d file that sets up JDK7_HOME
jdkProfile=$dataDir/profile.d/openjdk7.sh
mkdir -p $(dirname $jdkProfile)
echo "JDK7_HOME=$jdkDir" > $jdkProfile
echo "export JDK7_HOME" >> $jdkProfile
}

View File

@@ -136,7 +136,7 @@ REQUIRES_sources="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
openjdk$secondaryArchSuffix >= 1.7
java:environment == 7
ca_root_certificates
devel:libfreetype$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
@@ -168,6 +168,9 @@ TEST_REQUIRES="
BUILD()
{
source /system/data/profile.d/openjdk7.sh
export PATH=$JDK7_HOME/bin:$PATH
# prepare the directory structure
ln -sfn $sourceDir2 hotspot
ln -sfn $sourceDir3 jdk