From de63f66340db28ccce620a3ba8d9488b4b4f295f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 20 Apr 2019 12:02:55 -0400 Subject: [PATCH] Import deps from testing --- sr.ht/py-beautifulsoup4/APKBUILD | 64 ++++++++++++++++++++++++++++++++ sr.ht/py-cairocffi/APKBUILD | 55 +++++++++++++++++++++++++++ sr.ht/py-pdfrw/APKBUILD | 50 +++++++++++++++++++++++++ sr.ht/py-pystache/APKBUILD | 2 +- sr.ht/py-webencodings/APKBUILD | 51 +++++++++++++++++++++++++ 5 files changed, 221 insertions(+), 1 deletion(-) create mode 100644 sr.ht/py-beautifulsoup4/APKBUILD create mode 100644 sr.ht/py-cairocffi/APKBUILD create mode 100644 sr.ht/py-pdfrw/APKBUILD create mode 100644 sr.ht/py-webencodings/APKBUILD diff --git a/sr.ht/py-beautifulsoup4/APKBUILD b/sr.ht/py-beautifulsoup4/APKBUILD new file mode 100644 index 0000000..caf16d4 --- /dev/null +++ b/sr.ht/py-beautifulsoup4/APKBUILD @@ -0,0 +1,64 @@ +# Contributor: Fabian Affolter +# Maintainer: Fabian Affolter +pkgname=py-beautifulsoup4 +_pkgname=beautifulsoup4 +pkgver=4.6.1 +pkgrel=1 +pkgdesc="A Python HTML/XML parser" +url="http://www.crummy.com/software/BeautifulSoup/index.html" +arch="noarch" +license="MIT" +makedepends="python2-dev py-setuptools python3-dev" +subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +prepare() { + default_prepare + + local python; for python in python2 python3; do + cp -r "$builddir" "$builddir-$python" + done + + cd "$builddir-python3" + 2to3 -w bs4 >/dev/null +} + +build() { + local python; for python in python2 python3; do + cd "$builddir-$python" + $python setup.py build + done +} + +check() { + local python; for python in python2 python3; do + cd "$builddir-$python" + $python -c "import bs4" + done +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir-$python" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="598f6be620d6c656bdab6d0d6e767a1ffc695a790dc5e3e8cc0f411555de1c52ef1972c93d0916135375c74e5272dd112f00e5ed2fb12a12c90d5d30d852e91c beautifulsoup4-4.6.1.tar.gz" diff --git a/sr.ht/py-cairocffi/APKBUILD b/sr.ht/py-cairocffi/APKBUILD new file mode 100644 index 0000000..f5dddcb --- /dev/null +++ b/sr.ht/py-cairocffi/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: +# Contributor: Stefan Wagner +# Maintainer: Stefan Wagner +pkgname=py-cairocffi +_pkgname=cairocffi +pkgver=0.9.0 +pkgrel=1 +pkgdesc="Python CFFI-based binding to Cairo and GDK-PixBuf" +url="https://pythonhosted.org/cairocffi/" +arch="noarch" +license="BSD" +depends="py-cffi cairo gdk-pixbuf" +checkdepends="pytest pytest-cov ttf-dejavu" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 setup.py test + python3 setup.py test +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + + +sha512sums="0d3d54e0d54b3696c8336d8b3a6d745628da51d9d9f8c50f36006c007e1432a95dd9bafd8d865923059d040cc4e9f7989b3670a5318383b357ffc979eeb920d5 cairocffi-0.9.0.tar.gz" diff --git a/sr.ht/py-pdfrw/APKBUILD b/sr.ht/py-pdfrw/APKBUILD new file mode 100644 index 0000000..75063b8 --- /dev/null +++ b/sr.ht/py-pdfrw/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Roberto Oliveira +# Maintainer: Roberto Oliveira +pkgname=py-pdfrw +_pkgname=pdfrw +pkgver=0.4 +pkgrel=1 +pkgdesc="Python library that reads and writes PDFs" +url="https://github.com/pmaupin/pdfrw" +arch="noarch" +license="MIT" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" +source="$pkgname-$pkgver.tar.gz::https://github.com/pmaupin/pdfrw/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 setup.py check + python3 setup.py check +} + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + _py python2 +} + +_py3() { + _py python3 +} + +sha512sums="b80c703b0c72fd49af6fe8c206fd626c51e6786e3cf40f9f01ea9e8a5a0e15bedd08181fd808e96eb432f3a408112314706680bcc08e5d4ac273517538cd6608 py-pdfrw-0.4.tar.gz" diff --git a/sr.ht/py-pystache/APKBUILD b/sr.ht/py-pystache/APKBUILD index 1b2bdbd..33f085a 100644 --- a/sr.ht/py-pystache/APKBUILD +++ b/sr.ht/py-pystache/APKBUILD @@ -4,7 +4,7 @@ pkgname=py-pystache _realname=pystache pkgver=0.5.4 -pkgrel=0 +pkgrel=1 pkgdesc="Pystache is a Python implementation of Mustache." url="https://pypi.python.org/pypi/pystache" arch="noarch" diff --git a/sr.ht/py-webencodings/APKBUILD b/sr.ht/py-webencodings/APKBUILD new file mode 100644 index 0000000..77eeb0a --- /dev/null +++ b/sr.ht/py-webencodings/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Stefan Wagner +# Maintainer: Stefan Wagner +pkgname=py-webencodings +_pkgname=webencodings +pkgver=0.5.1 +pkgrel=1 +pkgdesc="Character encoding for the web" +url="https://github.com/gsnedders/python-webencodings" +arch="noarch" +license="MIT" +makedepends="python2-dev python3-dev py-setuptools" +subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3" +source="$_pkgname-$pkgver.tar.gz::https://github.com/gsnedders/python-$_pkgname/archive/v$pkgver.tar.gz" +builddir="$srcdir"/python-$_pkgname-$pkgver + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +check() { + cd "$builddir" + python2 setup.py test + python3 setup.py test +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} +sha512sums="c5cb34f35fb5bc7ffb88c19eb3262dedbf6231c0ee2871dccbc0f9497193d8209fc20703d451a2bb41a5ff913e63abf7481f7a8f9886c953724e9cf71c34cb74 webencodings-0.5.1.tar.gz" -- 2.45.2