[arch-commits] Commit in python-lxml/repos (4 files)

Felix Yan felixonmars at archlinux.org
Tue Dec 13 07:25:54 UTC 2016


    Date: Tuesday, December 13, 2016 @ 07:25:53
  Author: felixonmars
Revision: 283094

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  python-lxml/repos/testing-i686/
  python-lxml/repos/testing-i686/PKGBUILD
    (from rev 283093, python-lxml/trunk/PKGBUILD)
  python-lxml/repos/testing-x86_64/
  python-lxml/repos/testing-x86_64/PKGBUILD
    (from rev 283093, python-lxml/trunk/PKGBUILD)

-------------------------+
 testing-i686/PKGBUILD   |   92 ++++++++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD |   92 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 184 insertions(+)

Copied: python-lxml/repos/testing-i686/PKGBUILD (from rev 283093, python-lxml/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-12-13 07:25:53 UTC (rev 283094)
@@ -0,0 +1,92 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-lxml
+pkgname=('python-lxml' 'python2-lxml' 'python-lxml-docs')
+pkgver=3.7.0
+pkgrel=1
+arch=('i686' 'x86_64')
+license=('BSD' 'custom')
+url="http://lxml.de/"
+makedepends=('libxslt' 'python-cssselect' 'python2-cssselect')
+source=("https://pypi.io/packages/source/l/lxml/lxml-${pkgver}.tar.gz"{,.asc})
+md5sums=('b78e6f7e859c2ff57add7f63a5e387b7'
+         'SKIP')
+validpgpkeys=('1737D5FB8DACC53CA96A77AB0D3D536908D3A01E')  # Stefan Behnel
+
+prepare() {
+  cp -a lxml-$pkgver{,-py2}
+
+  # Setting LC_CTYPE to workaround encoding issue
+  export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+  cd "$srcdir"/lxml-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/lxml-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  # TODO: Find a sane way to skip inplace build
+
+  # Current failure: https://bugs.launchpad.net/lxml/+bug/1608479
+
+  cd "$srcdir"/lxml-$pkgver
+  make PYTHON=python test || warning "Tests failed"
+
+  cd "$srcdir"/lxml-$pkgver-py2
+  make PYTHON=python2 test || warning "Tests failed"
+}
+
+package_python2-lxml() {
+  pkgdesc="Python2 binding for the libxml2 and libxslt libraries"
+  depends=('python2' 'libxslt')
+  optdepends=('python2-beautifulsoup3: support for parsing not well formed HTML'
+              'python-lxml-docs: offline docs')
+
+  cd lxml-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
+ 
+  install -Dm644 LICENSES.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 doc/licenses/BSD.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt
+  install -Dm644 doc/licenses/elementtree.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt
+}
+
+package_python-lxml() {
+  pkgdesc="Python3 binding for the libxml2 and libxslt libraries"
+  depends=('python' 'libxslt')
+  optdepends=('python-lxml-docs: offline docs')
+
+  cd lxml-$pkgver
+  python setup.py install --root="$pkgdir" --skip-build --optimize=1
+  
+  install -Dm644 LICENSES.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 doc/licenses/BSD.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt
+  install -Dm644 doc/licenses/elementtree.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt
+}
+
+package_python-lxml-docs() {
+  pkgdesc="Python binding for the libxml2 and libxslt libraries (docs)"
+  options=('docs')
+
+  cd lxml-$pkgver
+  install -d "$pkgdir"/usr/share/doc/$pkgbase
+  cp -r doc/html "$pkgdir"/usr/share/doc/$pkgbase
+
+  install -Dm644 LICENSES.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 doc/licenses/BSD.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt
+  install -Dm644 doc/licenses/elementtree.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt
+}

Copied: python-lxml/repos/testing-x86_64/PKGBUILD (from rev 283093, python-lxml/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-12-13 07:25:53 UTC (rev 283094)
@@ -0,0 +1,92 @@
+# $Id$
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-lxml
+pkgname=('python-lxml' 'python2-lxml' 'python-lxml-docs')
+pkgver=3.7.0
+pkgrel=1
+arch=('i686' 'x86_64')
+license=('BSD' 'custom')
+url="http://lxml.de/"
+makedepends=('libxslt' 'python-cssselect' 'python2-cssselect')
+source=("https://pypi.io/packages/source/l/lxml/lxml-${pkgver}.tar.gz"{,.asc})
+md5sums=('b78e6f7e859c2ff57add7f63a5e387b7'
+         'SKIP')
+validpgpkeys=('1737D5FB8DACC53CA96A77AB0D3D536908D3A01E')  # Stefan Behnel
+
+prepare() {
+  cp -a lxml-$pkgver{,-py2}
+
+  # Setting LC_CTYPE to workaround encoding issue
+  export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+  cd "$srcdir"/lxml-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/lxml-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  # TODO: Find a sane way to skip inplace build
+
+  # Current failure: https://bugs.launchpad.net/lxml/+bug/1608479
+
+  cd "$srcdir"/lxml-$pkgver
+  make PYTHON=python test || warning "Tests failed"
+
+  cd "$srcdir"/lxml-$pkgver-py2
+  make PYTHON=python2 test || warning "Tests failed"
+}
+
+package_python2-lxml() {
+  pkgdesc="Python2 binding for the libxml2 and libxslt libraries"
+  depends=('python2' 'libxslt')
+  optdepends=('python2-beautifulsoup3: support for parsing not well formed HTML'
+              'python-lxml-docs: offline docs')
+
+  cd lxml-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
+ 
+  install -Dm644 LICENSES.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 doc/licenses/BSD.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt
+  install -Dm644 doc/licenses/elementtree.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt
+}
+
+package_python-lxml() {
+  pkgdesc="Python3 binding for the libxml2 and libxslt libraries"
+  depends=('python' 'libxslt')
+  optdepends=('python-lxml-docs: offline docs')
+
+  cd lxml-$pkgver
+  python setup.py install --root="$pkgdir" --skip-build --optimize=1
+  
+  install -Dm644 LICENSES.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 doc/licenses/BSD.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt
+  install -Dm644 doc/licenses/elementtree.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt
+}
+
+package_python-lxml-docs() {
+  pkgdesc="Python binding for the libxml2 and libxslt libraries (docs)"
+  options=('docs')
+
+  cd lxml-$pkgver
+  install -d "$pkgdir"/usr/share/doc/$pkgbase
+  cp -r doc/html "$pkgdir"/usr/share/doc/$pkgbase
+
+  install -Dm644 LICENSES.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 doc/licenses/BSD.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/BSD.txt
+  install -Dm644 doc/licenses/elementtree.txt \
+    "$pkgdir"/usr/share/licenses/$pkgname/elementtree.txt
+}



More information about the arch-commits mailing list