python-cairocffi: drop package

This commit is contained in:
Đoàn Trần Công Danh 2020-09-20 17:39:44 +07:00
parent c3ae34ab88
commit 69ac7adbe0
4 changed files with 26 additions and 38 deletions

View file

@ -1,37 +0,0 @@
# Template file for 'python-cairocffi'
pkgname=python-cairocffi
version=0.9.0
revision=3
archs=noarch
wrksrc="cairocffi-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools python-cffi python3-cffi"
depends="python-cffi cairo gdk-pixbuf"
checkdepends="python-more-itertools python-parsing python-scandir python-pytest cairo gdk-pixbuf"
short_desc="CFFI-based cairo bindings for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/Kozea/cairocffi"
distfiles="${PYPI_SITE}/c/cairocffi/cairocffi-${version}.tar.gz"
checksum=15386c3a9e08823d6826c4491eaccc7b7254b1dc587a3b9ce60c350c3f990337
pre_check() {
export PY_IGNORE_IMPORTMISMATCH=1
vsed -e s/test_scaled_font/scaled_font/ -i build-2.7/lib/cairocffi/test_cairo.py
vsed -e s/test_context_font/context_font/ -i build-2.7/lib/cairocffi/test_cairo.py
}
post_install() {
vlicense LICENSE
}
python3-cairocffi_package() {
archs=noarch
depends="python3-cffi cairo"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}

View file

@ -1 +0,0 @@
python-cairocffi

View file

@ -0,0 +1,26 @@
# Template file for 'python3-cairocffi'
pkgname=python3-cairocffi
version=0.9.0
revision=4
wrksrc="cairocffi-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-cffi"
depends="python3-cffi cairo"
checkdepends="cairo gdk-pixbuf"
short_desc="CFFI-based cairo bindings for Python3"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/Kozea/cairocffi"
distfiles="${PYPI_SITE}/c/cairocffi/cairocffi-${version}.tar.gz"
checksum=15386c3a9e08823d6826c4491eaccc7b7254b1dc587a3b9ce60c350c3f990337
pre_check() {
export PY_IGNORE_IMPORTMISMATCH=1
vsed -e s/test_scaled_font/scaled_font/ -i build-2.7/lib/cairocffi/test_cairo.py
vsed -e s/test_context_font/context_font/ -i build-2.7/lib/cairocffi/test_cairo.py
}
post_install() {
vlicense LICENSE
}