commit:     d7f36b8361c7f1f94107247b6d115d9fd87500bf
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  3 21:45:15 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun  3 23:19:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7f36b83

app-crypt/gpgme: add 2.0.0

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

 app-crypt/gpgme/Manifest           |   2 +
 app-crypt/gpgme/gpgme-2.0.0.ebuild | 118 +++++++++++++++++++++++++++++++++++++
 profiles/package.mask              |   4 ++
 3 files changed, 124 insertions(+)

diff --git a/app-crypt/gpgme/Manifest b/app-crypt/gpgme/Manifest
index 128dcb81bc71..326706b00d9d 100644
--- a/app-crypt/gpgme/Manifest
+++ b/app-crypt/gpgme/Manifest
@@ -4,3 +4,5 @@ DIST gpgme-1.24.2.tar.bz2 1891804 BLAKE2B 
3d112fe3401c6143d09474eefcc3fda00394b0
 DIST gpgme-1.24.2.tar.bz2.sig 119 BLAKE2B 
015c8243e84b36110985c1524c8ce124d2756bdcbb4a74ad046620516f3fba8a93e2d9d5aedbb720ed096d171bce71b4bc24e6fdf8b6ba59c263dd4c3c672c5a
 SHA512 
1010067b40f2720e278577ae7599c957e26fdf81d35e21ea878813f2a2bdb618a4be636726252068438c9ef89cae9c1cd3e4acaf27243359abc3e5cfd7a87855
 DIST gpgme-1.24.3.tar.bz2 1892862 BLAKE2B 
ace04d4fc803f6ce96f850a46b4b383ebdcbfe51d55fbe2a5ced10451310553c15ee5a603d1e6ffb78a8de75461fafacc296fec3e4f38d4908171a095cab185f
 SHA512 
3b5fc22a2f83576058ac14e744333f46df362b39f742d6c9e54a5a66828194a1312f5f365bdc15683e148821f5d591fa92a2daad83fc116f65dccf14e817ca48
 DIST gpgme-1.24.3.tar.bz2.sig 238 BLAKE2B 
5b8402b011899faae26bcba428e45a7bb7baf9b16e4c605cdae3d84dc1cbf52ccd524181ef0726e25075c42f9ccb72cd996707a2f96c04b7054cc9050270b586
 SHA512 
056b28b041dd83c86984e73c31403ea45d33db30c1b2b05e45b0cfb5bb723b25a0fa21ddee192c135cea5d93d934502085bc0fc94fa3c29858513e260c332948
+DIST gpgme-2.0.0.tar.bz2 1383911 BLAKE2B 
7053955f80f9a69c62d8b4bb6cc80ea259e6854857b340577c4a68fac1d34c0f2aff1dbbf88b503dd2b021c48d9fff67709593817f3b0e74f72df913d7e3de0d
 SHA512 
ee58dc2a4273c740d5b9ef13cc655d5e600ddddd137fb85a781c31e8854829283b4ce241d7810a963d9a125d603213600f37e7d0c1ce3b3cf1b935e62cf60777
+DIST gpgme-2.0.0.tar.bz2.sig 119 BLAKE2B 
3fe43a1047f8fba1fe793b5f501b9902067b3eea8d08713c4358d78b7c0c19b82e417251dbe602d04c2f945e46e0c5651bead5a2bf59dfc0861d1e9261893a98
 SHA512 
fc7b3cafd0e9d830c1709a086185047ecf118997feaa8896707917c420d12386c6e298116b457fea478c2e2f85fc9413ab3fa268a1798793377e4739419fde66

diff --git a/app-crypt/gpgme/gpgme-2.0.0.ebuild 
b/app-crypt/gpgme/gpgme-2.0.0.ebuild
new file mode 100644
index 000000000000..cb4872ce460e
--- /dev/null
+++ b/app-crypt/gpgme/gpgme-2.0.0.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+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
+# * https://dev.gnupg.org/T6673#174545
+inherit libtool flag-o-matic out-of-source verify-sig
+
+DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use"
+HOMEPAGE="https://www.gnupg.org/related_software/gpgme";
+SRC_URI="
+       mirror://gnupg/gpgme/${P}.tar.bz2
+       verify-sig? ( mirror://gnupg/gpgme/${P}.tar.bz2.sig )
+"
+
+LICENSE="GPL-2 LGPL-2.1"
+# Please check ABI on each bump, even if SONAMEs didn't change: bug #833355
+# Use e.g. app-portage/iwdevtools integration with dev-libs/libabigail's 
abidiff.
+# Subslot: SONAME of each: <libgpgme.FUDGE>
+# Bump FUDGE if a release is made which breaks ABI without changing SONAME.
+# (Reset to 0 if FUDGE != 0 if libgpgme changes.)
+SLOT="1/45.0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos 
~x64-macos ~x64-solaris"
+IUSE="common-lisp static-libs test"
+RESTRICT="!test? ( test )"
+
+# On each bump, update dep bounds on each version from configure.ac!
+RDEPEND="
+       >=app-crypt/gnupg-2
+       >=dev-libs/libassuan-2.5.3:=
+       >=dev-libs/libgpg-error-1.46-r1:=
+"
+DEPEND="${RDEPEND}"
+#doc? ( app-text/doxygen[dot] )
+BDEPEND="
+       verify-sig? ( sec-keys/openpgp-keys-gnupg )
+"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.18.0-tests-start-stop-agent-use-command-v.patch
+)
+
+src_prepare() {
+       default
+
+       elibtoolize
+
+       # bug #697456
+       addpredict /run/user/$(id -u)/gnupg
+
+       local MAX_WORKDIR=66
+       if use test && [[ "${#WORKDIR}" -gt "${MAX_WORKDIR}" ]]; then
+               eerror "Unable to run tests as WORKDIR='${WORKDIR}' is longer 
than ${MAX_WORKDIR} which causes failure!"
+               die "Could not run tests as requested with too-long WORKDIR."
+       fi
+
+       # Make best effort to allow longer PORTAGE_TMPDIR
+       # as usock limitation fails build/tests
+       ln -s "${P}" "${WORKDIR}/b" || die
+       S="${WORKDIR}/b"
+}
+
+my_src_configure() {
+       # bug #847955
+       append-lfs-flags
+
+       cd "${BUILD_DIR}" || die
+
+       local languages=(
+               $(usev common-lisp 'cl')
+       )
+
+       local myeconfargs=(
+               $(use test || echo "--disable-gpgconf-test --disable-gpg-test 
--disable-gpgsm-test --disable-g13-test")
+               --enable-languages="${languages[*]}"
+               $(use_enable static-libs static)
+               GPGRT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpgrt-config"
+       )
+
+       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+my_src_compile() {
+       cd "${BUILD_DIR}" || die
+
+       emake
+}
+
+my_src_test() {
+       cd "${BUILD_DIR}" || die
+
+       emake check
+}
+
+my_src_install() {
+       einstalldocs
+
+       cd "${BUILD_DIR}" || die
+
+       emake DESTDIR="${D}" install
+
+       find "${ED}" -type f -name '*.la' -delete || die
+
+       # Backward compatibility for gentoo
+       # (in the past, we had slots)
+       dodir /usr/include/gpgme
+       dosym -r /usr/include/gpgme.h /usr/include/gpgme/gpgme.h
+}

diff --git a/profiles/package.mask b/profiles/package.mask
index 4bd3ba2c6576..51811d5b69d1 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -36,6 +36,10 @@
 
 #--- END OF EXAMPLES ---
 
+# Sam James <[email protected]> (2025-06-03)
+# Major changes to packaging as bindings are split out by upstream.
+>=app-crypt/gpgme-2
+
 # Sam James <[email protected]> (2025-06-03)
 # Fetching from GitHub seems broken with this:
 # > Connecting to github.com|20.26.156.215|:443... connected.

Reply via email to