commit:     d9b62441e1be355c31de28f629e968e9df2256fe
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr  7 00:39:17 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr  7 00:39:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9b62441

sys-devel/gettext: add verify-sig

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/gettext/Manifest               |  1 +
 sys-devel/gettext/gettext-0.21-r1.ebuild | 11 +++++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/sys-devel/gettext/Manifest b/sys-devel/gettext/Manifest
index 61bb66f324f9..695aa9c5e138 100644
--- a/sys-devel/gettext/Manifest
+++ b/sys-devel/gettext/Manifest
@@ -1 +1,2 @@
 DIST gettext-0.21.tar.gz 24181849 BLAKE2B 
2eae99d0916b00b2af6fbc6bf7e309076519a10fea16cd49e7aa29fe8aec1ee7c784c6277281b764dc4abacf400cd3fe461129586303c8cd337db15c76cb4b87
 SHA512 
bbe590c5dd3580c75bf30ff768da99a88eb8d466ec1ac9eea20be4cab4357ecf72448e6b81b47425e39d50fa6320ba426632914d7898dfebb4f159abc39c31d1
+DIST gettext-0.21.tar.gz.sig 819 BLAKE2B 
ea3123a08751ff0e452d419b22b8ed00d28b98f0df0c5bd392a000e4e56c7a540ec49157e6dfc59cde54fca0f95543b30334237f854efe82718a4be092796cb9
 SHA512 
f43159bd4569a92f35aab64bf6475be17d47ccc8aa2005be7b110c94b93133044becfb58befeadbc1951244129abb4984de814e66a692e6173013ff363f9a6fc

diff --git a/sys-devel/gettext/gettext-0.21-r1.ebuild 
b/sys-devel/gettext/gettext-0.21-r1.ebuild
index bab939d0ebc9..825b1144778b 100644
--- a/sys-devel/gettext/gettext-0.21-r1.ebuild
+++ b/sys-devel/gettext/gettext-0.21-r1.ebuild
@@ -1,19 +1,22 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # Note: Keep version bumps in sync with dev-libs/libintl.
 
 EAPI=7
 
-inherit mono-env libtool java-pkg-opt-2 multilib-minimal
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/gettext.asc
+inherit mono-env libtool java-pkg-opt-2 multilib-minimal verify-sig
 
 DESCRIPTION="GNU locale utilities"
 HOMEPAGE="https://www.gnu.org/software/gettext/";
-if [[ "${PV}" == *_rc* ]] ; then
+if [[ ${PV} == *_rc* ]] ; then
        SRC_URI="https://alpha.gnu.org/gnu/${PN}/${P/_/-}.tar.bz2";
+       SRC_URI+=" verify-sig? ( 
https://alpha.gnu.org/gnu/${PN}/${P/_/-}.tar.bz2.sig )"
        S="${WORKDIR}/${P/_/-}"
 else
        SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+       SRC_URI+=" verify-sig? ( mirror://gnu/${PN}/${P}.tar.gz.sig )"
        KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 
~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
 fi
 # Only libasprintf is under the LGPL (and libintl is in a sep package),
@@ -43,7 +46,7 @@ RDEPEND="${DEPEND}
 BDEPEND="
        !git? ( cvs? ( dev-vcs/cvs ) )
        git? ( dev-vcs/git )
-"
+       verify-sig? ( sec-keys/openpgp-keys-gettext )"
 PDEPEND="emacs? ( app-emacs/po-mode )"
 
 MULTILIB_WRAPPED_HEADERS=(

Reply via email to