public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pycapnp/files/, dev-python/pycapnp/
@ 2017-12-04 22:01 Alexis Ballier
  0 siblings, 0 replies; 2+ messages in thread
From: Alexis Ballier @ 2017-12-04 22:01 UTC (permalink / raw
  To: gentoo-commits

commit:     95cf31f2c5dbd8f47dae208a2a3906ae97cb5283
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  4 21:58:52 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Mon Dec  4 22:01:42 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95cf31f2

dev-python/pycapnp: Remove old

Package-Manager: Portage-2.3.16, Repoman-2.3.6

 dev-python/pycapnp/Manifest                 |  3 +--
 dev-python/pycapnp/files/capn06.patch       | 29 ----------------------------
 dev-python/pycapnp/pycapnp-0.5.12-r1.ebuild | 30 -----------------------------
 3 files changed, 1 insertion(+), 61 deletions(-)

diff --git a/dev-python/pycapnp/Manifest b/dev-python/pycapnp/Manifest
index d79e005973a..c5e0150669e 100644
--- a/dev-python/pycapnp/Manifest
+++ b/dev-python/pycapnp/Manifest
@@ -1,2 +1 @@
-DIST pycapnp-0.5.12.tar.gz 454294 SHA256 b71a0e71512796e993a5724457d77f36ea21528cf1ca59fc6c7036c8cf61dea3 SHA512 c4344aa30a8b3b0ad7c28c2fe151e7d3c2866910c10a4b96881e5ecf352bc8331dfeff4e0ea8d50cb680eb3013b53ebd4a6dcfb07491cc5292329d9a26c80e29 WHIRLPOOL ef36bcb90f5c7b2175706a11a2f59df3b31a578f7bb61c4480af7c14d2b39721520a1a61484e4365a8dcc9880d02f237d2427ac0282b4371c7da7b656310d594
-DIST pycapnp-0.6.1.tar.gz 454873 SHA256 ea60837533307849e98bb3494555cea28a52ea0c301cfdf32bce661931940696 SHA512 a1bf209626effa9970da3b6492bf4b2b73585ef0f3ac0c8e8634071fe74631dae09a94671dd835d3c7934d697c25631b0d8227b3b23150609476e7c699efbfc9 WHIRLPOOL 0aafef6db12d39d16816d19c730015736e6e9440a1f4ae383ba0d7cfbe608f034fb65c84103feaff0231160e448dbd224bae0c7c3682e99293314cf6dcb880c1
+DIST pycapnp-0.6.1.tar.gz 454873 BLAKE2B 5b8eeb90a371ccafed7dbeee9a44b1f4ee1173daeeac139a67c4e97484df689a581ebb2c5783dd4657964bc83fdcb02c67231a350b149cafc77d348ee4218247 SHA512 a1bf209626effa9970da3b6492bf4b2b73585ef0f3ac0c8e8634071fe74631dae09a94671dd835d3c7934d697c25631b0d8227b3b23150609476e7c699efbfc9

diff --git a/dev-python/pycapnp/files/capn06.patch b/dev-python/pycapnp/files/capn06.patch
deleted file mode 100644
index e1c1709fe8c..00000000000
--- a/dev-python/pycapnp/files/capn06.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-Index: pycapnp-0.5.12/capnp/includes/capnp_cpp.pxd
-===================================================================
---- pycapnp-0.5.12.orig/capnp/includes/capnp_cpp.pxd
-+++ pycapnp-0.5.12/capnp/includes/capnp_cpp.pxd
-@@ -100,8 +100,10 @@ cdef extern from "kj/array.h" namespace
- ctypedef Promise[PyArray] PyPromiseArray
- 
- cdef extern from "kj/time.h" namespace " ::kj":
-+    cdef cppclass Unsafe_:
-+        Unsafe_()
-     cdef cppclass Duration:
--        Duration(int64_t)
-+        Duration(int64_t, Unsafe_)
-     # cdef cppclass TimePoint:
-     #     TimePoint(Duration)
-     cdef cppclass Timer:
-Index: pycapnp-0.5.12/capnp/lib/capnp.pyx
-===================================================================
---- pycapnp-0.5.12.orig/capnp/lib/capnp.pyx
-+++ pycapnp-0.5.12/capnp/lib/capnp.pyx
-@@ -1688,7 +1688,7 @@ cdef class _Timer:
-         return self
- 
-     cpdef after_delay(self, time) except +reraise_kj_exception:
--        return _VoidPromise()._init(self.thisptr.afterDelay(capnp.Duration(time)))
-+        return _VoidPromise()._init(self.thisptr.afterDelay(capnp.Duration(time, capnp.Unsafe_())))
- 
- def getTimer():
-     return _Timer()._init(helpers.getTimer(C_DEFAULT_EVENT_LOOP_GETTER().thisptr))

diff --git a/dev-python/pycapnp/pycapnp-0.5.12-r1.ebuild b/dev-python/pycapnp/pycapnp-0.5.12-r1.ebuild
deleted file mode 100644
index 1c45ebd80c3..00000000000
--- a/dev-python/pycapnp/pycapnp-0.5.12-r1.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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,3_5,3_6} )
-
-inherit distutils-r1
-
-DESCRIPTION="Python wrapping of the Cap'n Proto library"
-HOMEPAGE="http://jparyani.github.io/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}/capn06.patch" )
-
-src_prepare() {
-	distutils-r1_src_prepare
-	# regen cython files
-	rm -f capnp/lib/capnp.cpp || die
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/pycapnp/files/, dev-python/pycapnp/
@ 2019-02-12 13:19 Alexis Ballier
  0 siblings, 0 replies; 2+ messages in thread
From: Alexis Ballier @ 2019-02-12 13:19 UTC (permalink / raw
  To: gentoo-commits

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-12 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-12 13:19 [gentoo-commits] repo/gentoo:master commit in: dev-python/pycapnp/files/, dev-python/pycapnp/ Alexis Ballier
  -- strict thread matches above, loose matches on Subject: below --
2017-12-04 22:01 Alexis Ballier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox