1 |
commit: 91081c55a118249339229acd798d69e655474223 |
2 |
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 29 17:39:33 2020 +0000 |
4 |
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 29 17:45:29 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91081c55 |
7 |
|
8 |
sci-libs/cartopy: New package |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org> |
12 |
|
13 |
sci-libs/cartopy/Manifest | 1 + |
14 |
sci-libs/cartopy/cartopy-0.18.0_beta1.ebuild | 65 ++++++++++++++++++++++++++++ |
15 |
sci-libs/cartopy/metadata.xml | 15 +++++++ |
16 |
3 files changed, 81 insertions(+) |
17 |
|
18 |
diff --git a/sci-libs/cartopy/Manifest b/sci-libs/cartopy/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..b4a3dc8825c |
21 |
--- /dev/null |
22 |
+++ b/sci-libs/cartopy/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST cartopy-0.18.0_beta1.tar.gz 14215372 BLAKE2B 5bb1e98f18fdf57c0459202bfe77d4e4a476a3008e2f21a77cf643711cc3c438626915c31ee48886e980466f952985503987e3ed571295e2beb6c12754b382c4 SHA512 95d3bd87e57bea89eb2c25d6a709285ba59fb0f994abc3b37faf29b272b73647d0bc8979a25b1480f48bb55c957f4183ac3c3ad49b830ce686e931227c797abe |
25 |
|
26 |
diff --git a/sci-libs/cartopy/cartopy-0.18.0_beta1.ebuild b/sci-libs/cartopy/cartopy-0.18.0_beta1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..01048dc6aca |
29 |
--- /dev/null |
30 |
+++ b/sci-libs/cartopy/cartopy-0.18.0_beta1.ebuild |
31 |
@@ -0,0 +1,65 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_6 ) |
38 |
+inherit distutils-r1 virtualx |
39 |
+ |
40 |
+MY_PV=${PV/_beta/b} |
41 |
+MY_P=${PN}-${MY_PV} |
42 |
+ |
43 |
+DESCRIPTION="Python package for geospatial data processing and analysis" |
44 |
+HOMEPAGE="https://scitools.org.uk/cartopy" |
45 |
+SRC_URI="https://github.com/SciTools/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="LGPL-3" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="test" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ ${PYTHON_DEPS} |
56 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
57 |
+ sci-libs/pyshp[${PYTHON_USEDEP}] |
58 |
+ sci-libs/Shapely[${PYTHON_USEDEP}] |
59 |
+ dev-python/six[${PYTHON_USEDEP}] |
60 |
+ dev-python/matplotlib[${PYTHON_USEDEP}] |
61 |
+ sci-libs/scipy[${PYTHON_USEDEP}] |
62 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
63 |
+ sci-libs/gdal[python,${PYTHON_USEDEP}] |
64 |
+" |
65 |
+ |
66 |
+DEPEND="${RDEPEND} |
67 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
68 |
+ dev-python/cython[${PYTHON_USEDEP}] |
69 |
+ sci-libs/geos |
70 |
+ sci-libs/proj |
71 |
+" |
72 |
+ |
73 |
+distutils_enable_tests pytest |
74 |
+ |
75 |
+DEPEND+="test? ( |
76 |
+ dev-python/filelock[${PYTHON_USEDEP}] |
77 |
+ dev-python/mock[${PYTHON_USEDEP}] |
78 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
79 |
+ )" |
80 |
+ |
81 |
+S="${WORKDIR}"/${MY_P} |
82 |
+ |
83 |
+python_prepare_all() { |
84 |
+ # drop test file requiring network access, which got not covered by markers |
85 |
+ rm "${S}"/lib/cartopy/tests/mpl/test_crs.py || die |
86 |
+ # prepare matplotlib backend for test suite |
87 |
+ export MPLCONFIGDIR="${T}" |
88 |
+ echo "backend : Agg" > "${MPLCONFIGDIR}"/matplotlibrc || die |
89 |
+ distutils-r1_python_prepare_all |
90 |
+} |
91 |
+ |
92 |
+python_test() { |
93 |
+ cd "${BUILD_DIR}" |
94 |
+ # drop all tests needing network access |
95 |
+ virtx pytest -vv -m "not network and not natural_earth" || die "test failed" |
96 |
+} |
97 |
|
98 |
diff --git a/sci-libs/cartopy/metadata.xml b/sci-libs/cartopy/metadata.xml |
99 |
new file mode 100644 |
100 |
index 00000000000..5bffb905015 |
101 |
--- /dev/null |
102 |
+++ b/sci-libs/cartopy/metadata.xml |
103 |
@@ -0,0 +1,15 @@ |
104 |
+<?xml version="1.0" encoding="UTF-8"?> |
105 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
106 |
+<pkgmetadata> |
107 |
+ <maintainer type="person"> |
108 |
+ <email>tomjbe@g.o</email> |
109 |
+ <name>Thomas Beierlein</name> |
110 |
+ </maintainer> |
111 |
+ <longdescription> |
112 |
+ Cartopy is a Python package designed for geospatial data processing |
113 |
+ in order to produce maps and other geospatial data analyses. |
114 |
+ Key features of cartopy are its object oriented projection definitions, |
115 |
+ and its ability to transform points, lines, vectors, polygons and i |
116 |
+ images between those projections. |
117 |
+ </longdescription> |
118 |
+</pkgmetadata> |