public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexis Ballier" <aballier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycapnp/files/, dev-python/pycapnp/
Date: Tue, 12 Feb 2019 13:19:31 +0000 (UTC)	[thread overview]
Message-ID: <1549977560.27fdf43791edbcbbbf6b762792a3d98efd5aad31.aballier@gentoo> (raw)

commit:     27fdf43791edbcbbbf6b762792a3d98efd5aad31
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 12 12:57:49 2019 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue Feb 12 13:19:20 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27fdf437

dev-python/pycapnp: bump to 0.6.4

Package-Manager: Portage-2.3.60, Repoman-2.3.12
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 dev-python/pycapnp/Manifest             |  1 +
 dev-python/pycapnp/files/sdist.patch    | 13 ++++++++++++
 dev-python/pycapnp/pycapnp-0.6.4.ebuild | 36 +++++++++++++++++++++++++++++++++
 3 files changed, 50 insertions(+)

diff --git a/dev-python/pycapnp/Manifest b/dev-python/pycapnp/Manifest
index 98a2a3e473b..f7e449dd8a6 100644
--- a/dev-python/pycapnp/Manifest
+++ b/dev-python/pycapnp/Manifest
@@ -1,2 +1,3 @@
 DIST pycapnp-0.6.2.tar.gz 455092 BLAKE2B 5cdffde0a88398328f6e6908caf4ea2c3626a4a4d47100973a2bb3ae0e10406734354e40afe60f7d4861c79534e05bee6aeecfee4ffeca50ef7e24101ca4a08d SHA512 6656ce4a67e38fc301fb4dd7e80daea3a7551e01589b11c8fd7aea0d4af7638387fecd712c968f549ff596bf64caca6bdf7add20fbd14396a92e49ac3ce47188
 DIST pycapnp-0.6.3.tar.gz 455075 BLAKE2B ad4ccb7e4c83ed686a419ac97652b50853e4377a4d59579fd276b89c60c7f2a0235c73da711288ca4843c5277925dedab8bd4ddaa4d84e8615d9aeed325521fe SHA512 e125af41d46ca32f94cf548b778f554587074ee59993f4a5bf243b66650976c2c219ca572094daa51f3718272dd9e3529e27bda85dc52d2a644ead8e16b6e02c
+DIST pycapnp-0.6.4.tar.gz 531404 BLAKE2B 035e0f37292275af8d5e292cb98f85f3d40ffe6284c0defecdb6d0c79afac97e4570e0042c0be6716a992ab904b844c9f046c5795b97cd8b7dd7625af1b2b219 SHA512 3f2c9d93bcf226fb39ef233b8b5fbc86af73d796986e82b897a571db5d8223fb4f65cc28a8bf4ed57b787b6e5defdca70388ac865f036daff48d6d6f93cbbfc3

diff --git a/dev-python/pycapnp/files/sdist.patch b/dev-python/pycapnp/files/sdist.patch
new file mode 100644
index 00000000000..e4ef16ec569
--- /dev/null
+++ b/dev-python/pycapnp/files/sdist.patch
@@ -0,0 +1,13 @@
+Index: pycapnp-0.6.4/setup.py
+===================================================================
+--- pycapnp-0.6.4.orig/setup.py
++++ pycapnp-0.6.4/setup.py
+@@ -49,7 +49,7 @@ try:
+     changelog = '\nChangelog\n=============\n' + changelog
+     long_description += changelog
+ except (IOError, ImportError):
+-    if sys.argv[2] == 'sdist':
++    if len(sys.argv) > 2 and sys.argv[2] == 'sdist':
+         raise
+     long_description = ''
+ 

diff --git a/dev-python/pycapnp/pycapnp-0.6.4.ebuild b/dev-python/pycapnp/pycapnp-0.6.4.ebuild
new file mode 100644
index 00000000000..2eb401e85b8
--- /dev/null
+++ b/dev-python/pycapnp/pycapnp-0.6.4.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python wrapping of the Cap'n Proto library"
+HOMEPAGE="http://jparyani.github.io/pycapnp/ https://github.com/capnproto/pycapnp"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64"
+IUSE=""
+
+RDEPEND=">=dev-libs/capnproto-0.6:="
+DEPEND="${RDEPEND}
+	dev-python/cython[${PYTHON_USEDEP}]
+"
+PATCHES=( "${FILESDIR}/sdist.patch" )
+
+src_prepare() {
+	distutils-r1_src_prepare
+	# regen cython files
+	rm -f capnp/lib/capnp.cpp || die
+
+	# Need c++14 for capnp 0.7
+	sed -e 's/std=c++11/std=c++14/g' \
+		-i setup.py \
+		-i buildutils/detect.py \
+		-i capnp/*/* \
+		|| die
+}


             reply	other threads:[~2019-02-12 13:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-12 13:19 Alexis Ballier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-12-04 22:01 [gentoo-commits] repo/gentoo:master commit in: dev-python/pycapnp/files/, dev-python/pycapnp/ Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1549977560.27fdf43791edbcbbbf6b762792a3d98efd5aad31.aballier@gentoo \
    --to=aballier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox