void-packages/srcpkgs/python3-kiwisolver/template
2021-10-09 08:00:39 -04:00

26 lines
830 B
Bash

# Template file for 'python3-kiwisolver'
pkgname=python3-kiwisolver
version=1.3.1
revision=2
wrksrc="kiwisolver-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-cppy"
makedepends="python3-devel python3-cppy"
short_desc="Fast implementation of the Cassowary constraint solver (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/nucleic/kiwi"
distfiles="${PYPI_SITE}/k/kiwisolver/kiwisolver-${version}.tar.gz"
checksum=950a199911a8d94683a6b10321f9345d5a3a8433ec58b217ace979e18f16e248
post_patch() {
# When cross building, make sure target cppy headers are used
if [ -n "${XBPS_CROSS_BASE}" ]; then
vsed -i setup.py \
-e "s@cppy.get_include()@&.replace('/usr/', '${XBPS_CROSS_BASE}/usr/')@"
fi
}
post_install() {
vlicense LICENSE
}