36 lines
1023 B
Bash
36 lines
1023 B
Bash
# Template file for 'python3-shapely'
|
|
pkgname=python3-shapely
|
|
version=1.8.0
|
|
revision=2
|
|
wrksrc="Shapely-${version}"
|
|
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"
|
|
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/Toblerity/Shapely"
|
|
distfiles="https://github.com/Toblerity/Shapely/archive/${version}.tar.gz"
|
|
checksum=492d4207b20541e3d0f31c238e07d2f55fe5e00afcfd12390bf55737901fce91
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
sed "
|
|
/^prefix=/s,=.*,=$XBPS_CROSS_BASE/usr,
|
|
s,echo [\$]{prefix}$,echo /usr,
|
|
" $XBPS_CROSS_BASE/usr/bin/geos-config >$XBPS_WRAPPERDIR/geos-config
|
|
chmod +x $XBPS_WRAPPERDIR/geos-config
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
do_check() {
|
|
python3 -m pytest tests/
|
|
}
|