summaryrefslogtreecommitdiff
path: root/dev-python/pycapnp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pycapnp
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pycapnp')
-rw-r--r--dev-python/pycapnp/Manifest7
-rw-r--r--dev-python/pycapnp/files/capn06.patch29
-rw-r--r--dev-python/pycapnp/metadata.xml16
-rw-r--r--dev-python/pycapnp/pycapnp-0.5.12-r1.ebuild30
-rw-r--r--dev-python/pycapnp/pycapnp-0.6.1.ebuild28
5 files changed, 110 insertions, 0 deletions
diff --git a/dev-python/pycapnp/Manifest b/dev-python/pycapnp/Manifest
new file mode 100644
index 000000000000..db8a210dd55d
--- /dev/null
+++ b/dev-python/pycapnp/Manifest
@@ -0,0 +1,7 @@
+AUX capn06.patch 1212 SHA256 79e059baeb8943b18cdb9a3033883f89468caac35407aeca1c75e454aebdd133 SHA512 21f9f7946b93e7ec6c9dfd1a0e360bf2a4bada5ef1a0f917a9287a674f6d993589a5745064e9638880fde037d0df9dd1e1e6ac93004fc63b875908045f97068a WHIRLPOOL 83a98a7ed08d44c46ada5d86dcb1914211ea04879eb6a59926fb7139c7e2420c516b9754688fd0b9f2caf73664c0129c76528dfa3f97302aa5414031b4dca15e
+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
+EBUILD pycapnp-0.5.12-r1.ebuild 635 SHA256 4018608ccf4e558a49bb8e821a1f950e26d27315eeeaa67cb89c34ea0275e24a SHA512 035b7d68aa059348061f46b240cb9f6692eeefb9969c3b12b4f85956d3c8e01884933e7a333aba86fb35a4efd0f71ad7cd5b8cfc09ab79c942e2580694d52628 WHIRLPOOL baa3f40d6d4201d2b9b625794d3d2a1e5d16a23e21e795b6904044c788552dc0ab4fe0c357136217dc464f2d240292dcbd39f0b2a738e4a5d4405e4c7c877f3f
+EBUILD pycapnp-0.6.1.ebuild 595 SHA256 0d0b8b468a2db21b226bc91bdabcc6d2d5e17d02c521812ec55d08e769d1a21f SHA512 63efb976e42915e52f9bbcbf28ae2bb5c2ca55e9e7415722a536bc00457614fccab72f78c1bffc413735a2f83f03600c32165ea9f1b3b4c9944a0d6242fce22b WHIRLPOOL 74489baabe80af3556b456eb4a035192ec4d4228400fd35fe009bef33aa2601d66133009f10c81b139f39858e0d713bb227c5efaed997741c9f8b177d87cf4e1
+MISC ChangeLog 2255 SHA256 9d9e4de76e4350a06eab725eca7b78a6cc9eece5eea702d22fd9c8796d7e4758 SHA512 e44fdee26941a3855e675c2be6515798241062ed8180631059af08ffbdd03149e8b576a46b5cbc9611dccbc3315590b25071e003dff7fd2e257d71ec012d314a WHIRLPOOL 65e66576679133b923e06503b7ff2f2f533ec936b61dc695c8519acc31b69f58b790f4fd3354e0f2885021959bf6326af98554bcacdcf78a5e606144d0faeb86
+MISC metadata.xml 514 SHA256 03f01614a7a082e17e7bba6f94bfc939df02d800aa276bc85ca735837a2052b2 SHA512 10bc088e1650bfa18b74023ba1cd5fd78618051febe89be2756ba0aa706cd695ca98548096392a60a38c94ab168660f347c6e73e2789c32acf7eb927de7d2923 WHIRLPOOL 21547f2d81376fff262d3bc1908ce8e5758dd1b90b2da569de495c0772a3668fa45125546f8919180289da0489b21ea520cefa98af6886a17786bd79fc0b769a
diff --git a/dev-python/pycapnp/files/capn06.patch b/dev-python/pycapnp/files/capn06.patch
new file mode 100644
index 000000000000..e1c1709fe8c0
--- /dev/null
+++ b/dev-python/pycapnp/files/capn06.patch
@@ -0,0 +1,29 @@
+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/metadata.xml b/dev-python/pycapnp/metadata.xml
new file mode 100644
index 000000000000..b488f8a61dd2
--- /dev/null
+++ b/dev-python/pycapnp/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+ <description>Python team can take the package if they wish.</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">pycapnp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/pycapnp/pycapnp-0.5.12-r1.ebuild b/dev-python/pycapnp/pycapnp-0.5.12-r1.ebuild
new file mode 100644
index 000000000000..1c45ebd80c32
--- /dev/null
+++ b/dev-python/pycapnp/pycapnp-0.5.12-r1.ebuild
@@ -0,0 +1,30 @@
+# 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
+}
diff --git a/dev-python/pycapnp/pycapnp-0.6.1.ebuild b/dev-python/pycapnp/pycapnp-0.6.1.ebuild
new file mode 100644
index 000000000000..dcc5d83d6f4c
--- /dev/null
+++ b/dev-python/pycapnp/pycapnp-0.6.1.ebuild
@@ -0,0 +1,28 @@
+# 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}]
+"
+
+src_prepare() {
+ distutils-r1_src_prepare
+ # regen cython files
+ rm -f capnp/lib/capnp.cpp || die
+}