diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2017-02-04 17:50:24 +1100 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2017-02-04 17:50:24 +1100 |
commit | c99f9e47dcb0baa7d1bdb08016ba817b829e0c6b (patch) | |
tree | c4d5001bf507687b6fadfb5c6445459030822636 /python3-pyparsing/Pkgfile | |
parent | 85d3f31806f921e8be76059d9d999109f30697bc (diff) | |
download | opt-c99f9e47dcb0baa7d1bdb08016ba817b829e0c6b.tar.gz opt-c99f9e47dcb0baa7d1bdb08016ba817b829e0c6b.tar.xz |
python3-pyparsing: initial import
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 +} |