diff options
Diffstat (limited to 'dev-python/pylibmc')
-rw-r--r-- | dev-python/pylibmc/Manifest | 7 | ||||
-rw-r--r-- | dev-python/pylibmc/metadata.xml | 21 | ||||
-rw-r--r-- | dev-python/pylibmc/pylibmc-1.5.0.ebuild | 33 | ||||
-rw-r--r-- | dev-python/pylibmc/pylibmc-1.5.1-r1.ebuild | 50 |
4 files changed, 111 insertions, 0 deletions
diff --git a/dev-python/pylibmc/Manifest b/dev-python/pylibmc/Manifest new file mode 100644 index 000000000000..04af76f2075d --- /dev/null +++ b/dev-python/pylibmc/Manifest @@ -0,0 +1,7 @@ +DIST pylibmc-1.5.0.tar.gz 53077 SHA256 16255595616a6d78cd786a55cc6431da5b7accf46512df854712a0cdbb3acfaa SHA512 0b89ad56d44205c0a20c5e2b56f70ac5128b46df81b4fcb9c72918b5d32e455dd3d976366872fe1d0acf40b61460d08fa6f30a8fa26977c1d65509e28bbbf80d WHIRLPOOL 3d3b8cd8842a6e0e602b5addfed12db94da4fbfb6d4f215546ca6ba9cfc0b24f5ce333e5f2740ba625a416663097e46dc40749418cc4c1a52f3123a032c4b45f +DIST pylibmc-1.5.1.tar.gz 69525 SHA256 18fa39885fce5464977d657185f55e491315b84686533db58054605165fd9b06 SHA512 efc40fae9721a6be589f87b66109132d4656725f718e1d63d7d25b9b27790b7c00fc3c7e4e47235895b7127cebc64229ddb284d23d0d903d3a510da7e1ce4549 WHIRLPOOL 668fd46c7d2a9d30bd5055649095fdcc6d38d739c473f66e23293838034b5b8b15aa982f015b029f0d57487080064de9b19600e172e78968c21d94f048666c82 +EBUILD pylibmc-1.5.0.ebuild 866 SHA256 ce324ef1e1821149a7bbc6e4ef97bed550d0da5bd66b5ad1dd42854c663f4554 SHA512 55a6fbb96256827aa74cfd29dc1aeb89ca2d8466ecb896196ec58cda17e9a423f78c2cad5368037747515342ffd15baf3a97987bd00d280633c5a12193ec6bbf WHIRLPOOL b3133ac225f78490d0728dd71a206af1665f4445196be55f3615bd83d297dc82bf55f987fa899eacd42a4243f518b25a0a045cb07d362521f88babc1a3ea0d6b +EBUILD pylibmc-1.5.1-r1.ebuild 1369 SHA256 fea1695b2184f2c4bd03002e1e48f65f2f8966f8dbe3032f5e6987debdaa266c SHA512 9a8fb00cb7ffcfda74719f16c0d99bed7d34b023f3fb3060271797ed452c5a5dfcc264ff9990ef987e6752e477b28cdb136c20215e9f611fb584f412d527849c WHIRLPOOL 52a37de22301532511bc20b2f3a4646abd668d25708f2e0aec517d140668b2b31546e94d457a2fd6f54afaea9975ee128197319915006ad6c466e2597a63a41d +MISC ChangeLog 3345 SHA256 71efe727b558ef5789279a829c618ec6a8d82102ede1d8d50e9e9c4170d6f4d7 SHA512 79742bcb20baae6bb41c3746a819761b3c0deda590eba7c62e2584c720961bf4f8d481a793757cd3921f3f8ca54083b20de27948f7bf30c3be1cbce16b1d9f8d WHIRLPOOL 8b128f82954c6017c2e3242f1798fd29b04413da18ba9bea462771da3f03a1774b05af8e76704a40daa04cbbd6044f3f2e68cbfdc1111253f2c5c648debae531 +MISC ChangeLog-2015 2418 SHA256 6c81b7452e8e8dee180df5b6b7bd461223e14c95143e7b12291b83ec4dcb61e5 SHA512 54ae7d737d6d4cd867c8176eee08863e9f76038aa8c96929f542d960415edd5fe1f12072ddb2b986e1a91da808fe993583233405bb4791ac7c913a105e97727a WHIRLPOOL 5e51de9e4b4c516576fd6107f2915556676d1ae26a686231db39f422e242f3cd00c0b12b5247238761ada6daef8184617414c7fe50fad96b870f43a0a617bd06 +MISC metadata.xml 653 SHA256 91b873ac315902cbe319b9f819240e3a9e5c92b2985312d893304b1730b2012d SHA512 77151ca539b87dd9fe67a24df3bea73cf375f59c7586a661238479ad035d960ad8e76b91b8c6cc3c75261b85fc9e1c9ea7cdff58235e2d5fa2e7e8d033e7ce59 WHIRLPOOL 525d8c700db8497f7eb8ea377b37abf0e65b1f2ba2f6f6291a066d3308eec247d12da2b8ea0c3a5c1302812b425d0061f6211ffd056c0d4481f2ce0d4713cac1 diff --git a/dev-python/pylibmc/metadata.xml b/dev-python/pylibmc/metadata.xml new file mode 100644 index 000000000000..47fcb32bc2fb --- /dev/null +++ b/dev-python/pylibmc/metadata.xml @@ -0,0 +1,21 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>bugs@bergstroem.nu</email> + <name>Johan Bergström</name> + <description>Proxy-Maintainer, assign bugs</description> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</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.0.ebuild b/dev-python/pylibmc/pylibmc-1.5.0.ebuild new file mode 100644 index 000000000000..17c6e115af5e --- /dev/null +++ b/dev-python/pylibmc/pylibmc-1.5.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" +PYTHON_COMPAT=( python{2_7,3_4} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Libmemcached wrapper written as a Python extension" +HOMEPAGE="http://sendapatch.se/projects/pylibmc/ https://pypi.python.org/pypi/pylibmc" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test" + +RDEPEND=">=dev-libs/libmemcached-0.32" +DEPEND="${RDEPEND} + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +python_prepare_all() { + sed -e "/with-info=1/d" -i setup.cfg + distutils-r1_python_prepare_all +} + +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}!" +} 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..245594294805 --- /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.python.org/pypi/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}!" +} |