Update PyLZMA

This commit is contained in:
DarkmatterVale
2016-02-21 10:47:03 +00:00
parent d99c41a3af
commit 62fbeed4fc
2 changed files with 49 additions and 23 deletions

View File

@@ -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"

View File

@@ -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
}