mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-13 23:30:04 +02:00
python_dateutil: bump version.
This commit is contained in:
51
dev-python/dateutil/python_dateutil-2.5.2.recipe
Normal file
51
dev-python/dateutil/python_dateutil-2.5.2.recipe
Normal file
@@ -0,0 +1,51 @@
|
||||
SUMMARY="Extensions to the standard Python datetime module"
|
||||
DESCRIPTION="The dateutil module provides powerful extensions to the standard \
|
||||
datetime module, available in Python 2.3+."
|
||||
HOMEPAGE="http://labix.org/python-dateutil"
|
||||
COPYRIGHT="2003-2010 Gustavo Niemeyer"
|
||||
#FIXME: check exact license
|
||||
#XXX: 2.0 is "simplified BSD" (which one ?)
|
||||
LICENSE="Python"
|
||||
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"
|
||||
|
||||
PROVIDES="
|
||||
python_dateutil = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
cmd:python2
|
||||
#python_setuptools
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
python_setuptools
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python2
|
||||
cmd:gcc
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
# GENERIC: all python_setuptools-based installs need this
|
||||
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
|
||||
|
||||
python2 setup.py install \
|
||||
--single-version-externally-managed \
|
||||
--root=/ --prefix=$prefix
|
||||
}
|
||||
Reference in New Issue
Block a user