From 1b71208fabb93cbb534753c24ad145529146ce56 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Wed, 4 Nov 2020 14:38:44 -0500 Subject: [PATCH] python3-kiwisolver: update to 1.3.1. --- srcpkgs/python3-kiwisolver/template | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/srcpkgs/python3-kiwisolver/template b/srcpkgs/python3-kiwisolver/template index e2d483ea9f5..0b947591cb0 100644 --- a/srcpkgs/python3-kiwisolver/template +++ b/srcpkgs/python3-kiwisolver/template @@ -1,22 +1,26 @@ # Template file for 'python3-kiwisolver' pkgname=python3-kiwisolver -version=1.0.1 -revision=5 +version=1.3.1 +revision=1 wrksrc="kiwisolver-${version}" build_style=python3-module -hostmakedepends="python3-setuptools" -makedepends="python3-devel" +hostmakedepends="python3-setuptools python3-cppy" +makedepends="python3-devel python3-cppy" short_desc="Fast implementation of the Cassowary constraint solver (Python3)" maintainer="Orphaned " license="BSD-3-Clause" homepage="https://github.com/nucleic/kiwi" distfiles="${PYPI_SITE}/k/kiwisolver/kiwisolver-${version}.tar.gz" -checksum=ce3be5d520b4d2c3e5eeb4cd2ef62b9b9ab8ac6b6fedbaa0e39cdb6f50644278 +checksum=950a199911a8d94683a6b10321f9345d5a3a8433ec58b217ace979e18f16e248 -pre_build() { - # remove dependency on setuptools; it's not a runtime dependency - sed -i '/install_requires/d' setup.py +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 COPYING.txt LICENSE + vlicense LICENSE }