python3-shapely: update to 2.0.1.

This commit is contained in:
Andrew J. Hesford 2023-01-30 22:55:37 -05:00 committed by Andrew J. Hesford
parent 786bf17fb8
commit 514b5235f3

View file

@ -1,31 +1,36 @@
# Template file for 'python3-shapely' # Template file for 'python3-shapely'
pkgname=python3-shapely pkgname=python3-shapely
version=1.8.5.post1 version=2.0.1
revision=1 revision=1
build_style=python3-module build_style=python3-module
build_helper=numpy build_helper=numpy
make_check_target=tests
hostmakedepends="python3-setuptools python3-Cython geos" hostmakedepends="python3-setuptools python3-Cython geos"
makedepends="python3-devel python3-numpy geos-devel" makedepends="python3-devel python3-numpy geos-devel"
depends="python3" depends="python3"
checkdepends="python3-pytest" checkdepends="python3-pytest-xdist"
short_desc="Library for manipulation and analysis of geometric objects for Python3" short_desc="Library for manipulation and analysis of geometric objects for Python3"
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>" maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
license="BSD-3-Clause" license="BSD-3-Clause"
homepage="https://github.com/shapely/shapely" homepage="https://github.com/shapely/shapely"
distfiles="https://github.com/shapely/shapely/archive/${version}.tar.gz" distfiles="https://github.com/shapely/shapely/archive/${version}.tar.gz"
checksum=51badb76fa13ce1d4d6e5b2cbfef2b6af0ddae56a4449b84c3f3e6f404c6b43c checksum=6250e79ca299222a239ce44df613d228f1216c5cc31351217bf377b03d7be4e0
pre_configure() { pre_configure() {
if [ "$CROSS_BUILD" ]; then if [ "$CROSS_BUILD" ]; then
sed " local _wrapper="${XBPS_WRAPPERDIR}/geos-config"
/^prefix=/s,=.*,=$XBPS_CROSS_BASE/usr,
s,echo [\$]{prefix}$,echo /usr, sed -e 's,echo [$]{prefix}$,echo /usr,' \
" $XBPS_CROSS_BASE/usr/bin/geos-config >$XBPS_WRAPPERDIR/geos-config -e "/^prefix=/s,=.*,=\"${XBPS_CROSS_BASE}/usr\"," \
chmod +x $XBPS_WRAPPERDIR/geos-config "${XBPS_CROSS_BASE}/usr/bin/geos-config" > "${_wrapper}"
chmod +x "${_wrapper}"
fi fi
} }
do_check() {
cd build/lib*
PYTHONPATH="${PWD}" python3 -m pytest -n "${XBPS_MAKEJOBS}" shapely/tests
}
post_install() { post_install() {
vlicense LICENSE.txt LICENSE vlicense LICENSE.txt LICENSE
} }