Date: Friday, May 8, 2015 @ 11:32:41 Author: fyan Revision: 132944 addpkg: python-w3lib 1.11.0-1
Added: python-w3lib/ python-w3lib/repos/ python-w3lib/trunk/ python-w3lib/trunk/LICENSE python-w3lib/trunk/PKGBUILD ----------+ LICENSE | 27 +++++++++++++++++++++++++++ PKGBUILD | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) Added: python-w3lib/trunk/LICENSE =================================================================== --- python-w3lib/trunk/LICENSE (rev 0) +++ python-w3lib/trunk/LICENSE 2015-05-08 09:32:41 UTC (rev 132944) @@ -0,0 +1,27 @@ +Copyright (c) w3lib and Scrapy developers. +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + 3. Neither the name of Scrapy nor the names of its contributors may be used + to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Added: python-w3lib/trunk/PKGBUILD =================================================================== --- python-w3lib/trunk/PKGBUILD (rev 0) +++ python-w3lib/trunk/PKGBUILD 2015-05-08 09:32:41 UTC (rev 132944) @@ -0,0 +1,48 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Bence Balint <balintbence1...@gmail.com> + +pkgbase=python-w3lib +pkgname=('python-w3lib' 'python2-w3lib') +pkgver=1.11.0 +pkgrel=1 +pkgdesc="Library of web-related functions" +arch=('any') +license=('BSD') +url="http://w3lib.readthedocs.org" +makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six') +# checkdepends=('python-pytest' 'python2-pytest') +source=("https://pypi.python.org/packages/source/w/w3lib/w3lib-${pkgver}.tar.gz" + LICENSE) +md5sums=('0ecadf121a90f1ac182b739a7d028ae2' + '8a9dbf92a1904187a362d3fe098d4a1f') + +prepare() { + cp -a w3lib-$pkgver{,-py2} +} + +check() { + # Tests not included + + cd "$srcdir/w3lib-${pkgver}" + # py.test + + cd "$srcdir/w3lib-${pkgver}-py2" + # py.test2 +} + +package_python-w3lib() { + depends=('python-six') + + cd "${srcdir}/w3lib-${pkgver}" + python setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} + +package_python2-w3lib() { + depends=('python2-six') + + cd "${srcdir}/w3lib-${pkgver}-py2" + python2 setup.py install --root="${pkgdir}" --optimize=1 + install -D -m644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} Property changes on: python-w3lib/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property