37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Template file for 'python3-shapely'
|
|
pkgname=python3-shapely
|
|
version=2.0.1
|
|
revision=1
|
|
build_style=python3-module
|
|
build_helper=numpy
|
|
hostmakedepends="python3-setuptools python3-Cython 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=6250e79ca299222a239ce44df613d228f1216c5cc31351217bf377b03d7be4e0
|
|
|
|
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
|
|
}
|