From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9845A1396D9 for ; Sat, 18 Nov 2017 11:18:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C1922E0C03; Sat, 18 Nov 2017 11:18:12 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A0DB9E0C03 for ; Sat, 18 Nov 2017 11:18:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D552033BF51 for ; Sat, 18 Nov 2017 11:18:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 99C6E9EEA for ; Sat, 18 Nov 2017 11:18:10 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1511003887.b9db26936bc3692ea383a41821b06747733333ef.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/riak-python-client/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/riak-python-client/riak-python-client-2.7.0-r1.ebuild X-VCS-Directories: dev-python/riak-python-client/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: b9db26936bc3692ea383a41821b06747733333ef X-VCS-Branch: master Date: Sat, 18 Nov 2017 11:18:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c3e6a3b9-7edb-4be3-8dd1-b9045f8fd15b X-Archives-Hash: b177aaa598ed2b6d0b081c201723506b commit: b9db26936bc3692ea383a41821b06747733333ef Author: Zac Medico gentoo org> AuthorDate: Sat Nov 18 11:12:28 2017 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Nov 18 11:18:07 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9db2693 dev-python/riak-python-client: migrate to protobuf-python Package-Manager: Portage-2.3.14, Repoman-2.3.6 .../riak-python-client-2.7.0-r1.ebuild | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/dev-python/riak-python-client/riak-python-client-2.7.0-r1.ebuild b/dev-python/riak-python-client/riak-python-client-2.7.0-r1.ebuild new file mode 100644 index 00000000000..1ddd41aaf6e --- /dev/null +++ b/dev-python/riak-python-client/riak-python-client-2.7.0-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="The Riak client for Python." +HOMEPAGE="https://github.com/basho/riak-python-client/" +MY_PN=${PN%%-*} +MY_P=${MY_PN}-${PV} +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-python/basho-erlastic[${PYTHON_USEDEP}] + dev-python/protobuf-python[${PYTHON_USEDEP}] + >=dev-python/six-1.8[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + default + # delete protobuf requirements that only work for pip + sed '17,22d' -i setup.py || die + sed -e "s:'\\\\n\\\\027:b\\0:" \ + -e "s:serialized_pb=:\\0b:" \ + -i riak/pb/*.py || die +} + +python_test() { + esetup.py test || die +}