1 |
commit: a90e779dc40fe495a58b5b8ebd88c7e8bd16ca60 |
2 |
Author: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 4 15:17:51 2016 +0000 |
4 |
Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 4 15:17:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a90e779d |
7 |
|
8 |
sci-libs/Shapely: rev-bump for EAPI 6 bump and fixed deps and tests |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
sci-libs/Shapely/Shapely-1.5.17-r1.ebuild | 48 +++++++++++++++++++++++++++++++ |
13 |
1 file changed, 48 insertions(+) |
14 |
|
15 |
diff --git a/sci-libs/Shapely/Shapely-1.5.17-r1.ebuild b/sci-libs/Shapely/Shapely-1.5.17-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..14cfe97 |
18 |
--- /dev/null |
19 |
+++ b/sci-libs/Shapely/Shapely-1.5.17-r1.ebuild |
20 |
@@ -0,0 +1,48 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Geometric objects, predicates, and operations" |
32 |
+HOMEPAGE="https://pypi.python.org/pypi/Shapely" |
33 |
+ |
34 |
+if [[ ${PV} == "9999" ]] ; then |
35 |
+ inherit git-r3 |
36 |
+ SRC_URI="" |
37 |
+ EGIT_REPO_URI="https://github.com/Toblerity/${PN}.git" |
38 |
+else |
39 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
40 |
+ KEYWORDS="~amd64 ~x86" |
41 |
+fi |
42 |
+ |
43 |
+LICENSE="BSD" |
44 |
+SLOT="0" |
45 |
+IUSE="test" |
46 |
+ |
47 |
+RDEPEND=">=sci-libs/geos-3.3 |
48 |
+ dev-python/numpy[${PYTHON_USEDEP}]" |
49 |
+DEPEND="${RDEPEND} |
50 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
51 |
+ dev-python/cython[${PYTHON_USEDEP}] |
52 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
53 |
+ |
54 |
+python_prepare_all() { |
55 |
+ # fix install path for Cython definition file |
56 |
+ sed -i \ |
57 |
+ -e "s|\(data_files.*\)'shapely'|\1'share/shapely'|" \ |
58 |
+ setup.py || die |
59 |
+ |
60 |
+ distutils-r1_python_prepare_all |
61 |
+} |
62 |
+ |
63 |
+python_test() { |
64 |
+ distutils_install_for_testing |
65 |
+ cd "${TEST_DIR}/lib" || die |
66 |
+ cp -r "${S}/tests" . || die |
67 |
+ py.test tests || die |
68 |
+} |