diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2017-02-04 01:26:00 +1100 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2017-02-04 01:26:00 +1100 |
commit | 30f89e8ae34c59c3f4067703f3186ca99f15f192 (patch) | |
tree | ad71fdb25052d3a3dc4929a2e677bb8dfaf11c9c | |
parent | 100397f4c78b851744c4d13e7e5b02f30483c0a3 (diff) | |
download | opt-30f89e8ae34c59c3f4067703f3186ca99f15f192.tar.gz opt-30f89e8ae34c59c3f4067703f3186ca99f15f192.tar.xz |
packaging: initial import
-rw-r--r-- | packaging/.footprint | 38 | ||||
-rw-r--r-- | packaging/.md5sum | 2 | ||||
-rw-r--r-- | packaging/Pkgfile | 33 |
3 files changed, 73 insertions, 0 deletions
diff --git a/packaging/.footprint b/packaging/.footprint new file mode 100644 index 000000000..d7ba48085 --- /dev/null +++ b/packaging/.footprint @@ -0,0 +1,38 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/python2.7/ +drwxr-xr-x root/root usr/lib/python2.7/site-packages/ +drwxr-xr-x root/root usr/lib/python2.7/site-packages/packaging-16.8-py2.7.egg-info/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging-16.8-py2.7.egg-info/PKG-INFO +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging-16.8-py2.7.egg-info/SOURCES.txt +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging-16.8-py2.7.egg-info/dependency_links.txt +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging-16.8-py2.7.egg-info/requires.txt +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging-16.8-py2.7.egg-info/top_level.txt +drwxr-xr-x root/root usr/lib/python2.7/site-packages/packaging/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/__about__.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/__about__.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/__about__.pyo +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/__init__.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/__init__.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/__init__.pyo +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/_compat.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/_compat.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/_compat.pyo +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/_structures.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/_structures.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/_structures.pyo +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/markers.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/markers.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/markers.pyo +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/requirements.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/requirements.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/requirements.pyo +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/specifiers.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/specifiers.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/specifiers.pyo +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/utils.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/utils.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/utils.pyo +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/version.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/version.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/packaging/version.pyo diff --git a/packaging/.md5sum b/packaging/.md5sum new file mode 100644 index 000000000..3e4c85436 --- /dev/null +++ b/packaging/.md5sum @@ -0,0 +1,2 @@ +3b74f5cd0740a05802a23b019ce579a3 get-pip.py +53895cdca04ecff80b54128e475b5d3b packaging-16.8.tar.gz diff --git a/packaging/Pkgfile b/packaging/Pkgfile new file mode 100644 index 000000000..ba608aa3c --- /dev/null +++ b/packaging/Pkgfile @@ -0,0 +1,33 @@ +# Description: Core utilities for Python packages. +# URL: https://pypi.python.org/pypi/packaging/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Packager: Danny Rawlins, crux at romster dot me +# Depends on: pyparsing six + +name=packaging +version=16.8 +release=1 +source=(https://pypi.python.org/packages/c6/70/bb32913de251017e266c5114d0a645f262fb10ebc9bf6de894966d124e35/packaging-$version.tar.gz + https://bootstrap.pypa.io/get-pip.py) + +build() { + cd $name-$version + + if [ -z "$(pkginfo -i | egrep '^setuptools ')" ]; then + install -d build + /usr/bin/python $SRC/get-pip.py --root=$SRC/build + + PYTHONPATH=$SRC/build/usr/lib/python2.7/site-packages \ + /usr/bin/python setup.py build + + PYTHONPATH=$SRC/build/usr/lib/python2.7/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 +} |