From fcc5224904648a8e6eb528d7603154160a20022f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 2 Feb 2022 01:39:05 +0000 Subject: gentoo resync : 02.02.2022 --- dev-python/pylibmc/Manifest | 1 + dev-python/pylibmc/pylibmc-1.6.1-r2.ebuild | 57 ++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 dev-python/pylibmc/pylibmc-1.6.1-r2.ebuild (limited to 'dev-python/pylibmc') diff --git a/dev-python/pylibmc/Manifest b/dev-python/pylibmc/Manifest index c39f71d14d0d..e3568ec37c61 100644 --- a/dev-python/pylibmc/Manifest +++ b/dev-python/pylibmc/Manifest @@ -1,4 +1,5 @@ AUX pylibmc-1.6.1-fix-test-failures-r1.patch 516 BLAKE2B b471ca80b11beff5ac0119f5eafaf437a74022c977a884b8bdf4ef2afdb3d535ad6602db9b1206fb6649bf57ffe5bbd17509d3dda3b6604fcfa428b592dbeae3 SHA512 802337b66cbd188cc81208420448da24cecde3c01d435d6814437f0ee31850b6ef8a53f61647740da340a69971e5fe570cc2a8c1b31226e425ce7ff88bca101c DIST pylibmc-1.6.1.tar.gz 72061 BLAKE2B ebaa6f9dfc341d862a8b46bbbf0db1420ff400cb40390f7bee6bf198ff941ad7967b578040ffe1209721ea84a163a39649108a2a23f3dadc2d579db740b2ccf3 SHA512 a3874435389486b29bab5f1d29e5c179d67655d90995bb27fcb7cd46ce7eb3b60117b94f901602f8a65dc0e587d5f8edfcf15e259effd439411adb58ddb7065e EBUILD pylibmc-1.6.1-r1.ebuild 1392 BLAKE2B c4619b1f58bbec6e80f67ec508af2f3ffb3a8b27e740a3fb7d152c24d999ca2d0c8fee0373073dcc587943237564284e0d22f95330896954f431788a35530b6a SHA512 4ff24bd71eefb150ea7e36b2b0c30d8e33146538ab232e21487afee1e52434d2af1ed824d7d16c7e62df176c8e1ea36be2e1277c7f70ea161d2af47bbb6ae167 +EBUILD pylibmc-1.6.1-r2.ebuild 1397 BLAKE2B d31bb86fcf372d306f352ec9a0eaf2ba306a896cbd44a44e72b164b13a35098bd4479ddb37b9ab137896be3432c49d8bc54a2b5acd155c39b45d90afa80ea53f SHA512 bb49fad828626e484d7a90599121392d5902ff759c2240fde8fc09d6be7f4850c7b27af1e235a8537c06828269fa640a14bea565e9b10dd1d8241320d6a471f5 MISC metadata.xml 367 BLAKE2B fd37f3e072661e616dcfabb2054827a7b1c3830e555cb6fa461e93dadcd39ab1856c0ad4cbe03be85924889b97ba7cc88da651011a4b1c5622fcd950339f7e2d SHA512 33977c15a726c2039221bcbd282244c240013922bd4f1398e75f01ebd68dd0f8574ac890ddb578cb633a89b52584927800f86dcb4a1eb0ab27b165c38b9a91e6 diff --git a/dev-python/pylibmc/pylibmc-1.6.1-r2.ebuild b/dev-python/pylibmc/pylibmc-1.6.1-r2.ebuild new file mode 100644 index 000000000000..73b6e342751c --- /dev/null +++ b/dev-python/pylibmc/pylibmc-1.6.1-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Libmemcached wrapper written as a Python extension" +HOMEPAGE=" + https://sendapatch.se/projects/pylibmc/ + https://pypi.org/project/pylibmc/ + https://github.com/lericson/pylibmc/" +# One image is missing from the doc at PyPI +# https://github.com/lericson/pylibmc/pull/221 +SRC_URI="https://github.com/lericson/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" + +RDEPEND=">=dev-libs/libmemcached-0.32" +# Older sphinx versions fail to compile the doc +# https://github.com/sphinx-doc/sphinx/issues/3266 +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + net-misc/memcached + )" + +PATCHES=( + "${FILESDIR}/pylibmc-1.6.1-fix-test-failures-r1.patch" +) + +distutils_enable_sphinx docs +distutils_enable_tests nose + +python_prepare_all() { + sed -e "/with-info=1/d" -i setup.cfg || die + + # some amazon thing, expects to be in AWS + rm tests/test_autoconf.py || die + distutils-r1_python_prepare_all + + # needed for docs + export PYLIBMC_DIR=. +} + +src_test() { + local -x MEMCACHED_PORT=11219 + memcached -d -p "${MEMCACHED_PORT}" -u nobody -l localhost \ + -P "${T}/m.pid" || die + distutils-r1_src_test + kill "$(<"${T}/m.pid")" || die +} -- cgit v1.2.3