summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2025-02-14 08:18:34 +0000
committerSam James <sam@gentoo.org>2025-02-14 08:18:57 +0000
commit7bcd785c702d44da99aa49d1db38b36dd48281dc (patch)
treecc27134e66d6038d312c591c084e4c01b5510b9a
parent706ed1b1bd228af42eaeac1a34db92ca946d2862 (diff)
downloadgentoo-7bcd785c702d44da99aa49d1db38b36dd48281dc.tar.gz
gentoo-7bcd785c702d44da99aa49d1db38b36dd48281dc.tar.bz2
gentoo-7bcd785c702d44da99aa49d1db38b36dd48281dc.zip
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>
-rw-r--r--app-text/highlight/highlight-4.12.ebuild9
-rw-r--r--app-text/highlight/highlight-4.9.ebuild12
2 files changed, 20 insertions, 1 deletions
diff --git a/app-text/highlight/highlight-4.12.ebuild b/app-text/highlight/highlight-4.12.ebuild
index 9536ec876b81..3927f1c60a44 100644
--- a/app-text/highlight/highlight-4.12.ebuild
+++ b/app-text/highlight/highlight-4.12.ebuild
@@ -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
diff --git a/app-text/highlight/highlight-4.9.ebuild b/app-text/highlight/highlight-4.9.ebuild
index b88539dc9842..118990f95d93 100644
--- a/app-text/highlight/highlight-4.9.ebuild
+++ b/app-text/highlight/highlight-4.9.ebuild
@@ -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