aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-waitress/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-07-13 23:03:23 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-07-13 23:04:00 +0200
commitf37f536b6c15f8488fb1263e825e5e8ddadc5f80 (patch)
tree66f858aa0278173283576b5c585049c6b18ec5cf /testing/py-waitress/APKBUILD
parent142873633d4ae1d139e12289e8ce50e960839447 (diff)
downloadaports-f37f536b6c15f8488fb1263e825e5e8ddadc5f80.tar.bz2
aports-f37f536b6c15f8488fb1263e825e5e8ddadc5f80.tar.xz
community/py-waitress: move from testing
Diffstat (limited to 'testing/py-waitress/APKBUILD')
-rw-r--r--testing/py-waitress/APKBUILD69
1 files changed, 0 insertions, 69 deletions
diff --git a/testing/py-waitress/APKBUILD b/testing/py-waitress/APKBUILD
deleted file mode 100644
index e54d95b528..0000000000
--- a/testing/py-waitress/APKBUILD
+++ /dev/null
@@ -1,69 +0,0 @@
-# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
-# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-waitress
-_pkgname=waitress
-pkgver=1.0.2
-pkgrel=1
-pkgdesc="A Python WSGI server"
-url="https://github.com/Pylons/waitress"
-arch="noarch"
-license="ZPL-2.1"
-checkdepends="py-nose"
-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
- waitress.initd
- waitress.confd"
-builddir="$srcdir/$_pkgname-$pkgver"
-
-build() {
- cd "$builddir"
-
- python2 setup.py build
- python3 setup.py build
-}
-
-check() {
- cd "$builddir"
-
- # XXX: Some tests fail on python2 with "No file descriptors available".
- python3 setup.py test
-}
-
-package() {
- mkdir -p "$pkgdir"/usr/bin
- cd "$pkgdir"
-
- ln -s waitress-serve-3 usr/bin/waitress-serve
-
- install -D -m 755 "$srcdir"/waitress.initd etc/init.d/waitress
- install -D -m 644 "$srcdir"/waitress.confd etc/conf.d/waitress
-}
-
-_py2() {
- replaces="$pkgname"
- _py python2
-}
-
-_py3() {
- _py python3
-}
-
-_py() {
- local python="$1"
- local pyver="${python#python}"
- pkgdesc="$pkgdesc (for $python)"
- depends="$python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
-
- cd "$subpkgdir"
- mv usr/bin/waitress-serve usr/bin/waitress-serve-$pyver
- rm -R usr/lib/python$pyver*/site-packages/$_pkgname/tests
-}
-
-sha512sums="b7000e1198ac306ce189f70c5dcfcf41318e5ec47c8d6183cdbc360c8759ca726405d5da70f1c7fe3cfeb39d528af94d693767c2a7a1a7fe460c6407857ec6f0 waitress-1.0.2.tar.gz
-d91df5fcd7e1224b1c5808402270edea5638cb958ce9fc5a5a2bdf69d12f1a4632679af7727f8ddabc222b1eb2152509ae06a8d194eace0dc32380b21195ecba waitress.initd
-93d3abe2226a396c60435875d3fefbdc0eaff2b5e6d7e98d33944f9b8167bf965ae20bb967407de668726cef2ab824b5a11e8c8b7babbc94ba0e451f07f6a178 waitress.confd"