mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
sys-apps/baselayout-java: bump EAPI
also - remove empty IUSE - remove nonexistent blocker from RDEPEND - break lines to fix QA warnings Signed-off-by: Filip Kobierski <fkobi@pm.me> Part-of: https://github.com/gentoo/gentoo/pull/42050 Closes: https://github.com/gentoo/gentoo/pull/42050 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
parent
e0c7e9b344
commit
11938122d1
49
sys-apps/baselayout-java/baselayout-java-0.1.0-r3.ebuild
Normal file
49
sys-apps/baselayout-java/baselayout-java-0.1.0-r3.ebuild
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
# Copyright 1999-2025 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="Baselayout for Java"
|
||||||
|
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Java"
|
||||||
|
SRC_URI="https://dev.gentoo.org/~gyakovlev/distfiles/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
app-crypt/p11-kit[trust(+)]
|
||||||
|
app-misc/ca-certificates
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="${BDEPEND}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
keepdir /etc/ssl/certs/java/
|
||||||
|
exeinto /etc/ca-certificates/update.d
|
||||||
|
newexe - java-cacerts <<-_EOF_
|
||||||
|
#!/bin/sh
|
||||||
|
exec trust extract --overwrite --format=java-cacerts --filter=ca-anchors \
|
||||||
|
--purpose server-auth "${EPREFIX}/etc/ssl/certs/java/cacerts"
|
||||||
|
_EOF_
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_icon_cache_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_icon_cache_update
|
||||||
|
# on first installation generate java cacert file
|
||||||
|
# so jdk ebuilds can create symlink to in into security directory
|
||||||
|
if [[ ! -f "${EROOT}"/etc/ssl/certs/java/cacerts ]]; then
|
||||||
|
einfo "Generating java cacerts file from system ca-certificates"
|
||||||
|
trust extract --overwrite --format=java-cacerts --filter=ca-anchors \
|
||||||
|
--purpose server-auth "${EROOT}/etc/ssl/certs/java/cacerts" || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user