diff options
Diffstat (limited to 'python3-pyparsing/Pkgfile')
-rw-r--r-- | python3-pyparsing/Pkgfile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/python3-pyparsing/Pkgfile b/python3-pyparsing/Pkgfile new file mode 100644 index 000000000..384d82051 --- /dev/null +++ b/python3-pyparsing/Pkgfile @@ -0,0 +1,33 @@ +# Description: Python parsing module. +# URL: https://pypi.python.org/pypi/pyparsing/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: python3 + +name=python3-pyparsing +version=2.1.10 +release=1 +source=(https://pypi.python.org/packages/38/bb/bf325351dd8ab6eb3c3b7c07c3978f38b2103e2ab48d59726916907cd6fb/pyparsing-$version.tar.gz + https://bootstrap.pypa.io/get-pip.py) + +build() { + cd ${name#*-}-$version + + if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then + install -d build + /usr/bin/python3 $SRC/get-pip.py --root=$SRC/build + + local PYTHONVERSION=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])') + + PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \ + /usr/bin/python3 setup.py build + + PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \ + /usr/bin/python3 setup.py install \ + --prefix=/usr --root=$PKG --optimize=1 + else + /usr/bin/python3 setup.py build + + /usr/bin/python3 setup.py install \ + --prefix=/usr --root=$PKG --optimize=1 + fi +} |