python3-shapely: cross-compile
This commit is contained in:
parent
431e204fa1
commit
1a84c6a619
1 changed files with 16 additions and 2 deletions
|
@ -5,7 +5,8 @@ version=1.7.0
|
|||
revision=1
|
||||
wrksrc="Shapely-${version}"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools python3-Cython"
|
||||
build_helper=numpy
|
||||
hostmakedepends="python3-setuptools python3-Cython geos"
|
||||
makedepends="python3-devel python3-numpy geos-devel"
|
||||
checkdepends="python3-pytest"
|
||||
short_desc="Library for manipulation and analysis of geometric objects for Python3"
|
||||
|
@ -14,7 +15,20 @@ license="BSD-3-Clause"
|
|||
homepage="https://github.com/Toblerity/Shapely"
|
||||
distfiles="https://github.com/Toblerity/Shapely/archive/${version}.tar.gz"
|
||||
checksum=0f4283d5591578340e36f649736b496d25a793a45b9a2c93b128d2a856f2089b
|
||||
nocross="Build is crazy"
|
||||
|
||||
if [ "$XBPS_TARGET_MACHINE" = "aarch64-musl" ]; then
|
||||
broken="aarch64-musl's geos crashes"
|
||||
fi
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue