diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-01-21 10:08:55 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-01-21 10:12:42 +0100 |
commit | 8d19c75f1403ef9d0f2ec5ee9dc2eac95903ee6d (patch) | |
tree | b10b81860e1c9916b9dab56d386b020ef689b659 /dev-lang/python/python-3.6.12-r2.ebuild | |
parent | dev-lang/python: Backport verify-sig & BDEPEND to 3.7.9 (diff) | |
download | gentoo-8d19c75f1403ef9d0f2ec5ee9dc2eac95903ee6d.tar.gz gentoo-8d19c75f1403ef9d0f2ec5ee9dc2eac95903ee6d.tar.bz2 gentoo-8d19c75f1403ef9d0f2ec5ee9dc2eac95903ee6d.zip |
dev-lang/python: Backport verify-sig & BDEPEND to 3.6.12
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-lang/python/python-3.6.12-r2.ebuild')
-rw-r--r-- | dev-lang/python/python-3.6.12-r2.ebuild | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/dev-lang/python/python-3.6.12-r2.ebuild b/dev-lang/python/python-3.6.12-r2.ebuild index faaa8c1c5037..f8ab107297f5 100644 --- a/dev-lang/python/python-3.6.12-r2.ebuild +++ b/dev-lang/python/python-3.6.12-r2.ebuild @@ -5,7 +5,7 @@ EAPI="7" WANT_LIBTOOL="none" inherit autotools flag-o-matic multiprocessing pax-utils \ - python-utils-r1 toolchain-funcs + python-utils-r1 toolchain-funcs verify-sig MY_P="Python-${PV}" PYVER=$(ver_cut 1-2) @@ -14,7 +14,10 @@ PATCHSET="python-gentoo-patches-${PV}-r2" DESCRIPTION="An interpreted, interactive, object-oriented programming language" HOMEPAGE="https://www.python.org/" SRC_URI="https://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz - https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz" + https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz + verify-sig? ( + https://www.python.org/ftp/python/${PV%_*}/${MY_P}.tar.xz.asc + )" S="${WORKDIR}/${MY_P}" LICENSE="PSF-2" @@ -52,11 +55,22 @@ RDEPEND="app-arch/bzip2:= # bluetooth requires headers from bluez DEPEND="${RDEPEND} bluetooth? ( net-wireless/bluez ) - test? ( app-arch/xz-utils[extra-filters(+)] ) + test? ( app-arch/xz-utils[extra-filters(+)] )" +BDEPEND=" virtual/pkgconfig + verify-sig? ( app-crypt/openpgp-keys-python ) !sys-devel/gcc[libffi(-)]" RDEPEND+=" !build? ( app-misc/mime-types )" +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/python.org.asc + +src_unpack() { + if use verify-sig; then + verify-sig_verify_detached "${DISTDIR}"/${MY_P}.tar.xz{,.asc} + fi + default +} + src_prepare() { # Ensure that internal copies of expat, libffi and zlib are not used. rm -fr Modules/expat || die |