Date: Monday, December 21, 2015 @ 12:24:40 Author: jelle Revision: 153828
archrelease: copy trunk to community-any Added: python-cherrypy/repos/community-any/PKGBUILD (from rev 153827, python-cherrypy/trunk/PKGBUILD) Deleted: python-cherrypy/repos/community-any/PKGBUILD ----------+ PKGBUILD | 128 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 64 insertions(+), 64 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2015-12-21 11:24:31 UTC (rev 153827) +++ PKGBUILD 2015-12-21 11:24:40 UTC (rev 153828) @@ -1,64 +0,0 @@ -# $Id$ -# Maintainer: Angel Velasquez <an...@archlinux.org> -# Contributor: Kaiting Chen <kaitocr...@gmail.com> -# Contributor: Douglas Soares de Andrade <d...@aur.archlinux.org> -# Contributor: Armando M. Baratti <amblis...@ajato.com.br> -# Contributor: Florian Richter <florian_rich...@gmx.de> -pkgname=('python-cherrypy' 'python2-cherrypy') -pkgver=3.8.0 -pkgrel=1 -pkgdesc="A pythonic, object-oriented web development framework" -arch=('any') -url="http://www.cherrypy.org" -license=('BSD') -makedepends=('python' 'python2') -source=("https://pypi.python.org/packages/source/C/CherryPy/CherryPy-${pkgver}.tar.gz") -md5sums=('542b96b2cd825e8120e8cd822bc18f4b') - -build() { - cp -r CherryPy-${pkgver} CherryPy2-${pkgver} - - cd CherryPy-${pkgver} - python ./setup.py build - - cd "${srcdir}/CherryPy2-${pkgver}" - sed \ - -e 's_#! /usr/bin/env python_&2_' \ - -i cherrypy/cherryd - sed \ - -e 's_#!/usr/bin/python_&2_' \ - -i cherrypy/test/sessiondemo.py - python2 ./setup.py build - -} - -package_python-cherrypy() { - depends=('python') - - cd CherryPy-${pkgver} - - python ./setup.py install --root="${pkgdir}" --optimize=1 - - install -Dm644 cherrypy/LICENSE.txt \ - "${pkgdir}/usr/share/licenses/python-cherrypy/LICENSE.txt" -} - -package_python2-cherrypy() { - depends=('python2') - - cd CherryPy2-${pkgver} - - python2 ./setup.py install --root="${pkgdir}" --optimize=1 - mv "${pkgdir}/usr/bin/cherryd" "${pkgdir}/usr/bin/cherryd2" - - install -Dm644 cherrypy/LICENSE.txt \ - "${pkgdir}/usr/share/licenses/python2-cherrypy/LICENSE.txt" -} - -check() { - cd CherryPy2-${pkgver} - python2 ./setup.py test - - cd ../CherryPy-${pkgver} - python3 ./setup.py check -} Copied: python-cherrypy/repos/community-any/PKGBUILD (from rev 153827, python-cherrypy/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2015-12-21 11:24:40 UTC (rev 153828) @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: Angel Velasquez <an...@archlinux.org> +# Contributor: Kaiting Chen <kaitocr...@gmail.com> +# Contributor: Douglas Soares de Andrade <d...@aur.archlinux.org> +# Contributor: Armando M. Baratti <amblis...@ajato.com.br> +# Contributor: Florian Richter <florian_rich...@gmx.de> +pkgname=('python-cherrypy' 'python2-cherrypy') +pkgver=3.8.1 +pkgrel=1 +pkgdesc="A pythonic, object-oriented web development framework" +arch=('any') +url="http://www.cherrypy.org" +license=('BSD') +makedepends=('python' 'python2') +source=("https://pypi.python.org/packages/source/C/CherryPy/CherryPy-${pkgver}.tar.gz") +md5sums=('919301731c9835cf7941f8bdc1aee9aa') + +build() { + cp -r CherryPy-${pkgver} CherryPy2-${pkgver} + + cd CherryPy-${pkgver} + python ./setup.py build + + cd "${srcdir}/CherryPy2-${pkgver}" + sed \ + -e 's_#! /usr/bin/env python_&2_' \ + -i cherrypy/cherryd + sed \ + -e 's_#!/usr/bin/python_&2_' \ + -i cherrypy/test/sessiondemo.py + python2 ./setup.py build + +} + +package_python-cherrypy() { + depends=('python') + + cd CherryPy-${pkgver} + + python ./setup.py install --root="${pkgdir}" --optimize=1 + + install -Dm644 cherrypy/LICENSE.txt \ + "${pkgdir}/usr/share/licenses/python-cherrypy/LICENSE.txt" +} + +package_python2-cherrypy() { + depends=('python2') + + cd CherryPy2-${pkgver} + + python2 ./setup.py install --root="${pkgdir}" --optimize=1 + mv "${pkgdir}/usr/bin/cherryd" "${pkgdir}/usr/bin/cherryd2" + + install -Dm644 cherrypy/LICENSE.txt \ + "${pkgdir}/usr/share/licenses/python2-cherrypy/LICENSE.txt" +} + +check() { + cd CherryPy2-${pkgver} + python2 ./setup.py test + + cd ../CherryPy-${pkgver} + python3 ./setup.py check +}