mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-22 10:45:15 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
49 lines
1.6 KiB
Text
49 lines
1.6 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
|
|
pkgname=py3-pyclipper
|
|
_pyname=pyclipper
|
|
pkgver=1.3.0
|
|
pkgrel=0
|
|
pkgdesc="Cython wrapper for clipper"
|
|
url="https://github.com/fonttools/pyclipper"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools py3-setuptools_scm python3-dev cython clipper-dev"
|
|
checkdepends="py3-pytest py3-pytest-runner"
|
|
source="https://files.pythonhosted.org/packages/source/p/$_pyname/$_pyname-$pkgver.zip
|
|
10-system-libs.patch
|
|
disable-broken-test.patch
|
|
use-unittest-instead-of-unittest2.patch
|
|
"
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
# For system-wide consistency, and to save installation space,
|
|
# we use the shared library from Alpine package "clipper".
|
|
rm src/clipper.cpp src/clipper.hpp
|
|
|
|
# force cython regen
|
|
touch dev
|
|
rm src/pyclipper/_pyclipper.cpp
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build_ext
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
b9df4932bf96ed3baab1fa133bec1fc4bec77eb5dd9e3f60f8f4da4bfe2ac97ca64ba1abf74d13dc6183e84c4c7ae3d11e3ec74a7c9e48724ddb15189c3c0128 pyclipper-1.3.0.zip
|
|
b45fdd6449a07e17d22c936353de42da6bc00a48c25abe886249fedbde700f7032bc8c05c2c6ef26748f074931907cf453ae1c8bbce82f90d945991fff9e0c05 10-system-libs.patch
|
|
06ced9f3410f436986109a7f0d54ccdd69597e75fb44c26d9dd1909b59a1a987f07ad55d2a0e24d114f2af31b3aa51cd6f44d7fe1658a625ac53e33bef379d8a disable-broken-test.patch
|
|
8573fbd7b56a61ac3836449ce7298963d46d081d402590e4ac781cebb3f4b1d92ef6ffd089d0a5d1cfaf6cb0ebf0230faa13a1fa0ace0f55e8c7907f94787dbf use-unittest-instead-of-unittest2.patch
|
|
"
|