app-text/highlight: fix USE=verify-sig w/ tests

The tests tarball is fished out of VCS so isn't signed. Only try
to verify the source tarball.

Closes: https://bugs.gentoo.org/930364
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-02-14 08:18:34 +00:00
parent 706ed1b1bd
commit 7bcd785c70
2 changed files with 20 additions and 1 deletions

View File

@@ -53,6 +53,15 @@ myhlopts=(
examples_dir="${EPREFIX}/usr/share/doc/${PF}/extras"
)
src_unpack() {
if use verify-sig ; then
# Needed because the testsuite tarball is unsigned
verify-sig_verify_detached "${DISTDIR}"/${P}.tar.bz2{,.asc}
fi
default
}
src_prepare() {
default

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -61,6 +61,16 @@ myhlopts=(
examples_dir="${EPREFIX}/usr/share/doc/${PF}/extras"
)
src_unpack() {
if use verify-sig ; then
# Needed because the testsuite tarball is unsigned
verify-sig_verify_detached "${DISTDIR}"/${P}.tar.bz2{,.asc}
fi
default
}
src_prepare() {
default