summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-10-12 19:10:51 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-10-12 19:10:51 (GMT)
commit493d80e618d8e685707be3425719933ba3f9146c (patch)
tree7cb6eb14420acf8cecb2f11de08f0ed794f4afe3 /abs
parent401d16a21ac9c9840ab10f523e635a1424694045 (diff)
downloadlinhes_pkgbuild-493d80e618d8e685707be3425719933ba3f9146c.zip
linhes_pkgbuild-493d80e618d8e685707be3425719933ba3f9146c.tar.gz
linhes_pkgbuild-493d80e618d8e685707be3425719933ba3f9146c.tar.bz2
python-bottle: initial inclusion
Diffstat (limited to 'abs')
-rw-r--r--abs/core/python_modules/python-bottle/PKGBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-bottle/PKGBUILD b/abs/core/python_modules/python-bottle/PKGBUILD
new file mode 100644
index 0000000..ffc7340
--- /dev/null
+++ b/abs/core/python_modules/python-bottle/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Richard Murri <admin@richardmurri.com>
+# Contributor: Farhad Shahbazi <farhad@enthusiasm.cc>
+# Contributor: Felix Kaiser <felix.kaiser@fxkr.net>
+
+pkgbase=python-bottle
+pkgname=("python-bottle" "python2-bottle")
+pkgver=0.12.13
+pkgrel=2
+pkgdesc="A fast and simple micro-framework for small web-applications"
+arch=(any)
+url="http://bottlepy.org"
+license=('MIT')
+options=(!emptydirs)
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-mako' 'python2-mako' 'python-jinja' 'python2-jinja' 'python-cherrypy'
+ 'python2-cherrypy' 'python-twisted' 'python2-twisted' 'python-tornado'
+ 'python2-tornado' 'python-paste' 'python2-paste' 'python-gevent' 'python2-gevent'
+ 'python-eventlet' 'python2-eventlet')
+source=("git+https://github.com/defnull/bottle.git#tag=${pkgver}")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a bottle{,-py2}
+ sed -i "1s/python/python2/" bottle-py2/bottle.py
+}
+
+check() {
+ cd "$srcdir/"bottle
+ # https://github.com/bottlepy/bottle/issues/791
+ python test/testall.py || warning 'Tests failed'
+
+ cd "$srcdir/"bottle-py2
+ python2 test/testall.py
+}
+
+package_python-bottle() {
+ depends=('python')
+
+ cd bottle
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-bottle() {
+ depends=('python2')
+
+ cd bottle-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ # deal with conflict with python-bottle's /usr/bin/bottle.py
+ mv "$pkgdir"/usr/bin/bottle.py{,2}
+}