Juergen Daubert d0ca97dc99 Merge branch '3.2' into 3.3
Conflicts:
	poppler-glib/.md5sum
	poppler-qt4/.md5sum
	poppler/.md5sum
	python-pyparsing/Pkgfile
	python-setuptools/Pkgfile
	xsane/Pkgfile
2017-02-17 13:09:24 +01:00

36 lines
1.1 KiB
Plaintext

# Description: Python parsing module.
# URL: https://pypi.python.org/pypi/pyparsing/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python
name=python-pyparsing
version=2.1.10
release=2
source=(https://files.pythonhosted.org/packages/source/${name:0:1}/$name/$name-$version.tar.gz
https://bootstrap.pypa.io/get-pip.py)
build() {
cd ${name#*-}-$version
if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
install -d build
/usr/bin/python $SRC/get-pip.py --root=$SRC/build
local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])')
PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
/usr/bin/python setup.py build
PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
/usr/bin/python setup.py install \
--prefix=/usr --root=$PKG --optimize=1
else
/usr/bin/python setup.py build
/usr/bin/python setup.py install \
--prefix=/usr --root=$PKG --optimize=1
fi
find $PKG/usr/lib/python$PYTHONVERSION/site-packages -type f -exec chmod go-w {} +
}