summaryrefslogtreecommitdiff
path: root/dev-python/plyvel
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-06-23 07:00:28 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-06-23 07:00:28 +0100
commite23cdda4dbb0c83b9e682ab5e916085a35203da5 (patch)
tree5a4ac448a3b288b731c24d947e0ce52df3cab07b /dev-python/plyvel
parent8187a741807f3e9a9e26304973cf18087dcf2560 (diff)
gentoo resync : 23.06.2018
Diffstat (limited to 'dev-python/plyvel')
-rw-r--r--dev-python/plyvel/Manifest6
-rw-r--r--dev-python/plyvel/metadata.xml8
-rw-r--r--dev-python/plyvel/plyvel-0.9-r1.ebuild (renamed from dev-python/plyvel/plyvel-0.9.ebuild)4
-rw-r--r--dev-python/plyvel/plyvel-1.0.4.ebuild49
4 files changed, 57 insertions, 10 deletions
diff --git a/dev-python/plyvel/Manifest b/dev-python/plyvel/Manifest
index 2447d4aa99b0..ed4188ca046b 100644
--- a/dev-python/plyvel/Manifest
+++ b/dev-python/plyvel/Manifest
@@ -1,3 +1,5 @@
DIST plyvel-0.9.tar.gz 121513 BLAKE2B 78aa0dc3565a9e2298978ea4f2014670cbaa376e35f21be6b3c26a39db2c560d08667c385894bc3df6ae33da266eabf9cf72b81156759a28d75856760ca7cf73 SHA512 21a3bf0bff075e429fef63418c2a2578b22a4904cc2f4f66fc5fbccec22c762d918bea0622a22dcbeee2e60f8d35210ae8f1e63b6d37405f0fdf29ca2fe80586
-EBUILD plyvel-0.9.ebuild 1161 BLAKE2B 47f052920647796a1a4f25cf8d0529430d1b4412f77b6f1609092d41ea176046d74cdcadcec5becbacd62ee664650c8db992d3ea7309da6518496a8b16464d12 SHA512 97934b3dfba9354a2ee080abd9412b12d7659ed3b45e3e4f55334da6ca1c973ec2300789cf1e90453e2b8ee68440b97ece9444a61061dee89a8245bfdc49fe6d
-MISC metadata.xml 551 BLAKE2B b509e65c3899075b2a8317ebacad0aa4f0b6291738d9c25d3c7978b32d2d68ac11edabced9b9acfb6f55241ca51195411ebbabcd04e29798ee0c4414d35ce741 SHA512 a4c0e632b8a14a7029189879a997d6ed5797d0b5074fa5e0d78ca67420170b00366effdfe68fcdb62f9cff9dd25717b53c6c3e56dca69eda7fd98e00efec66b3
+DIST plyvel-1.0.4.tar.gz 338470 BLAKE2B dbc33ac9962ed3b74d83158e973ac956bd9fa81c7e1980c1d79187f6e629d0605d821debe4bfd4532120f343b87ee3acd825514884d78b471d3717364837ce42 SHA512 ee397d4f7e2dac4e7b382841559895184dc0356b84da4ff4ccdad43c32aebcb1dcc5020230a5564c875ed5d4401cc8b009438ca3b2e0b50e6467e384f0366171
+EBUILD plyvel-0.9-r1.ebuild 1163 BLAKE2B 2930ec4acb47dd811537d8f36d9edc3d0a35b87674fc20910ec0f243312e7f5ae8c4ed35f4cadee9fe8decc78097fca42d6752bef5df86f1f4bfb5a3b685eef2 SHA512 d9a3c3a9d590982348a73268b45850763b1ea533bc6e8a622813615da7e75edc3c96de5b8f3d7a986cbfd7d47c272550121f8e557df6ab1018d5e87f6ebf2c95
+EBUILD plyvel-1.0.4.ebuild 1226 BLAKE2B 3bbb26f07c2cae603e43beb8ee741c48a0152c89008100884ab94243503d7236725bca9b09431a7f261ac21107a32069a927ccc867771ffbf4d83c0fb400edc0 SHA512 285b230436f95578cbe53119ff5c32e58cc332641e567bb485b7f259543b89f3b22c8708954e7a8dacf6de93999df0f9ca1363b95963c295017007d9c8f7e597
+MISC metadata.xml 432 BLAKE2B 5ff794b8cd6bb312ed6fc0a3ef74ab6a89be65b45d90fee726ec4350f702b45e46da69c35ac2fea606bdd2b7cc87a9d360ce03d101b4243950cbd54567a772d7 SHA512 fbd7143b819341c3d6686e6861b5c8642b6e18f3e0c73b0ab0221dae9f074fba26d7792f41a23a67074679594ed2739a9a6926124365c1fab88765e51915f288
diff --git a/dev-python/plyvel/metadata.xml b/dev-python/plyvel/metadata.xml
index fe5c38462779..73166464dee9 100644
--- a/dev-python/plyvel/metadata.xml
+++ b/dev-python/plyvel/metadata.xml
@@ -2,16 +2,12 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
- <email>sautier.louis@gmail.com</email>
+ <email>sbraz@gentoo.org</email>
<name>Louis Sautier</name>
</maintainer>
- <maintainer type="project">
- <email>proxy-maint@gentoo.org</email>
- <name>Proxy Maintainers</name>
- </maintainer>
<upstream>
<remote-id type="pypi">plyvel</remote-id>
- <remote-id type="bitbucket">wbolster/plyvel</remote-id>
<remote-id type="github">wbolster/plyvel</remote-id>
+ <bugs-to>https://github.com/wbolster/plyvel/issues</bugs-to>
</upstream>
</pkgmetadata>
diff --git a/dev-python/plyvel/plyvel-0.9.ebuild b/dev-python/plyvel/plyvel-0.9-r1.ebuild
index cb3f4cd0ce29..8cd881d28601 100644
--- a/dev-python/plyvel/plyvel-0.9.ebuild
+++ b/dev-python/plyvel/plyvel-0.9-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
@@ -17,7 +17,7 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
-RDEPEND="dev-libs/leveldb"
+RDEPEND="dev-libs/leveldb:="
DEPEND="
${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
diff --git a/dev-python/plyvel/plyvel-1.0.4.ebuild b/dev-python/plyvel/plyvel-1.0.4.ebuild
new file mode 100644
index 000000000000..8cac70ffdf33
--- /dev/null
+++ b/dev-python/plyvel/plyvel-1.0.4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# Tests fail with PyPy: https://github.com/wbolster/plyvel/issues/38
+PYTHON_COMPAT=( pypy3 python{2_7,3_{4,5,6}} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python interface to LevelDB"
+HOMEPAGE="https://github.com/wbolster/plyvel"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND=">=dev-libs/leveldb-1.20:="
+DEPEND="
+ ${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+"
+
+python_compile() {
+ # https://wiki.gentoo.org/wiki/Project:Python/Strict_aliasing
+ python_is_python3 || local -x CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
+ distutils-r1_python_compile
+}
+
+python_compile_all() {
+ if use doc; then
+ sphinx-build doc doc/_build/html || die
+ HTML_DOCS=( doc/_build/html/. )
+ fi
+}
+
+python_test() {
+ # We need to copy the extension to the package folder
+ local ext="$(ls "${BUILD_DIR}/lib/${PN}/"*.so | head -n1 || die)"
+ ln -s "${ext}" "${PN}" || die
+ py.test || die "tests failed with ${EPYTHON}"
+ rm "${PN}/$(basename "${ext}")" || die
+}