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