summaryrefslogtreecommitdiff
path: root/dev-python/nnpy
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/nnpy
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/nnpy')
-rw-r--r--dev-python/nnpy/Manifest9
-rw-r--r--dev-python/nnpy/files/py3.patch19
-rw-r--r--dev-python/nnpy/metadata.xml15
-rw-r--r--dev-python/nnpy/nnpy-1.2-r1.ebuild27
-rw-r--r--dev-python/nnpy/nnpy-1.3.ebuild27
-rw-r--r--dev-python/nnpy/nnpy-1.4.1.ebuild29
6 files changed, 126 insertions, 0 deletions
diff --git a/dev-python/nnpy/Manifest b/dev-python/nnpy/Manifest
new file mode 100644
index 000000000000..ae0c7a0ddeed
--- /dev/null
+++ b/dev-python/nnpy/Manifest
@@ -0,0 +1,9 @@
+AUX py3.patch 699 SHA256 83ec93205edcc4d3d099cc6e737e7499fb21b1b64a081254499f702b9f3ad760 SHA512 45072f0fdb3e95b4e7301ccaa9168dbfd11dd0dda651eb6f9dff0352010ec6619e9af3de38d03fe89c93c5794883c4f9d6dcf6bda3a21db64449f0d15b65c336 WHIRLPOOL 061cbe3de6d2335d49d787e5b857c7a4a067b7079d09c7e6275db803db805328de54748679245df52727fe55236144d38a4025d418dc44ad71e21e63fa584478
+DIST nnpy-1.2.tar.gz 3781 SHA256 0b3a894dd0be0f5b6f967e3cacf5ec3399e4fbc9ef83fdc3e7c6b17fa3284094 SHA512 ae88d52289c1b4e9853e81342aec94feee004f46e6b5801764ed1fc50f7e249cf45b8d24e85ae9f69003304052505cd9242f43ee33de42ab4f862b3f9cb20b3f WHIRLPOOL 09ab1e11bea3f163d78860ac69e604bb176f17e1e3049af139627e6baa4572bd9d40f38a29b0eb5a352e5279504652994003d84eb8f3a5c248f0fe96aad4c4ee
+DIST nnpy-1.3.tar.gz 4384 SHA256 50daf80693f355096a4926e8b5a8ec5f216a3ca28f0eb14ff819b218a3691f4e SHA512 66ec80169f4c107f2c9ea870153824a84f5bfdecbb0b40a455061a926b43ff61a723b4e62d9b0e9f5361cf6b486f706a5ff111681bbb4083180988337416e0f6 WHIRLPOOL 76ef6210c028cd83bb98fb89e452bec82a7b6cfb3a19bac37e8306a18b2e4d9f1a801624e3db31b525a831ad2ddee5d3dd87017eebeb20241e323037ab688e0d
+DIST nnpy-1.4.1.tar.gz 4826 SHA256 2b947d097b19e9d4182d77f542dccb93da543a325b2eb616cc9e0e90cfed50a9 SHA512 26e1393fdca77cc9385eff0622f9a5b4987eeca533c57478ba873a1ea96f312a2d535fd3eaa883c47746157a9d692b4b0f6c52d51ea5b4fea5fb885cfdadc2a2 WHIRLPOOL bb3082484ac0f2829ad39a0592c8944827bdb30cd097fc73e020570d770513d802608732e14ae47a565669060388e20d7684631d6d0da83da4dd48fba123f373
+EBUILD nnpy-1.2-r1.ebuild 549 SHA256 d036f9ad9f596d75d734226b6f4203895459d6ae7bf6c3238e7b74e9459a04f0 SHA512 aa7316585c21b300a3392297061e920a9e61194bc8e7537f9729845b08ed8a8614579621f635e57e8cc4c3ca825d68991534d26b9eb8d7c26b4665806f2ecc96 WHIRLPOOL 5ba3dc453c6d63a151285f0ce827b4cfe2598a12a4fdc2f960ce4617954a357903e0f79488e34977704ab7d9dfe19e1fe130452ba3d4252f840839c69bf52256
+EBUILD nnpy-1.3.ebuild 549 SHA256 d036f9ad9f596d75d734226b6f4203895459d6ae7bf6c3238e7b74e9459a04f0 SHA512 aa7316585c21b300a3392297061e920a9e61194bc8e7537f9729845b08ed8a8614579621f635e57e8cc4c3ca825d68991534d26b9eb8d7c26b4665806f2ecc96 WHIRLPOOL 5ba3dc453c6d63a151285f0ce827b4cfe2598a12a4fdc2f960ce4617954a357903e0f79488e34977704ab7d9dfe19e1fe130452ba3d4252f840839c69bf52256
+EBUILD nnpy-1.4.1.ebuild 628 SHA256 13bc48695852118734bd240f8ac849f1c6c467293bde227731fb21c892ade80f SHA512 b9cabcca60b2fb5ce3de656ba9788da050b00c747a41ff63d49355e982ff4b8e70478cbac45feff219e13d1c610a145d49d3c42812be02eb2df6f572c29266b9 WHIRLPOOL 517d15bbe053550bed09edbe34193fd1e5169b7ba346ee6b6553101e47288282475c4ba0626be7c44ca82da05b57c403ad7ae0bb7f2e85386cba3945a3d88a18
+MISC ChangeLog 1038 SHA256 727dd8cdc86c988dff6625c99c89252ce9b2aab2690ead206c5214713529b3e5 SHA512 2d2cea19d227dfa545a097354aff303b217d035c3c52b9e285c587cecd45bb9c9bf81fa6595146235d1da18ae74e38fde4567bbaefa33e9130871794e3ec8d0e WHIRLPOOL 694cc35840fe8d3d13738a6113e17b98d4eb1629429fa564afaf35617dfeb63ade6595bb2ec6086bb2bab7aae887a520833ecfc347af2d225a26e5714171b4ad
+MISC metadata.xml 432 SHA256 eaeb86fc0a67a188acf926c0f2ca8e4a2e1a404203e4161f4df1be8b831b2e0a SHA512 4831a2c1564e14be4136a2e6431a0bc5d8964fd644f13e63633090b8d962fca501bde23407cfb69672db93fcc27c14c19fbfb19fb9e2a5de8e460f014551070b WHIRLPOOL 7ac30ec227dd46532be633b8b6c001895475971157d73bc1133e30ac671d03664e0792e64ba8a2ed898bd125b609983f87271cc8444e940620937e42e146513b
diff --git a/dev-python/nnpy/files/py3.patch b/dev-python/nnpy/files/py3.patch
new file mode 100644
index 000000000000..8a39044bb7f1
--- /dev/null
+++ b/dev-python/nnpy/files/py3.patch
@@ -0,0 +1,19 @@
+commit 98ee46a4034ca94d6123b854e79f1dc3f35fff4a
+Author: Alexis Ballier <aballier@gentoo.org>
+Date: Sat Jun 3 19:55:10 2017 +0200
+
+ Fix tests under python3.
+
+diff --git a/nnpy/tests.py b/nnpy/tests.py
+index ba2a3fe..7f9f6e0 100644
+--- a/nnpy/tests.py
++++ b/nnpy/tests.py
+@@ -17,7 +17,7 @@ class Tests(unittest.TestCase):
+ poller = nnpy.PollSet((sub, nnpy.POLLIN))
+ self.assertEqual(len(poller.poll()), 1)
+ self.assertEqual(poller.poll()[0], 1)
+- self.assertEqual(sub.recv(), 'FLUB')
++ self.assertEqual(sub.recv().decode(), 'FLUB')
+ self.assertEqual(pub.get_statistic(nnpy.STAT_MESSAGES_SENT), 1)
+ pub.close()
+ sub.shutdown(sub_conn)
diff --git a/dev-python/nnpy/metadata.xml b/dev-python/nnpy/metadata.xml
new file mode 100644
index 000000000000..85cc65f8def9
--- /dev/null
+++ b/dev-python/nnpy/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+ </maintainer>
+ <maintainer type="person">
+ <email>djc@gentoo.org</email>
+ <name>Dirkjan Ochtman</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">nanomsg/nnpy</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/nnpy/nnpy-1.2-r1.ebuild b/dev-python/nnpy/nnpy-1.2-r1.ebuild
new file mode 100644
index 000000000000..d2bb5f9e6a94
--- /dev/null
+++ b/dev-python/nnpy/nnpy-1.2-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="cffi-based Python bindings for nanomsg"
+HOMEPAGE="https://github.com/nanomsg/nnpy"
+SRC_URI="https://github.com/nanomsg/nnpy/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm"
+IUSE=""
+
+DEPEND="
+ dev-python/cffi:=[${PYTHON_USEDEP}]
+ dev-libs/nanomsg:=
+"
+RDEPEND="${DEPEND}"
+
+python_test() {
+ "${PYTHON}" "${S}/test.py" || die
+}
diff --git a/dev-python/nnpy/nnpy-1.3.ebuild b/dev-python/nnpy/nnpy-1.3.ebuild
new file mode 100644
index 000000000000..d2bb5f9e6a94
--- /dev/null
+++ b/dev-python/nnpy/nnpy-1.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+
+inherit distutils-r1
+
+DESCRIPTION="cffi-based Python bindings for nanomsg"
+HOMEPAGE="https://github.com/nanomsg/nnpy"
+SRC_URI="https://github.com/nanomsg/nnpy/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm"
+IUSE=""
+
+DEPEND="
+ dev-python/cffi:=[${PYTHON_USEDEP}]
+ dev-libs/nanomsg:=
+"
+RDEPEND="${DEPEND}"
+
+python_test() {
+ "${PYTHON}" "${S}/test.py" || die
+}
diff --git a/dev-python/nnpy/nnpy-1.4.1.ebuild b/dev-python/nnpy/nnpy-1.4.1.ebuild
new file mode 100644
index 000000000000..7f1153859ae0
--- /dev/null
+++ b/dev-python/nnpy/nnpy-1.4.1.ebuild
@@ -0,0 +1,29 @@
+# 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="cffi-based Python bindings for nanomsg"
+HOMEPAGE="https://github.com/nanomsg/nnpy"
+SRC_URI="https://github.com/nanomsg/nnpy/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm"
+IUSE=""
+
+DEPEND="
+ dev-python/cffi:=[${PYTHON_USEDEP}]
+ dev-libs/nanomsg:=
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/py3.patch" )
+
+python_test() {
+ PYTHONPATH="${S}:${PYTHONPATH}" "${PYTHON}" "${S}/nnpy/tests.py" || die
+}