sec-keys.eclass: for SLOT= packages, add slot to filename

Seen for example with apache-tomcat. It has separate keys per major
version, parallel installable, with different release managers.

Although that ebuild doesn't use "apache-tomcat" as the filename base,
handling SLOT is necessary before considering to do so.

Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz
2025-08-07 00:44:09 -04:00
parent 198cd3866a
commit 1e43bb001b

View File

@@ -198,7 +198,11 @@ sec-keys_src_test() {
# installed to the standard /usr/share/openpgp-keys.
sec-keys_src_install() {
insinto /usr/share/openpgp-keys
doins ${PN#openpgp-keys-}.asc
case ${SLOT} in
0) doins ${PN#openpgp-keys-}.asc;;
*) newins ${PN#openpgp-keys-}.asc ${PN#openpgp-keys-}-${SLOT}.asc;;
esac
}
fi