mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
python_dateutil: bump version.
This commit is contained in:
@@ -6,10 +6,10 @@ COPYRIGHT="2003-2010 Gustavo Niemeyer"
|
||||
#FIXME: check exact license
|
||||
#XXX: 2.0 is "simplified BSD" (which one ?)
|
||||
LICENSE="Python"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz"
|
||||
CHECKSUM_SHA256="c08aca7d85f8f8eed61e83b3423b829262c596a9a78f7ca3de0bcee2217d0e3b"
|
||||
SOURCE_DIR="python-dateutil-$portVersion"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://github.com/dateutil/dateutil/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="757e927693126f474a3a97eef0215f87edb318c04e4f6ee9ab407c9994f91d27"
|
||||
SOURCE_DIR="dateutil-$portVersion"
|
||||
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
|
||||
@@ -18,7 +18,7 @@ PROVIDES="
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python
|
||||
cmd:python2
|
||||
#python_setuptools
|
||||
"
|
||||
|
||||
@@ -27,25 +27,25 @@ BUILD_REQUIRES="
|
||||
python_setuptools
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python
|
||||
cmd:python2
|
||||
cmd:gcc
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python/bin/python setup.py build
|
||||
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
export PATH="$portPackageLinksDir/cmd~python/bin:$PATH"
|
||||
pythonVersion=$(python --version 2>&1 | sed 's/Python //' | head -c3)
|
||||
export PATH="$portPackageLinksDir/cmd~python2/bin:$PATH"
|
||||
pythonVersion=$(python2 --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 \
|
||||
python2 setup.py install \
|
||||
--single-version-externally-managed \
|
||||
--root=/ --prefix=$prefix
|
||||
}
|
||||
Reference in New Issue
Block a user