Gentoo Archives: gentoo-commits

From: Thomas Beierlein <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/cartopy/
Date: Tue, 28 Dec 2021 12:05:57
Message-Id: 1640693131.8b7bc0969af3a6b9b5f0cc23c1bd6b4136c3d637.tomjbe@gentoo
1 commit: 8b7bc0969af3a6b9b5f0cc23c1bd6b4136c3d637
2 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 28 12:05:31 2021 +0000
4 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 28 12:05:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b7bc096
7
8 sci-libs/cartopy: Move some DEPENDS to RDEPENDS
9
10 See also: https://bugs.gentoo.org/830016
11
12 Tnx Sam for pointing it out.
13
14 Package-Manager: Portage-3.0.30, Repoman-3.0.3
15 Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>
16
17 sci-libs/cartopy/cartopy-0.20.1-r1.ebuild | 70 +++++++++++++++++++++++++++++++
18 1 file changed, 70 insertions(+)
19
20 diff --git a/sci-libs/cartopy/cartopy-0.20.1-r1.ebuild b/sci-libs/cartopy/cartopy-0.20.1-r1.ebuild
21 new file mode 100644
22 index 000000000000..d1c4f0d5d167
23 --- /dev/null
24 +++ b/sci-libs/cartopy/cartopy-0.20.1-r1.ebuild
25 @@ -0,0 +1,70 @@
26 +# Copyright 1999-2021 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=8
30 +
31 +PYTHON_COMPAT=( python3_{7..10} )
32 +
33 +inherit distutils-r1 virtualx
34 +
35 +MY_PV=${PV/_beta/b}
36 +MY_P=${PN}-${MY_PV}
37 +
38 +DESCRIPTION="Python package for geospatial data processing and analysis"
39 +HOMEPAGE="https://scitools.org.uk/cartopy"
40 +SRC_URI="https://github.com/SciTools/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="LGPL-3"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="test"
46 +RESTRICT="!test? ( test )"
47 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
48 +
49 +RDEPEND="
50 + ${PYTHON_DEPS}
51 + sci-libs/geos
52 + dev-python/numpy[${PYTHON_USEDEP}]
53 + sci-libs/pyshp[${PYTHON_USEDEP}]
54 + sci-libs/shapely[${PYTHON_USEDEP}]
55 + dev-python/six[${PYTHON_USEDEP}]
56 + dev-python/matplotlib[${PYTHON_USEDEP}]
57 + dev-python/scipy[${PYTHON_USEDEP}]
58 + dev-python/pillow[jpeg,${PYTHON_USEDEP}]
59 + sci-libs/gdal[python,${PYTHON_USEDEP}]
60 + dev-python/pyproj[${PYTHON_USEDEP}]
61 + >=sci-libs/proj-8
62 +"
63 +
64 +DEPEND="${RDEPEND}
65 + dev-python/setuptools[${PYTHON_USEDEP}]
66 + dev-python/setuptools_scm_git_archive[${PYTHON_USEDEP}]
67 + dev-python/cython[${PYTHON_USEDEP}]
68 +"
69 +
70 +distutils_enable_tests pytest
71 +
72 +DEPEND+="test? (
73 + dev-python/filelock[${PYTHON_USEDEP}]
74 + dev-python/mock[${PYTHON_USEDEP}]
75 + dev-python/pytest[${PYTHON_USEDEP}]
76 + dev-python/flufl-lock[$PYTHON_USEDEP]
77 + )"
78 +
79 +S="${WORKDIR}"/${MY_P}
80 +
81 +python_prepare_all() {
82 + # drop test file requiring network access, which got not covered by markers
83 + rm "${S}"/lib/cartopy/tests/mpl/test_crs.py || die
84 + rm "${S}"/lib/cartopy/tests/mpl/test_gridliner.py || die
85 + # prepare matplotlib backend for test suite
86 + export MPLCONFIGDIR="${T}"
87 + echo "backend : Agg" > "${MPLCONFIGDIR}"/matplotlibrc || die
88 + distutils-r1_python_prepare_all
89 +}
90 +
91 +python_test() {
92 + cd "${BUILD_DIR}"
93 + # drop all tests needing network access
94 + virtx pytest -vv -m "not network and not natural_earth" || die "test failed"
95 +}