From 439f0fe439198d18669dda1f2900b2b4dc0f9471 Mon Sep 17 00:00:00 2001 From: "Jayson Reis (jaysonsantos)" Date: Thu, 9 Jan 2014 21:14:10 -0200 Subject: dev-python/python-binary-memcached: New ebuild for python-binary-memcached bug #497452 thanks Tommy[D] for helping me --- dev-python/python-binary-memcached/ChangeLog | 11 +++++ dev-python/python-binary-memcached/Manifest | 4 ++ dev-python/python-binary-memcached/metadata.xml | 7 +++ .../python-binary-memcached-0.21.ebuild | 56 ++++++++++++++++++++++ 4 files changed, 78 insertions(+) create mode 100644 dev-python/python-binary-memcached/ChangeLog create mode 100644 dev-python/python-binary-memcached/Manifest create mode 100644 dev-python/python-binary-memcached/metadata.xml create mode 100644 dev-python/python-binary-memcached/python-binary-memcached-0.21.ebuild (limited to 'dev-python') diff --git a/dev-python/python-binary-memcached/ChangeLog b/dev-python/python-binary-memcached/ChangeLog new file mode 100644 index 000000000..749f3cf87 --- /dev/null +++ b/dev-python/python-binary-memcached/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-python/python-binary-memcached +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*python-binary-memcached-0.21 (09 Jan 2014) + + 09 Jan 2014; Jayson Reis (jaysonsantos) + +python-binary-memcached-0.21.ebuild, +metadata.xml: + New ebuild for python-binary-memcached bug #497452 thanks Tommy[D] for + helping me + diff --git a/dev-python/python-binary-memcached/Manifest b/dev-python/python-binary-memcached/Manifest new file mode 100644 index 000000000..21512e8d8 --- /dev/null +++ b/dev-python/python-binary-memcached/Manifest @@ -0,0 +1,4 @@ +DIST python-binary-memcached-0.21.tar.gz 80366 SHA256 e9f1b1a480fa002fc0e1254c9dd6423664b99339701480e5e96e2171bd609058 SHA512 1baa0dd07bca475d5954c62abc3006db7e654ea594373dc1dabe3579f44d9a3dd84265c6f2a1e6c694dc36a2f39bbd42b3dcce9a35385533143954d4671220de WHIRLPOOL 2ae36abdcef07744f42bd230453f33d9594bdaf4b0d3369f858e0c9094782be8e18894dc04cfeb97cf7bff6c075f8e0b1f9186b6fc99faa614d443c4bc8de806 +EBUILD python-binary-memcached-0.21.ebuild 1211 SHA256 3e06bdb59471f9cbbb702c24395f0b22ea66759fed3676ff5016ac342f732006 SHA512 b5b6a2a3d382d1cc7ccb81f8a4455f4cdeb99f22a140a1334bf75aa614689e8030002aed33beb80c30a00843b99ef2acf3394af75dd6e4c16e4b55aea0e4cea0 WHIRLPOOL a578c658ec6f053ff6d8fc74f50d7d3241f53096b13e1d6252faced9f4a274f7e139f0c18d8ded71c12b8ed97336765c6db3579a050abcb4e2ce8e189d63fcb0 +MISC ChangeLog 390 SHA256 cc108d9eb97a80d15e794d8ac8def14a17284a29128dda604999921234593324 SHA512 67cad3916d1216c47c52f735c017a6ba838008303bd0c64710d8b9b39772dc22caa8c0c61e38fe44e3b8135c55d98fdc9e9b79e770e59d929636a9c5b2630c83 WHIRLPOOL 4fe167f3a3cdb0dff9acfa91d3f24f611132db1b1626f7baffe0f9207c4280aeebbd60579c901ccd09fc469cbb90c99c000f01bdb618a537fd1dc3b115f351b2 +MISC metadata.xml 214 SHA256 c1f09dc7d5313cd2da7b82259c7846ed23144d62b15e59680ada90e2b6b4d154 SHA512 aeb2fb354a9ddf41c45a071091a58b91eaf8b25d6d2c49e3e3daa547b591a54530144de4533573160b48dc356289c909612c4e3c80e387f081f88cb39263e130 WHIRLPOOL 54d8861daedd18ca38e4ada0fb71026c612b63946d47a9b34de90d1d6d85c8ce05c0a4b97730f554ea637d73ccce8ed207d33e707c2b8c1dd28af24cf44dd186 diff --git a/dev-python/python-binary-memcached/metadata.xml b/dev-python/python-binary-memcached/metadata.xml new file mode 100644 index 000000000..cc3fe2494 --- /dev/null +++ b/dev-python/python-binary-memcached/metadata.xml @@ -0,0 +1,7 @@ + + + + + maintainer-wanted@gentoo.org + + diff --git a/dev-python/python-binary-memcached/python-binary-memcached-0.21.ebuild b/dev-python/python-binary-memcached/python-binary-memcached-0.21.ebuild new file mode 100644 index 000000000..f64809497 --- /dev/null +++ b/dev-python/python-binary-memcached/python-binary-memcached-0.21.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Pure Python module (thread safe) to use memcached via it's binary protocol with SASL auth support" +HOMEPAGE="https://github.com/jaysonsantos/python-binary-memcached" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test doc" + +DEPEND=" + test? ( net-misc/memcached[sasl] dev-libs/cyrus-sasl dev-python/pytest dev-python/mock ) + doc? ( dev-python/sphinx )" + +src_compile() { + distutils-r1_src_compile + if use doc; then + emake -C docs html + fi +} + +src_install() { + distutils-r1_src_install + + if use doc; then + einfo 'installing documentation' + dohtml -r docs/_build/html/* + fi +} + +python_test() { + memcached &> /dev/null & + local general_memcached_pid=$! + + memcached -p5000 &> /dev/null & + local non_standard_port_memcached_pid=$! + + memcached -s /tmp/memcached.sock& + local sock_memcached_pid=$! + + py.test + local ret=$? + + kill $general_memcached_pid + kill $non_standard_port_memcached_pid + kill $sock_memcached_pid + test 0 -eq $ret || die "Stopping because tests failed" +} -- cgit v1.2.3-65-gdbad