diff options
Diffstat (limited to 'dev-python/pylibmc')
-rw-r--r-- | dev-python/pylibmc/Manifest | 3 | ||||
-rw-r--r-- | dev-python/pylibmc/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pylibmc/pylibmc-1.5.1-r1.ebuild | 50 |
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-python/pylibmc/Manifest b/dev-python/pylibmc/Manifest new file mode 100644 index 000000000000..03b8b95166cc --- /dev/null +++ b/dev-python/pylibmc/Manifest @@ -0,0 +1,3 @@ +DIST pylibmc-1.5.1.tar.gz 69525 BLAKE2B 5039ad7d99a5ca57bd6cf7f00c77cc8bba122fe5852de164df34a71b4f5d1e4fcb428e749a66d384691b74f30b99e000f5cb9cd6479af2fc324d885b0fa59aa7 SHA512 efc40fae9721a6be589f87b66109132d4656725f718e1d63d7d25b9b27790b7c00fc3c7e4e47235895b7127cebc64229ddb284d23d0d903d3a510da7e1ce4549 +EBUILD pylibmc-1.5.1-r1.ebuild 1366 BLAKE2B 5c50e6f99574b869d52394d4c50036f12dcd2b3dcd3d2951b5096f4998ecf5f0edb7023809543c553cc72fea4612fc3a616c2bd7c77c439256330ece9b47a24e SHA512 b5e0e90ee5d3a36f29348cdef1ac66283407716272af528e98ff6afdd000673c313d6493bab38837f77ed26afe2ad47078388285da2a6717c46953c790721745 +MISC metadata.xml 366 BLAKE2B 5dcc369c40a052fcc6ff72c6f8fc46ffc8334c1a91e3f2e8ba8f9bf0bea7414d91833e5627f3d53b10e9d3d9f230b0af333929820a616433ff9d439cae888d2d SHA512 974f19bd4dd8043c07fa0001072e25b553aa82f4b9e9c00e579cb88e8819a4411a04b2e59cace18e0a8e2ce7395057e520b0bc78435865c4536b3de2e402265d diff --git a/dev-python/pylibmc/metadata.xml b/dev-python/pylibmc/metadata.xml new file mode 100644 index 000000000000..95a451d858a8 --- /dev/null +++ b/dev-python/pylibmc/metadata.xml @@ -0,0 +1,12 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">pylibmc</remote-id> + <remote-id type="github">lericson/pylibmc</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pylibmc/pylibmc-1.5.1-r1.ebuild b/dev-python/pylibmc/pylibmc-1.5.1-r1.ebuild new file mode 100644 index 000000000000..460d690f011e --- /dev/null +++ b/dev-python/pylibmc/pylibmc-1.5.1-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit distutils-r1 + +DESCRIPTION="Libmemcached wrapper written as a Python extension" +HOMEPAGE="http://sendapatch.se/projects/pylibmc/ https://pypi.org/project/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="amd64 x86" +IUSE="doc test" + +RDEPEND=">=dev-libs/libmemcached-0.32" +# Older sphinx versions fail to compile the doc +# https://github.com/sphinx-doc/sphinx/issues/3266 +DEPEND="${RDEPEND} + doc? ( >=dev-python/sphinx-1.5.1-r1[${PYTHON_USEDEP}] ) + test? ( + net-misc/memcached + dev-python/nose[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + sed -e "/with-info=1/d" -i setup.cfg || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + # This variable is added to sys.path + # but it does not seem to be useful + PYLIBMC_DIR="." emake -C docs + HTML_DOCS=( docs/_build/html/. ) + fi +} + +python_test() { + memcached -d -p 11219 -u nobody -l localhost -P "${T}/m.pid" || die + MEMCACHED_PORT=11219 nosetests + local ret=${?} + kill "$(<"${T}/m.pid")" || die + [[ ${ret} == 0 ]] || die "Tests fail with ${EPYTHON}!" +} |