# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # $Id: cdf36c9bd4e1298f68f3c41b9fee9285d6627f16 $ EAPI=8 # Maintainers should: # 1. Join the "Gentoo" project at https://dev.gnupg.org/project/view/27/ # 2. Subscribe to release tasks like https://dev.gnupg.org/T6159 # (find the one for the current release then subscribe to it + # any subsequent ones linked within so you're covered for a while.) VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/gnupg.asc # in-source builds are not supported: https://dev.gnupg.org/T6313#166339 inherit flag-o-matic out-of-source multiprocessing systemd toolchain-funcs verify-sig MY_P="${P/_/-}" DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation" HOMEPAGE="https://gnupg.org/" SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2" SRC_URI+=" verify-sig? ( mirror://gnupg/gnupg/${P}.tar.bz2.sig )" S="${WORKDIR}/${MY_P}" LICENSE="GPL-3+" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl test +tofu tpm tools usb user-socket wks-server" RESTRICT="!test? ( test )" REQUIRED_USE="test? ( tofu )" # Existence of executables is checked during configuration. # Note: On each bump, update dep bounds on each version from configure.ac! DEPEND=" >=dev-libs/libassuan-2.5.0:= >=dev-libs/libgcrypt-1.9.1:= >=dev-libs/libgpg-error-1.48 >=dev-libs/libksba-1.6.3 >=dev-libs/npth-1.2 virtual/zlib:= bzip2? ( app-arch/bzip2 ) ldap? ( net-nds/openldap:= ) readline? ( sys-libs/readline:0= ) smartcard? ( usb? ( virtual/libusb:1 ) ) tofu? ( >=dev-db/sqlite-3.27 ) tpm? ( >=app-crypt/tpm2-tss-2.4.0:= ) ssl? ( >=net-libs/gnutls-3.2:0= ) " RDEPEND=" ${DEPEND} ! "${ED}"/usr/share/man/man1/gpg2.1 || die echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die dodir /etc/env.d echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die use doc && dodoc doc/gnupg.html/* } my_src_install_all() { einstalldocs use tools && dobin tools/{convert-from-106,mail-signed-keys,lspgpot} use doc && dodoc doc/*.png # Dropped upstream in https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commitdiff;h=eae28f1bd4a5632e8f8e85b7248d1c4d4a10a5ed. dodoc "${FILESDIR}"/README-systemd systemd_douserunit "${GNUPG_SYSTEMD_UNITS[@]/#/${T}/}" }