diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2017-02-04 01:15:10 +1100 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2017-02-04 01:15:10 +1100 |
commit | 17962ad55d53c9d3aa26105eb32d801464e99a12 (patch) | |
tree | 37520a2d719af05f80b36a5de14167b0fb243801 | |
parent | f70d412731cb01d3db4f92549713b42ae40d6d7c (diff) | |
download | opt-17962ad55d53c9d3aa26105eb32d801464e99a12.tar.gz opt-17962ad55d53c9d3aa26105eb32d801464e99a12.tar.xz |
appdirs: initial import
-rw-r--r-- | appdirs/.footprint | 12 | ||||
-rw-r--r-- | appdirs/.md5sum | 2 | ||||
-rw-r--r-- | appdirs/Pkgfile | 33 |
3 files changed, 47 insertions, 0 deletions
diff --git a/appdirs/.footprint b/appdirs/.footprint new file mode 100644 index 000000000..dcf9252e5 --- /dev/null +++ b/appdirs/.footprint @@ -0,0 +1,12 @@ +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/appdirs-1.4.0-py2.7.egg-info/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/appdirs-1.4.0-py2.7.egg-info/PKG-INFO +-rw-r--r-- root/root usr/lib/python2.7/site-packages/appdirs-1.4.0-py2.7.egg-info/SOURCES.txt +-rw-r--r-- root/root usr/lib/python2.7/site-packages/appdirs-1.4.0-py2.7.egg-info/dependency_links.txt +-rw-r--r-- root/root usr/lib/python2.7/site-packages/appdirs-1.4.0-py2.7.egg-info/top_level.txt +-rw-r--r-- root/root usr/lib/python2.7/site-packages/appdirs.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/appdirs.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/appdirs.pyo diff --git a/appdirs/.md5sum b/appdirs/.md5sum new file mode 100644 index 000000000..b3694d8c8 --- /dev/null +++ b/appdirs/.md5sum @@ -0,0 +1,2 @@ +1d17b4c9694ab84794e228f28dc3275b appdirs-1.4.0.tar.gz +3b74f5cd0740a05802a23b019ce579a3 get-pip.py diff --git a/appdirs/Pkgfile b/appdirs/Pkgfile new file mode 100644 index 000000000..840f6612b --- /dev/null +++ b/appdirs/Pkgfile @@ -0,0 +1,33 @@ +# Description: A Python module for determining appropriate platform-specific dirs. +# 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: python + +name=appdirs +version=1.4.0 +release=1 +source=(https://pypi.python.org/packages/bd/66/0a7f48a0f3fb1d3a4072bceb5bbd78b1a6de4d801fb7135578e7c7b1f563/appdirs-$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 +} |