From ab0afda12a94a22da7afdfb42bcd6f2f6c0742f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 8 Feb 2020 12:26:34 +0100 Subject: dev-python/basemap: Switch to python-single-r1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit basemap needs to be single-r1 since its dependency sci-libs/geos is. Signed-off-by: Michał Górny --- dev-python/basemap/basemap-1.0.7-r1.ebuild | 75 ----------------------------- dev-python/basemap/basemap-1.0.7-r2.ebuild | 77 ++++++++++++++++++++++++++++++ dev-python/basemap/basemap-1.0.7-r3.ebuild | 75 ----------------------------- dev-python/basemap/basemap-1.0.7-r4.ebuild | 77 ++++++++++++++++++++++++++++++ 4 files changed, 154 insertions(+), 150 deletions(-) delete mode 100644 dev-python/basemap/basemap-1.0.7-r1.ebuild create mode 100644 dev-python/basemap/basemap-1.0.7-r2.ebuild delete mode 100644 dev-python/basemap/basemap-1.0.7-r3.ebuild create mode 100644 dev-python/basemap/basemap-1.0.7-r4.ebuild (limited to 'dev-python') diff --git a/dev-python/basemap/basemap-1.0.7-r1.ebuild b/dev-python/basemap/basemap-1.0.7-r1.ebuild deleted file mode 100644 index 21c1f248697e..000000000000 --- a/dev-python/basemap/basemap-1.0.7-r1.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit distutils-r1 flag-o-matic - -DESCRIPTION="matplotlib toolkit to plot map projections" -HOMEPAGE="https://matplotlib.org/basemap/ https://pypi.org/project/basemap/" -SRC_URI="mirror://sourceforge/matplotlib/${P}.tar.gz" - -IUSE="examples test" -SLOT="0" -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" -LICENSE="MIT GPL-2" - -CDEPEND="sci-libs/shapelib - || ( - >=dev-python/matplotlib-python2-0.98[${PYTHON_USEDEP}] - >=dev-python/matplotlib-0.98[${PYTHON_USEDEP}] - ) - >=sci-libs/geos-3.3.1[python(-),${PYTHON_USEDEP}]" - -DEPEND="${CDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" - -RDEPEND="${CDEPEND} - >=dev-python/pupynere-1.0.8[${PYTHON_USEDEP}] - dev-python/httplib2[${PYTHON_USEDEP}] - dev-python/dap[${PYTHON_USEDEP}]" - -DOCS="FAQ API_CHANGES" -#REQUIRED_USE="test? ( examples )" -# The test phase ought never have been onvoked according to the above. -# The test phase appears to require the package to fist be emerged, which ... -# Until the distutils_install_for_testing func refrains from failing with -# mkdir: cannot create directory ‘/test’: Permission denied -# reluctantly this phase is assigned -RESTRICT="test" - -src_prepare() { - sed -i \ - -e "s:/usr:${EPREFIX}/usr:g" \ - setup.py || die - # use /usr/share/data - sed -i \ - -e "/_datadir.*=.*join/s|\(.*datadir.*=\).*|\1'${EROOT}usr/share/${PN}'|g" \ - "${S}"/lib/mpl_toolkits/basemap/*.py || die - distutils-r1_src_prepare - append-flags -fno-strict-aliasing -} - -#src_test() { -# distutils_install_for_testing -#} - -python_install() { - distutils-r1_python_install - # --install-data="${EPREFIX}/usr/share/${PN}" on testing is found not to work; - # setup.py is a mess. Someone care to patch setup.py please proceed; substitute with - insinto usr/share/basemap/ - doins lib/mpl_toolkits/basemap/data/* - - # clean up collision with matplotlib - rm -f "${D}$(python_get_sitedir)/mpl_toolkits/__init__.py" - # respect FHS - rm -fr "${D}$(python_get_sitedir)/mpl_toolkits/basemap/data" -} - -python_install_all() { - use examples && local EXAMPLES=( examples/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/basemap/basemap-1.0.7-r2.ebuild b/dev-python/basemap/basemap-1.0.7-r2.ebuild new file mode 100644 index 000000000000..f6f476179223 --- /dev/null +++ b/dev-python/basemap/basemap-1.0.7-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 flag-o-matic + +DESCRIPTION="matplotlib toolkit to plot map projections" +HOMEPAGE="https://matplotlib.org/basemap/ https://pypi.org/project/basemap/" +SRC_URI="mirror://sourceforge/matplotlib/${P}.tar.gz" + +IUSE="examples test" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" +LICENSE="MIT GPL-2" + +DEPEND="sci-libs/shapelib + $(python_gen_cond_dep ' + || ( + >=dev-python/matplotlib-python2-0.98[${PYTHON_MULTI_USEDEP}] + >=dev-python/matplotlib-0.98[${PYTHON_MULTI_USEDEP}] + ) + ') + >=sci-libs/geos-3.3.1[python(-),${PYTHON_SINGLE_USEDEP}]" + +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + >=dev-python/pupynere-1.0.8[${PYTHON_MULTI_USEDEP}] + dev-python/httplib2[${PYTHON_MULTI_USEDEP}] + dev-python/dap[${PYTHON_MULTI_USEDEP}] + ')" + +DOCS="FAQ API_CHANGES" +#REQUIRED_USE="test? ( examples )" +# The test phase ought never have been onvoked according to the above. +# The test phase appears to require the package to fist be emerged, which ... +# Until the distutils_install_for_testing func refrains from failing with +# mkdir: cannot create directory ‘/test’: Permission denied +# reluctantly this phase is assigned +RESTRICT="test" + +src_prepare() { + sed -i \ + -e "s:/usr:${EPREFIX}/usr:g" \ + setup.py || die + # use /usr/share/data + sed -i \ + -e "/_datadir.*=.*join/s|\(.*datadir.*=\).*|\1'${EROOT}usr/share/${PN}'|g" \ + "${S}"/lib/mpl_toolkits/basemap/*.py || die + distutils-r1_src_prepare + append-flags -fno-strict-aliasing +} + +#src_test() { +# distutils_install_for_testing +#} + +python_install() { + distutils-r1_python_install + # --install-data="${EPREFIX}/usr/share/${PN}" on testing is found not to work; + # setup.py is a mess. Someone care to patch setup.py please proceed; substitute with + insinto usr/share/basemap/ + doins lib/mpl_toolkits/basemap/data/* + + # clean up collision with matplotlib + rm -f "${D}$(python_get_sitedir)/mpl_toolkits/__init__.py" + # respect FHS + rm -fr "${D}$(python_get_sitedir)/mpl_toolkits/basemap/data" +} + +python_install_all() { + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/basemap/basemap-1.0.7-r3.ebuild b/dev-python/basemap/basemap-1.0.7-r3.ebuild deleted file mode 100644 index 97bcfc3f839b..000000000000 --- a/dev-python/basemap/basemap-1.0.7-r3.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit distutils-r1 flag-o-matic - -DESCRIPTION="matplotlib toolkit to plot map projections" -HOMEPAGE="https://matplotlib.org/basemap/ https://pypi.org/project/basemap/" -SRC_URI="mirror://sourceforge/matplotlib/${P}.tar.gz" - -IUSE="examples test" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -LICENSE="MIT GPL-2" - -CDEPEND="sci-libs/shapelib - || ( - >=dev-python/matplotlib-python2-0.98[${PYTHON_USEDEP}] - >=dev-python/matplotlib-0.98[${PYTHON_USEDEP}] - ) - >=sci-libs/geos-3.3.1[python(-),${PYTHON_USEDEP}]" - -DEPEND="${CDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" - -RDEPEND="${CDEPEND} - >=dev-python/pupynere-1.0.8[${PYTHON_USEDEP}] - dev-python/httplib2[${PYTHON_USEDEP}] - dev-python/dap[${PYTHON_USEDEP}]" - -DOCS="FAQ API_CHANGES" -#REQUIRED_USE="test? ( examples )" -# The test phase ought never have been onvoked according to the above. -# The test phase appears to require the package to fist be emerged, which ... -# Until the distutils_install_for_testing func refrains from failing with -# mkdir: cannot create directory ‘/test’: Permission denied -# reluctantly this phase is assigned -RESTRICT="test" - -src_prepare() { - sed -i \ - -e "s:/usr:${EPREFIX}/usr:g" \ - setup.py || die - # use /usr/share/data - sed -i \ - -e "/_datadir.*=.*join/s|\(.*datadir.*=\).*|\1'${EROOT}usr/share/${PN}'|g" \ - "${S}"/lib/mpl_toolkits/basemap/*.py || die - distutils-r1_src_prepare - append-flags -fno-strict-aliasing -} - -#src_test() { -# distutils_install_for_testing -#} - -python_install() { - # mpl_toolkits namespace provided by dev-python/matplotlib - rm "${BUILD_DIR}/lib/mpl_toolkits/__init__.py" || die - distutils-r1_python_install --skip-build - # --install-data="${EPREFIX}/usr/share/${PN}" on testing is found not to work; - # setup.py is a mess. Someone care to patch setup.py please proceed; substitute with - insinto /usr/share/basemap/ - doins lib/mpl_toolkits/basemap/data/* - - # respect FHS - rm -r "${D}$(python_get_sitedir)/mpl_toolkits/basemap/data" || die -} - -python_install_all() { - use examples && local EXAMPLES=( examples/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/basemap/basemap-1.0.7-r4.ebuild b/dev-python/basemap/basemap-1.0.7-r4.ebuild new file mode 100644 index 000000000000..38c0bfb4645e --- /dev/null +++ b/dev-python/basemap/basemap-1.0.7-r4.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 flag-o-matic + +DESCRIPTION="matplotlib toolkit to plot map projections" +HOMEPAGE="https://matplotlib.org/basemap/ https://pypi.org/project/basemap/" +SRC_URI="mirror://sourceforge/matplotlib/${P}.tar.gz" + +IUSE="examples test" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +LICENSE="MIT GPL-2" + +DEPEND="sci-libs/shapelib + $(python_gen_cond_dep ' + || ( + >=dev-python/matplotlib-python2-0.98[${PYTHON_MULTI_USEDEP}] + >=dev-python/matplotlib-0.98[${PYTHON_MULTI_USEDEP}] + ) + ') + >=sci-libs/geos-3.3.1[python(-),${PYTHON_SINGLE_USEDEP}]" + +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + >=dev-python/pupynere-1.0.8[${PYTHON_MULTI_USEDEP}] + dev-python/httplib2[${PYTHON_MULTI_USEDEP}] + dev-python/dap[${PYTHON_MULTI_USEDEP}] + ')" + +DOCS="FAQ API_CHANGES" +#REQUIRED_USE="test? ( examples )" +# The test phase ought never have been onvoked according to the above. +# The test phase appears to require the package to fist be emerged, which ... +# Until the distutils_install_for_testing func refrains from failing with +# mkdir: cannot create directory ‘/test’: Permission denied +# reluctantly this phase is assigned +RESTRICT="test" + +src_prepare() { + sed -i \ + -e "s:/usr:${EPREFIX}/usr:g" \ + setup.py || die + # use /usr/share/data + sed -i \ + -e "/_datadir.*=.*join/s|\(.*datadir.*=\).*|\1'${EROOT}usr/share/${PN}'|g" \ + "${S}"/lib/mpl_toolkits/basemap/*.py || die + distutils-r1_src_prepare + append-flags -fno-strict-aliasing +} + +#src_test() { +# distutils_install_for_testing +#} + +python_install() { + # mpl_toolkits namespace provided by dev-python/matplotlib + rm "${BUILD_DIR}/lib/mpl_toolkits/__init__.py" || die + distutils-r1_python_install --skip-build + # --install-data="${EPREFIX}/usr/share/${PN}" on testing is found not to work; + # setup.py is a mess. Someone care to patch setup.py please proceed; substitute with + insinto /usr/share/basemap/ + doins lib/mpl_toolkits/basemap/data/* + + # respect FHS + rm -r "${D}$(python_get_sitedir)/mpl_toolkits/basemap/data" || die +} + +python_install_all() { + use examples && local EXAMPLES=( examples/. ) + distutils-r1_python_install_all +} -- cgit v1.2.3