diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/gpgmepy | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/gpgmepy')
| -rw-r--r-- | dev-python/gpgmepy/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/gpgmepy/files/gpgmepy-2.0.0_pre20250603-python.patch | 31 | ||||
| -rw-r--r-- | dev-python/gpgmepy/gpgmepy-2.0.0-r1.ebuild | 77 | ||||
| -rw-r--r-- | dev-python/gpgmepy/metadata.xml | 9 |
4 files changed, 118 insertions, 0 deletions
diff --git a/dev-python/gpgmepy/Manifest b/dev-python/gpgmepy/Manifest new file mode 100644 index 000000000000..6a3aaf8cce84 --- /dev/null +++ b/dev-python/gpgmepy/Manifest @@ -0,0 +1 @@ +DIST gpgmepy-2.0.0.tar.bz2 575963 BLAKE2B 70388a040720eff563468e89cdc4e7e7625bb2347de1414322d96f12fd836abd743b4a554ceb88c732029831aa80fbbbbb559cafb9cfa491aff5f132ac5cdfdc SHA512 c7f7a0f6961cd6c4338a01df08f15afafa6dbc83e5ee9ca1694dc1f7eb11e7a4e3c37b05ec2fff0d69297aa2de678c66deb41ab5877e6bf5c2373bd6954afae6 diff --git a/dev-python/gpgmepy/files/gpgmepy-2.0.0_pre20250603-python.patch b/dev-python/gpgmepy/files/gpgmepy-2.0.0_pre20250603-python.patch new file mode 100644 index 000000000000..f0ef9a1b5626 --- /dev/null +++ b/dev-python/gpgmepy/files/gpgmepy-2.0.0_pre20250603-python.patch @@ -0,0 +1,31 @@ +Don't search for multiple Pythons as it doesn't interact well with our +distutils-r1 setup. Just search for one Python and allow overriding which +one from the ebuild. +--- a/configure.ac ++++ b/configure.ac +@@ -287,23 +287,8 @@ else + # Only look for Python versions explicitly that are not yet end-of-life. + # As fallback look for any Python version >= 3.6. + m4_foreach([mym4pythonver], +- [[3.9],[3.10],[3.11],[3.12],[3.13],[any]], +- [unset PYTHON +- unset PYTHON_VERSION +- unset PYTHON_CPPFLAGS +- unset PYTHON_LDFLAGS +- unset PYTHON_LIBS +- unset PYTHON_SITE_PKG +- unset PYTHON_PLATFORM_SITE_PKG +- unset PYTHON_EXTRA_LIBS +- unset PYTHON_EXTRA_LDFLAGS +- unset ac_cv_path_PYTHON +- unset am_cv_pathless_PYTHON +- unset am_cv_python_version +- unset am_cv_python_platform +- unset am_cv_python_pythondir +- unset am_cv_python_pyexecdir +- AM_PATH_PYTHON(m4_if(mym4pythonver,[any],[3.6],mym4pythonver), [ ++ [[any]], ++ [AM_PATH_PYTHON(m4_if(mym4pythonver,[any],[3.6],mym4pythonver), [ + AX_PYTHON_DEVEL([], [true]) + if test "$PYTHON_VERSION"; then + AC_MSG_CHECKING([for the setuptools Python package]) diff --git a/dev-python/gpgmepy/gpgmepy-2.0.0-r1.ebuild b/dev-python/gpgmepy/gpgmepy-2.0.0-r1.ebuild new file mode 100644 index 000000000000..8fd5a0ed4214 --- /dev/null +++ b/dev-python/gpgmepy/gpgmepy-2.0.0-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) +inherit autotools distutils-r1 + +DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use (Python bindings)" +HOMEPAGE="https://www.gnupg.org/related_software/gpgme" +SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2" + +LICENSE="LGPL-2.1+ test? ( GPL-2+ )" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + !<app-crypt/gpgme-2[python(-)] + + >=app-crypt/gpgme-2:= + >=dev-libs/libgpg-error-1.47:= +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + ${DISTUTILS_DEPS} + dev-lang/swig +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.0.0_pre20250603-python.patch +) + +src_prepare() { + # autoreconf adds '-unknown' suffix and may even blast the version away + # entirely to 0.0.0. + sed -i -e "s:mym4_version:${PV}:" configure.ac || die + # The dynamic version machinery doesn't work with proper PEP517 + # builds, as it relies on a hack in setup.py. + sed -i -e "s:dynamic = \[\"version\"\]:version = \"${PV}\":" pyproject.toml || die + + distutils-r1_src_prepare + eautoreconf +} + +python_configure() { + mkdir "${BUILD_DIR}" || die + cd "${BUILD_DIR}" || die + + local myeconfargs=( + $(use_enable test gpg-test) + + PYTHON=${EPYTHON} + PYTHONS=${EPYTHON} + GPGRT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpgrt-config" + ) + + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" + emake -Onone prepare +} + +python_compile() { + # otherwise distutils will try to build out of S + cd "${BUILD_DIR}" || die + distutils-r1_python_compile +} + +python_test() { + emake -C "${BUILD_DIR}"/tests -Onone check \ + PYTHON=${EPYTHON} \ + PYTHONS=${EPYTHON} \ + TESTFLAGS="--python-libdir=${BUILD_DIR}/lib" +} diff --git a/dev-python/gpgmepy/metadata.xml b/dev-python/gpgmepy/metadata.xml new file mode 100644 index 000000000000..f308c62eb267 --- /dev/null +++ b/dev-python/gpgmepy/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
