commit:     7bcd785c702d44da99aa49d1db38b36dd48281dc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 08:18:34 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 14 08:18:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bcd785c

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 <AT> gentoo.org>

 app-text/highlight/highlight-4.12.ebuild |  9 +++++++++
 app-text/highlight/highlight-4.9.ebuild  | 12 +++++++++++-
 2 files changed, 20 insertions(+), 1 deletion(-)

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
 

Reply via email to