aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorxming <xmingske@gmail.com>2014-10-22 11:29:27 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2014-10-23 10:19:13 +0200
commit5685f5f5f9e40c92d35d5eba02f888adaea4cd45 (patch)
tree18d96c025adde7a1bdc04fdcba6ddca946130e38 /testing
parent97256f2f1667a8b5c61b7b131cd157533ac9136e (diff)
downloadaports-5685f5f5f9e40c92d35d5eba02f888adaea4cd45.tar.bz2
aports-5685f5f5f9e40c92d35d5eba02f888adaea4cd45.tar.xz
testing/py-gunicorn: new aport
a Python WSGI HTTP Server https://github.com/benoitc/gunicorn/
Diffstat (limited to 'testing')
-rw-r--r--testing/py-gunicorn/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/py-gunicorn/APKBUILD b/testing/py-gunicorn/APKBUILD
new file mode 100644
index 0000000000..c0b47692f1
--- /dev/null
+++ b/testing/py-gunicorn/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: <xmingske@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_pkgname=gunicorn
+pkgname=py-${_pkgname}
+pkgver=19.1.1
+pkgrel=0
+pkgdesc="a Python WSGI HTTP Server"
+url="https://github.com/benoitc/gunicorn/"
+arch="noarch"
+license="BSD"
+makedepends="python-dev py-setuptools"
+source="$pkgname-$pkgver.tar.gz::https://github.com/benoitc/$_pkgname/archive/${pkgver}.tar.gz"
+
+_builddir="${srcdir}/${_pkgname}-${pkgver}"
+
+prepare() {
+ local pf
+ cd "${_builddir}"
+ for pf in $source; do
+ case $pf in
+ *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "${_builddir}"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "${_builddir}"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="d6d80c5991428b06e3826c8ca695e417 py-gunicorn-19.1.1.tar.gz"
+sha256sums="c2e131808f9afaa3dc273c039d4f49d08b6f614a15004cabb0f0f40f27f06598 py-gunicorn-19.1.1.tar.gz"
+sha512sums="f36a4d89efffaa0be04488bad84ede52af8f32a953772af17ca227279c12e8ad095a13a762f645a74187f5d86eef61c4d22fe632d9da244da5d237b0c0e32705 py-gunicorn-19.1.1.tar.gz"