* [gentoo-commits] repo/proj/guru:dev commit in: dev-java/corretto-bin/files/, dev-java/corretto-bin/
@ 2024-04-01 20:34 Robert Greener
0 siblings, 0 replies; 2+ messages in thread
From: Robert Greener @ 2024-04-01 20:34 UTC (permalink / raw
To: gentoo-commits
commit: d9de947673954f28916bd9149004487feff2eb79
Author: Robert Greener <me <AT> r0bert <DOT> dev>
AuthorDate: Mon Apr 1 20:22:15 2024 +0000
Commit: Robert Greener <me <AT> r0bert <DOT> dev>
CommitDate: Mon Apr 1 20:34:20 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d9de9476
dev-java/corretto-bin: new package, version 21.0.2.14.1
Signed-off-by: Robert Greener <me <AT> r0bert.dev>
dev-java/corretto-bin/Manifest | 1 +
.../corretto-bin/corretto-bin-21.0.2.14.1.ebuild | 91 ++++++++++++++++++++++
dev-java/corretto-bin/files/corretto-bin.env.sh | 13 ++++
dev-java/corretto-bin/metadata.xml | 11 +++
4 files changed, 116 insertions(+)
diff --git a/dev-java/corretto-bin/Manifest b/dev-java/corretto-bin/Manifest
new file mode 100644
index 0000000000..7ac2f1d1d4
--- /dev/null
+++ b/dev-java/corretto-bin/Manifest
@@ -0,0 +1 @@
+DIST amazon-corretto-21.0.2.14.1-linux-x64.tar.gz 209399162 BLAKE2B 8778c7ae7a8588b3a4dd58d5e3c18ca8931b5d4e32c4f308c0f765df7140232d7c800708859d86a66a58275a517edd461c16457159de5ca362d51728559bcd46 SHA512 14264809f297d42163c2c55c827b16eba058c39a36d5e92589419cccf66187b59225b08a8623f556d1febdeedbb2a47975b655b8bd816483d2862c7c44ef0470
diff --git a/dev-java/corretto-bin/corretto-bin-21.0.2.14.1.ebuild b/dev-java/corretto-bin/corretto-bin-21.0.2.14.1.ebuild
new file mode 100644
index 0000000000..8305000c24
--- /dev/null
+++ b/dev-java/corretto-bin/corretto-bin-21.0.2.14.1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit java-vm-2 toolchain-funcs
+
+MY_PV=${PV/_p/+}
+SLOT=$(ver_cut 1)
+
+SRC_URI="
+ https://corretto.aws/downloads/resources/${PV}/amazon-corretto-${PV}-linux-x64.tar.gz
+"
+
+DESCRIPTION="Prebuilt Java JDK binaries provided by Amazon Web Services"
+HOMEPAGE="https://aws.amazon.com/corretto"
+LICENSE="GPL-2-with-classpath-exception"
+KEYWORDS="~amd64"
+IUSE="alsa cups headless-awt selinux source"
+
+RDEPEND="
+ >=sys-apps/baselayout-java-0.1.0-r1
+ kernel_linux? (
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ media-libs/harfbuzz
+ elibc_glibc? ( >=sys-libs/glibc-2.2.5:* )
+ elibc_musl? ( sys-libs/musl )
+ sys-libs/zlib
+ alsa? ( media-libs/alsa-lib )
+ cups? ( net-print/cups )
+ selinux? ( sec-policy/selinux-java )
+ !headless-awt? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXrender
+ x11-libs/libXtst
+ )
+ )"
+
+RESTRICT="preserve-libs splitdebug"
+QA_PREBUILT="*"
+
+S="${WORKDIR}/amazon-corretto-${MY_PV}-linux-x64"
+
+pkg_pretend() {
+ if [[ "$(tc-is-softfloat)" != "no" ]]; then
+ die "These binaries require a hardfloat system."
+ fi
+}
+
+src_install() {
+ local dest="/opt/${P}"
+ local ddest="${ED}/${dest#/}"
+
+ # prefer system copy # https://bugs.gentoo.org/776676
+ rm -vf lib/libharfbuzz.so || die
+
+ # Oracle and IcedTea have libjsoundalsa.so depending on
+ # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
+ if ! use alsa ; then
+ rm -v lib/libjsound.* || die
+ fi
+
+ if use headless-awt ; then
+ rm -v lib/lib*{[jx]awt,splashscreen}* || die
+ fi
+
+ if ! use source ; then
+ rm -v lib/src.zip || die
+ fi
+
+ rm -v lib/security/cacerts || die
+ dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
+
+ dodir "${dest}"
+ cp -pPR * "${ddest}" || die
+
+ # provide stable symlink
+ dosym "${P}" "/opt/${PN}-${SLOT}"
+
+ java-vm_install-env "${FILESDIR}"/${PN}.env.sh
+ java-vm_set-pax-markings "${ddest}"
+ java-vm_revdep-mask
+ java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
+}
+
+pkg_postinst() {
+ java-vm-2_pkg_postinst
+}
\ No newline at end of file
diff --git a/dev-java/corretto-bin/files/corretto-bin.env.sh b/dev-java/corretto-bin/files/corretto-bin.env.sh
new file mode 100644
index 0000000000..0ec3b0f608
--- /dev/null
+++ b/dev-java/corretto-bin/files/corretto-bin.env.sh
@@ -0,0 +1,13 @@
+VERSION="AWS Corretto JDK ${PV}"
+JAVA_HOME="${EPREFIX}/opt/${P}"
+JDK_HOME="${EPREFIX}/opt/${P}"
+JAVAC="\${JAVA_HOME}/bin/javac"
+PATH="\${JAVA_HOME}/bin"
+ROOTPATH="\${JAVA_HOME}/bin"
+LDPATH="\${JAVA_HOME}/lib/:\${JAVA_HOME}/lib/server/"
+MANPATH=""
+PROVIDES_TYPE="JDK JRE"
+PROVIDES_VERSION="${SLOT}"
+BOOTCLASSPATH=""
+GENERATION="2"
+ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
diff --git a/dev-java/corretto-bin/metadata.xml b/dev-java/corretto-bin/metadata.xml
new file mode 100644
index 0000000000..b56f4a748f
--- /dev/null
+++ b/dev-java/corretto-bin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>me@r0bert.dev</email>
+ <name>Robert Greener</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">microsoft/openjdk</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-java/corretto-bin/files/, dev-java/corretto-bin/
@ 2024-04-01 20:34 Robert Greener
0 siblings, 0 replies; 2+ messages in thread
From: Robert Greener @ 2024-04-01 20:34 UTC (permalink / raw
To: gentoo-commits
commit: 18a72c4194be5ab11976f7e522e9283048da7e96
Author: Robert Greener <me <AT> r0bert <DOT> dev>
AuthorDate: Mon Apr 1 20:31:27 2024 +0000
Commit: Robert Greener <me <AT> r0bert <DOT> dev>
CommitDate: Mon Apr 1 20:34:20 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=18a72c41
dev-java/corretto-bin: new version 8.402.08.1
Signed-off-by: Robert Greener <me <AT> r0bert.dev>
dev-java/corretto-bin/Manifest | 2 +
.../corretto-bin/corretto-bin-11.0.22.7.1.ebuild | 91 ++++++++++++++++++++++
.../corretto-bin/corretto-bin-8.402.08.1.ebuild | 88 +++++++++++++++++++++
dev-java/corretto-bin/files/corretto-bin-8.env.sh | 13 ++++
4 files changed, 194 insertions(+)
diff --git a/dev-java/corretto-bin/Manifest b/dev-java/corretto-bin/Manifest
index 6c4ef55541..8148de911d 100644
--- a/dev-java/corretto-bin/Manifest
+++ b/dev-java/corretto-bin/Manifest
@@ -1,2 +1,4 @@
+DIST amazon-corretto-11.0.22.7.1-linux-x64.tar.gz 195214324 BLAKE2B 16dd4d260cd163b73786c445db6ddf8249d4a595dabdca5bffe3c168661a586be08004ca9244478a47578680dfc2f62bec3a7be7b6c91073de66ee90d85ad15e SHA512 9cc7ceee131b3aebabed75749e5fc9782d64083516a8fc42636fe4183eb90c883be8b3f711cc607980f4cabb87a4380593a3eb4df30ca88d7fb1a796dadffefe
DIST amazon-corretto-17.0.10.8.1-linux-x64.tar.gz 193714285 BLAKE2B 35184de6bfc2bbc1339817a09aeb1ae31d8eb93aaf4d2e936b69537cedf2dae761fc20ba6895a9344007f1cb50319c821361e0913831c4e0fcb05c06f6b62874 SHA512 485bbf9d6a45aac018ae5af5bac1608f81c91c0cacd6904854b33a0ed52267f55a751e97b4fef7dff37d5cf4300701ef3558b910299f0a85676b54c22b69dce7
DIST amazon-corretto-21.0.2.14.1-linux-x64.tar.gz 209399162 BLAKE2B 8778c7ae7a8588b3a4dd58d5e3c18ca8931b5d4e32c4f308c0f765df7140232d7c800708859d86a66a58275a517edd461c16457159de5ca362d51728559bcd46 SHA512 14264809f297d42163c2c55c827b16eba058c39a36d5e92589419cccf66187b59225b08a8623f556d1febdeedbb2a47975b655b8bd816483d2862c7c44ef0470
+DIST amazon-corretto-8.402.08.1-linux-x64.tar.gz 118079903 BLAKE2B 5b1ffcabe40e1d6046842a27a65014b055e2dc64736ea9359a74166b68a8435803ce745de7d4bd0d84deaa686c10b4a5d41b9cbb21bc2a0d6542e09042216169 SHA512 4584c80690a1c03fef4764be98ecc808ec1283bed687c0bfc9fc0a6d08d30885ec59aea8a19d0a18bde5ffb33527427c3b8cd41c795a75609514de198c76db76
diff --git a/dev-java/corretto-bin/corretto-bin-11.0.22.7.1.ebuild b/dev-java/corretto-bin/corretto-bin-11.0.22.7.1.ebuild
new file mode 100644
index 0000000000..8305000c24
--- /dev/null
+++ b/dev-java/corretto-bin/corretto-bin-11.0.22.7.1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit java-vm-2 toolchain-funcs
+
+MY_PV=${PV/_p/+}
+SLOT=$(ver_cut 1)
+
+SRC_URI="
+ https://corretto.aws/downloads/resources/${PV}/amazon-corretto-${PV}-linux-x64.tar.gz
+"
+
+DESCRIPTION="Prebuilt Java JDK binaries provided by Amazon Web Services"
+HOMEPAGE="https://aws.amazon.com/corretto"
+LICENSE="GPL-2-with-classpath-exception"
+KEYWORDS="~amd64"
+IUSE="alsa cups headless-awt selinux source"
+
+RDEPEND="
+ >=sys-apps/baselayout-java-0.1.0-r1
+ kernel_linux? (
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ media-libs/harfbuzz
+ elibc_glibc? ( >=sys-libs/glibc-2.2.5:* )
+ elibc_musl? ( sys-libs/musl )
+ sys-libs/zlib
+ alsa? ( media-libs/alsa-lib )
+ cups? ( net-print/cups )
+ selinux? ( sec-policy/selinux-java )
+ !headless-awt? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXrender
+ x11-libs/libXtst
+ )
+ )"
+
+RESTRICT="preserve-libs splitdebug"
+QA_PREBUILT="*"
+
+S="${WORKDIR}/amazon-corretto-${MY_PV}-linux-x64"
+
+pkg_pretend() {
+ if [[ "$(tc-is-softfloat)" != "no" ]]; then
+ die "These binaries require a hardfloat system."
+ fi
+}
+
+src_install() {
+ local dest="/opt/${P}"
+ local ddest="${ED}/${dest#/}"
+
+ # prefer system copy # https://bugs.gentoo.org/776676
+ rm -vf lib/libharfbuzz.so || die
+
+ # Oracle and IcedTea have libjsoundalsa.so depending on
+ # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
+ if ! use alsa ; then
+ rm -v lib/libjsound.* || die
+ fi
+
+ if use headless-awt ; then
+ rm -v lib/lib*{[jx]awt,splashscreen}* || die
+ fi
+
+ if ! use source ; then
+ rm -v lib/src.zip || die
+ fi
+
+ rm -v lib/security/cacerts || die
+ dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
+
+ dodir "${dest}"
+ cp -pPR * "${ddest}" || die
+
+ # provide stable symlink
+ dosym "${P}" "/opt/${PN}-${SLOT}"
+
+ java-vm_install-env "${FILESDIR}"/${PN}.env.sh
+ java-vm_set-pax-markings "${ddest}"
+ java-vm_revdep-mask
+ java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
+}
+
+pkg_postinst() {
+ java-vm-2_pkg_postinst
+}
\ No newline at end of file
diff --git a/dev-java/corretto-bin/corretto-bin-8.402.08.1.ebuild b/dev-java/corretto-bin/corretto-bin-8.402.08.1.ebuild
new file mode 100644
index 0000000000..a173e68f37
--- /dev/null
+++ b/dev-java/corretto-bin/corretto-bin-8.402.08.1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit java-vm-2 toolchain-funcs
+
+MY_PV=${PV/_p/+}
+SLOT=$(ver_cut 1)
+
+SRC_URI="
+ https://corretto.aws/downloads/resources/${PV}/amazon-corretto-${PV}-linux-x64.tar.gz
+"
+
+DESCRIPTION="Prebuilt Java JDK binaries provided by Amazon Web Services"
+HOMEPAGE="https://aws.amazon.com/corretto"
+LICENSE="GPL-2-with-classpath-exception"
+KEYWORDS="~amd64"
+IUSE="alsa cups headless-awt selinux source"
+
+RDEPEND="
+ >=sys-apps/baselayout-java-0.1.0-r1
+ kernel_linux? (
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ media-libs/harfbuzz
+ elibc_glibc? ( >=sys-libs/glibc-2.2.5:* )
+ elibc_musl? ( sys-libs/musl )
+ sys-libs/zlib
+ alsa? ( media-libs/alsa-lib )
+ cups? ( net-print/cups )
+ selinux? ( sec-policy/selinux-java )
+ !headless-awt? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXrender
+ x11-libs/libXtst
+ )
+ )"
+
+RESTRICT="preserve-libs splitdebug"
+QA_PREBUILT="*"
+
+S="${WORKDIR}/amazon-corretto-${MY_PV}-linux-x64"
+
+pkg_pretend() {
+ if [[ "$(tc-is-softfloat)" != "no" ]]; then
+ die "These binaries require a hardfloat system."
+ fi
+}
+
+src_install() {
+ local dest="/opt/${P}"
+ local ddest="${ED}/${dest#/}"
+
+ # prefer system copy # https://bugs.gentoo.org/776676
+ rm -vf lib/libharfbuzz.so || die
+
+ # Oracle and IcedTea have libjsoundalsa.so depending on
+ # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
+ if ! use alsa ; then
+ rm -v lib/libjsound.* || die
+ fi
+
+ if use headless-awt ; then
+ rm -v lib/lib*{[jx]awt,splashscreen}* || die
+ fi
+
+ if ! use source ; then
+ rm -v src.zip || die
+ fi
+
+ dodir "${dest}"
+ cp -pPR * "${ddest}" || die
+
+ # provide stable symlink
+ dosym "${P}" "/opt/${PN}-${SLOT}"
+
+ java-vm_install-env "${FILESDIR}"/${PN}-8.env.sh
+ java-vm_set-pax-markings "${ddest}"
+ java-vm_revdep-mask
+ java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
+}
+
+pkg_postinst() {
+ java-vm-2_pkg_postinst
+}
\ No newline at end of file
diff --git a/dev-java/corretto-bin/files/corretto-bin-8.env.sh b/dev-java/corretto-bin/files/corretto-bin-8.env.sh
new file mode 100644
index 0000000000..2a0d66e3bc
--- /dev/null
+++ b/dev-java/corretto-bin/files/corretto-bin-8.env.sh
@@ -0,0 +1,13 @@
+VERSION="AWS Corretto JDK ${PV}"
+JAVA_HOME="${EPREFIX}/opt/${P}"
+JDK_HOME="${EPREFIX}/opt/${P}"
+JAVAC="\${JAVA_HOME}/bin/javac"
+PATH="\${JAVA_HOME}/bin"
+ROOTPATH="\${JAVA_HOME}/bin"
+LDPATH="\${JAVA_HOME}/lib/:\${JAVA_HOME}/lib/server/"
+MANPATH="\${JAVA_HOME}/man"
+PROVIDES_TYPE="JDK JRE"
+PROVIDES_VERSION="1.${SLOT}"
+BOOTCLASSPATH="\${JAVA_HOME}/jre/lib/resources.jar:\${JAVA_HOME}/jre/lib/rt.jar:\${JAVA_HOME}/jre/lib/jsse.jar:\${JAVA_HOME}/jre/lib/jce.jar:\${JAVA_HOME}/jre/lib/charsets.jar:\${JAVA_HOME}/jre/lib/jfr.jar"
+GENERATION="2"
+ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-01 20:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-01 20:34 [gentoo-commits] repo/proj/guru:dev commit in: dev-java/corretto-bin/files/, dev-java/corretto-bin/ Robert Greener
-- strict thread matches above, loose matches on Subject: below --
2024-04-01 20:34 Robert Greener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox