[arch-commits] Commit in python-lxml/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Jul 12 17:10:17 UTC 2017
Date: Wednesday, July 12, 2017 @ 17:10:16
Author: felixonmars
Revision: 300159
upgpkg: python-lxml 3.8.0-2
adjust optdepends, checkdepends, makedepends, and fix metadata generation
Modified:
python-lxml/trunk/PKGBUILD
----------+
PKGBUILD | 39 +++++++++++++++++++++++----------------
1 file changed, 23 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-07-12 16:56:07 UTC (rev 300158)
+++ PKGBUILD 2017-07-12 17:10:16 UTC (rev 300159)
@@ -5,11 +5,13 @@
pkgbase=python-lxml
pkgname=('python-lxml' 'python2-lxml' 'python-lxml-docs')
pkgver=3.8.0
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
license=('BSD' 'custom')
url="http://lxml.de/"
-makedepends=('libxslt' 'python-cssselect' 'python2-cssselect')
+makedepends=('libxslt' 'python-setuptools' 'python2-setuptools')
+checkdepends=('python-cssselect' 'python2-cssselect' # Broken: 'python-html5lib' 'python2-html5lib'
+ 'python-beautifulsoup4' 'python2-beautifulsoup4')
source=("https://pypi.io/packages/source/l/lxml/lxml-${pkgver}.tar.gz"{,.asc})
sha512sums=('08f6f352e22ed2bc199a5f34a1c6b5f7b41ec282dc0026c9f16a06466c27e39e8eb18608ba4493636170eeac4b0194f7050445e1cc9bd0a4628573c404593088'
'SKIP')
@@ -40,15 +42,17 @@
make PYTHON=python2 test
}
-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'
+package_python-lxml() {
+ pkgdesc="Python3 binding for the libxml2 and libxslt libraries"
+ depends=('python' 'libxslt')
+ optdepends=('python-beautifulsoup4: support for beautifulsoup parser to parse not well formed HTML'
+ 'python-cssselect: support for cssselect'
+ 'python-html5lib: support for html5lib parser'
'python-lxml-docs: offline docs')
- cd lxml-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
-
+ 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 \
@@ -57,14 +61,17 @@
"$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')
+package_python2-lxml() {
+ pkgdesc="Python2 binding for the libxml2 and libxslt libraries"
+ depends=('python2' 'libxslt')
+ optdepends=('python2-beautifulsoup4: support for beautifulsoup parser to parse not well formed HTML'
+ 'python2-cssselect: support for cssselect'
+ 'python2-html5lib: support for html5lib parser'
+ 'python-lxml-docs: offline docs')
- cd lxml-$pkgver
- python setup.py install --root="$pkgdir" --skip-build --optimize=1
-
+ 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 \
More information about the arch-commits
mailing list