# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{10..13} )
DISTUTILS_EXT=1
inherit distutils-r1

DESCRIPTION="Plot on map projections "
HOMEPAGE="https://matplotlib.org/basemap/stable/"
SRC_URI="https://github.com/matplotlib/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${P}/packages/${PN}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	sci-libs/geos
	dev-python/matplotlib
	dev-python/numpy
	dev-python/pyproj
	sci-libs/pyshp
	dev-python/basemap-data
	dev-python/basemap-data-hires
"

PATCHES=(
	"${FILESDIR}/namespace-change.patch"
)

DEPEND="${RDEPEND}"
BDEPEND="
	dev-python/cython
"