Gentoo Archives: gentoo-commits

From: Dennis Lamm <expeditioneer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/xxhash/
Date: Tue, 08 Sep 2020 18:35:13
Message-Id: 1599590103.25a20900778ccf3347de2228f24fe3dee92e703c.expeditioneer@gentoo
1 commit: 25a20900778ccf3347de2228f24fe3dee92e703c
2 Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 6 16:44:25 2020 +0000
4 Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 8 18:35:03 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25a20900
7
8 dev-python/xxhash: new package
9
10 Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
11 Package-Manager: Portage-3.0.4, Repoman-3.0.1
12 Closes: https://github.com/gentoo/gentoo/pull/17442
13 Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
14
15 dev-python/xxhash/Manifest | 1 +
16 dev-python/xxhash/metadata.xml | 12 ++++++++++++
17 dev-python/xxhash/xxhash-2.0.0.ebuild | 32 ++++++++++++++++++++++++++++++++
18 3 files changed, 45 insertions(+)
19
20 diff --git a/dev-python/xxhash/Manifest b/dev-python/xxhash/Manifest
21 new file mode 100644
22 index 00000000000..623d9cb8a8a
23 --- /dev/null
24 +++ b/dev-python/xxhash/Manifest
25 @@ -0,0 +1 @@
26 +DIST xxhash-2.0.0.tar.gz 64099 BLAKE2B bf4a013b70f02945b00b01043b34ff32bda0ce8aac5a533a0c7c606665a4054f443a46b1f60454b4d19a064db276ea66370a159d4037df49d5213dfc33703421 SHA512 c0d303f2705542ef8edb78ccccf42e3da6904e81cecb52f45861d0f0215f0882ad1617167273781c19bb5ff7ed776ec41a36a380eab2ce59e02636fc76f4b009
27
28 diff --git a/dev-python/xxhash/metadata.xml b/dev-python/xxhash/metadata.xml
29 new file mode 100644
30 index 00000000000..da5553da7dc
31 --- /dev/null
32 +++ b/dev-python/xxhash/metadata.xml
33 @@ -0,0 +1,12 @@
34 +<?xml version="1.0" encoding="UTF-8"?>
35 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
36 +<pkgmetadata>
37 + <maintainer type="project">
38 + <email>3dprint@g.o</email>
39 + <name>Gentoo 3D Printer Project</name>
40 + </maintainer>
41 + <upstream>
42 + <remote-id type="github">mikedh/trimesh</remote-id>
43 + <remote-id type="pypi">xxhash</remote-id>
44 + </upstream>
45 +</pkgmetadata>
46
47 diff --git a/dev-python/xxhash/xxhash-2.0.0.ebuild b/dev-python/xxhash/xxhash-2.0.0.ebuild
48 new file mode 100644
49 index 00000000000..ea7b6e71a9a
50 --- /dev/null
51 +++ b/dev-python/xxhash/xxhash-2.0.0.ebuild
52 @@ -0,0 +1,32 @@
53 +# Copyright 1999-2020 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=7
57 +
58 +PYTHON_COMPAT=(python3_{6..8})
59 +
60 +inherit distutils-r1
61 +
62 +DESCRIPTION="Python binding for the xxHash library"
63 +HOMEPAGE="https://github.com/ifduyue/python-xxhash
64 + https://pypi.org/project/xxhash/"
65 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
66 +LICENSE="MIT"
67 +
68 +KEYWORDS="~amd64"
69 +SLOT="0"
70 +IUSE="test"
71 +
72 +RDEPEND=">=dev-libs/xxhash-0.8.0"
73 +BDEPEND="${RDEPEND}"
74 +
75 +distutils_enable_tests unittest
76 +
77 +python_configure_all() {
78 + export XXHASH_LINK_SO=1
79 +}
80 +
81 +python_test() {
82 + cd tests
83 + "${EPYTHON}" -m unittest discover -v || die "tests failed with ${EPYTHON}"
84 +}