From 62fbeed4fcbbfdf0ee858aa018e4eec240490a28 Mon Sep 17 00:00:00 2001 From: DarkmatterVale Date: Sun, 21 Feb 2016 10:47:03 +0000 Subject: [PATCH] Update PyLZMA --- dev-python/pylzma/pylzma-0.4.4.recipe | 23 ------------- dev-python/pylzma/pylzma-0.4.8.recipe | 49 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 23 deletions(-) delete mode 100644 dev-python/pylzma/pylzma-0.4.4.recipe create mode 100644 dev-python/pylzma/pylzma-0.4.8.recipe diff --git a/dev-python/pylzma/pylzma-0.4.4.recipe b/dev-python/pylzma/pylzma-0.4.4.recipe deleted file mode 100644 index 70353d576..000000000 --- a/dev-python/pylzma/pylzma-0.4.4.recipe +++ /dev/null @@ -1,23 +0,0 @@ -DESCRIPTION="Python bindings for the LZMA library by Igor Pavlov." -HOMEPAGE="http://www.joachim-bauch.de/projects/pylzma/" -SOURCE_URI="http://pypi.python.org/packages/source/p/pylzma/pylzma-0.4.4.tar.gz" -STATUS_HAIKU="untested" -DEPEND="dev-lang/python >= 2.6.4 - dev-python/setuptools >= 0.6" -REVISION="1" -CHECKSUM_MD5="a2be89cb2288174ebb18bec68fa559fb" - -BUILD() -{ - cd pylzma-0.4.4 - python setup.py build -} - -INSTALL() -{ - cd pylzma-0.4.4 - python setup.py install -} - -LICENSE="GNU LGPL v2.1" -COPYRIGHT="2004-2010 Joachim Bauch" diff --git a/dev-python/pylzma/pylzma-0.4.8.recipe b/dev-python/pylzma/pylzma-0.4.8.recipe new file mode 100644 index 000000000..e52f2027d --- /dev/null +++ b/dev-python/pylzma/pylzma-0.4.8.recipe @@ -0,0 +1,49 @@ +SUMMARY="Python bindings for the LZMA library by Igor Pavlov" +DESCRIPTION="Contains numerous packages that will allow Python to unpack \ +archives." +HOMEPAGE="http://www.joachim-bauch.de/projects/pylzma/" +COPYRIGHT="2004-2015 Joachim Bauch + 7-zip 1999-2010 Igor Pavlov + LZMA SDK 1999-2010 Igor Pavlov" +LICENSE="MIT" +REVISION="2" +SOURCE_URI="http://pypi.python.org/packages/source/p/pylzma/pylzma-0.4.8.tar.gz" +CHECKSUM_SHA256="e6239cc4c134083ef6cfee54b1b9f5116dfc081474e093136b1b0e3226ac2532" + +ARCHITECTURES="x86 x86_gcc2 x86_64" + +PROVIDES=" + pylzma = $portVersion + " +REQUIRES=" + haiku + cmd:python + " + +BUILD_REQUIRES=" + haiku_devel + cmd:sed + python_setuptools + " +BUILD_PREREQUIRES=" + cmd:python + cmd:gcc + " + +BUILD() +{ + $portPackageLinksDir/cmd~python/bin/python setup.py build +} + +INSTALL() +{ + # GENERIC: all python_setuptools-based installs need this + python=$portPackageLinksDir/cmd~python/bin/python + pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3) + installLocation=$prefix/lib/python$pythonVersion/vendor-packages/ + export PYTHONPATH=$installLocation:$PYTHONPATH + mkdir -p $installLocation + + $python setup.py install \ + --prefix=$prefix +}