Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/Shapely/
Date: Tue, 03 Dec 2019 04:18:20
Message-Id: 1575346671.1ed8a5f919e3df02f8600e860cc82a575776edd4.bman@gentoo
1 commit: 1ed8a5f919e3df02f8600e860cc82a575776edd4
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 1 20:34:54 2019 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 3 04:17:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ed8a5f9
7
8 sci-libs/Shapely: python3_8, EAPI-7 bump
9
10 Tests passed.
11 Dropping python2_7 for dev-python/numpy dependency.
12
13 Closes: https://bugs.gentoo.org/701746
14 Package-Manager: Portage-2.3.80, Repoman-2.3.18
15 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
16 Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
17
18 sci-libs/Shapely/Shapely-1.6.4_p2-r1.ebuild | 55 +++++++++++++++++++++++++++++
19 1 file changed, 55 insertions(+)
20
21 diff --git a/sci-libs/Shapely/Shapely-1.6.4_p2-r1.ebuild b/sci-libs/Shapely/Shapely-1.6.4_p2-r1.ebuild
22 new file mode 100644
23 index 00000000000..488e7c29a06
24 --- /dev/null
25 +++ b/sci-libs/Shapely/Shapely-1.6.4_p2-r1.ebuild
26 @@ -0,0 +1,55 @@
27 +# Copyright 1999-2019 Gentoo Authors
28 +# Distributed under the terms of the GNU General Public License v2
29 +
30 +EAPI=7
31 +
32 +PYTHON_COMPAT=( python3_{5,6,7,8} )
33 +
34 +inherit distutils-r1
35 +
36 +DESCRIPTION="Geometric objects, predicates, and operations"
37 +HOMEPAGE="https://pypi.org/project/Shapely/"
38 +
39 +MY_PV="$(ver_cut 1-3).post$(ver_cut 5)"
40 +
41 +if [[ ${PV} == "9999" ]] ; then
42 + inherit git-r3
43 + SRC_URI=""
44 + EGIT_REPO_URI="https://github.com/Toblerity/${PN}.git"
45 +else
46 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${PN}-${MY_PV}.tar.gz"
47 + KEYWORDS="~amd64 ~x86"
48 +fi
49 +
50 +LICENSE="BSD"
51 +SLOT="0"
52 +IUSE="test"
53 +
54 +BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
55 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
56 +RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]
57 + >=sci-libs/geos-3.3"
58 +DEPEND="${RDEPEND}
59 + dev-python/cython[${PYTHON_USEDEP}]"
60 +
61 +RESTRICT="!test? ( test )"
62 +
63 +PATCHES=( "${FILESDIR}/${P}-test_operations.patch" ) # bug 701624
64 +
65 +S="${WORKDIR}/${PN}-${MY_PV}"
66 +
67 +python_prepare_all() {
68 + # fix install path for Cython definition file
69 + sed -i \
70 + -e "s|\(data_files.*\)'shapely'|\1'share/shapely'|" \
71 + setup.py || die
72 +
73 + distutils-r1_python_prepare_all
74 +}
75 +
76 +python_test() {
77 + distutils_install_for_testing
78 + cd "${TEST_DIR}/lib" || die
79 + cp -r "${S}/tests" . || die
80 + py.test tests || die
81 +}