dev-python/pycapnp: bump to 0.6.4

Package-Manager: Portage-2.3.60, Repoman-2.3.12
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
This commit is contained in:
Alexis Ballier
2019-02-12 13:57:49 +01:00
parent 7d5fde0157
commit 27fdf43791
3 changed files with 50 additions and 0 deletions

View File

@@ -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

View File

@@ -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 = ''

View File

@@ -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
}