[arch-commits] Commit in python-html5lib/repos (3 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Sep 20 06:01:29 UTC 2015
Date: Sunday, September 20, 2015 @ 08:01:29
Author: foutrelis
Revision: 141181
archrelease: copy trunk to community-staging-any
Added:
python-html5lib/repos/community-staging-any/
python-html5lib/repos/community-staging-any/LICENSE
(from rev 141180, python-html5lib/trunk/LICENSE)
python-html5lib/repos/community-staging-any/PKGBUILD
(from rev 141180, python-html5lib/trunk/PKGBUILD)
----------+
LICENSE | 17 +++++++++++++++++
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 59 insertions(+)
Copied: python-html5lib/repos/community-staging-any/LICENSE (from rev 141180, python-html5lib/trunk/LICENSE)
===================================================================
--- community-staging-any/LICENSE (rev 0)
+++ community-staging-any/LICENSE 2015-09-20 06:01:29 UTC (rev 141181)
@@ -0,0 +1,17 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
Copied: python-html5lib/repos/community-staging-any/PKGBUILD (from rev 141180, python-html5lib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-20 06:01:29 UTC (rev 141181)
@@ -0,0 +1,42 @@
+# Contributor: Erol V. Aktay <e.aktay at gmail.com>
+# Maintainer: Daniel J Griffiths <ghost1227 at archlinux.us>
+
+pkgbase=python-html5lib
+pkgname=('python2-html5lib' 'python-html5lib')
+pkgver=0.9999999
+pkgrel=2
+arch=('any')
+url="https://github.com/html5lib"
+license=('MIT')
+makedepends=('python2' 'python' 'unzip')
+checkdepends=('python-nose' 'python2-nose' 'python-six' 'python2-six')
+source=($pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz
+ LICENSE)
+md5sums=('2ca78b1ec5852779bc121a97da6e8d4d'
+ '838c366f69b72c5df05c96dff79b35f2')
+
+package_python-html5lib() {
+pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec"
+depends=('python' 'python-six')
+ cd ${srcdir}/html5lib-python-${pkgver}
+
+ python3 setup.py install --root=${pkgdir}
+ install -Dm755 $srcdir/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-html5lib() {
+depends=('python2' 'python2-six')
+pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec"
+ cd ${srcdir}/html5lib-python-${pkgver}
+
+ python2 setup.py install --root=${pkgdir}
+ install -Dm755 $srcdir/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}
+
+check() {
+ cd ${srcdir}/html5lib-python-${pkgver}/html5lib/tests
+
+ nosetests2
+
+ nosetests
+}
More information about the arch-commits
mailing list