mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-java/corretto-bin: add 24.0.1.9.1
Signed-off-by: Robert Greener <dev@greener.sh>
This commit is contained in:
@@ -2,4 +2,5 @@ DIST amazon-corretto-11.0.27.6.1-linux-x64.tar.gz 195570710 BLAKE2B d5b5740059f1
|
||||
DIST amazon-corretto-17.0.15.6.1-linux-x64.tar.gz 193554879 BLAKE2B 960f94ec695051ed41826cc1af7b7895031bc2df14dd11c68ca0d9842c53946489e94fc129c53a806664a138a1998aa96049a76e7568d58dc0b43c567852495c SHA512 7c6f3b30307682bc78104be86947a02a3d963ce8ec99090fdd66f9b7d0949cf3dc18e565bf3926f0b770c7e5cb91cd94b89633408f631594d70c24c4ddf98f89
|
||||
DIST amazon-corretto-21.0.7.6.1-linux-x64.tar.gz 208603382 BLAKE2B 0a8e06018f00a4192610d7abab291cf1017b3432e88c5442a626b0a3befbe8c89cec90c96178a6e6132aad5edcdb2dc7cdd0e518d898fb4da9ea5b5de44b3680 SHA512 b0d7749413fda20f062f8460fbbdd5cba24c47187ec5794f9ddae5045fd2caa60452894a6fa4331ee9d7a69a4a645ef57cb66f6d4d22cbbcd3e53bd422044a27
|
||||
DIST amazon-corretto-22.0.1.8.1-linux-x64.tar.gz 207751648 BLAKE2B 37a65e9bfd006836967b7d29df944a500069163488bd23197fa7790705fd2637f6c223c72de884be1153708b2781b19fb66b88bb28eb68bd27a2db336af7a2f4 SHA512 e7f1d77cd4cd8e13f45b895141da076cd43b6c1cb2204a33742cfdf75185297340217a2745fd1d9f8e5d2cf276bf4926ee102f2f34588acd7a6c4c03bf688d82
|
||||
DIST amazon-corretto-24.0.1.9.1-linux-x64.tar.gz 226124142 BLAKE2B fe51550427c3e50683cca0887dd4b8bed9b73343a94d3a66947871359e7513dc97d0722b4383461171d5d33fe39c2dc2714f798a8fad874c7bdb450327bb955a SHA512 d2aecbaa7da9b7d21c738c46c223df46cb0afd9d7a3b08238e1f92bb0749ae9029d0cb8333f067b0a91fbf144f72c64c4c6e7e6192d4d77ce959ab937639462c
|
||||
DIST amazon-corretto-8.452.09.1-linux-x64.tar.gz 118157716 BLAKE2B 7113db8637f6d874999fbe1f7993d1db105674e0a0fa4b6492cc1bccff0ea5108f8b68f51b94886fc8508bcbf3b2e307bf23dd5d1b59767cebe5658e73cb51b4 SHA512 e0021e277700d67014bc0dafa35d852ceaa169860571d57c9264c3ac03ab3f54cfc2f73421654c7f7bbff18bed4850732cd26e24f1fd88d199c2bcd9aa0dd45e
|
||||
|
||||
94
dev-java/corretto-bin/corretto-bin-24.0.1.9.1.ebuild
Normal file
94
dev-java/corretto-bin/corretto-bin-24.0.1.9.1.ebuild
Normal file
@@ -0,0 +1,94 @@
|
||||
# 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/+}
|
||||
DESCRIPTION="Prebuilt Java JDK binaries provided by Amazon Web Services"
|
||||
HOMEPAGE="https://aws.amazon.com/corretto"
|
||||
|
||||
SRC_URI="
|
||||
https://corretto.aws/downloads/resources/${PV}/amazon-corretto-${PV}-linux-x64.tar.gz
|
||||
"
|
||||
|
||||
S="${WORKDIR}/amazon-corretto-${MY_PV}-linux-x64"
|
||||
LICENSE="GPL-2-with-classpath-exception"
|
||||
SLOT=$(ver_cut 1)
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="alsa cups headless-awt selinux source"
|
||||
|
||||
DEPEND="
|
||||
app-eselect/eselect-java
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=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="*"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user