diff --git a/dev-python/httplib2/python3_httplib2-0.9.2.recipe b/dev-python/httplib2/python3_httplib2-0.9.2.recipe new file mode 100644 index 000000000..8dee4b537 --- /dev/null +++ b/dev-python/httplib2/python3_httplib2-0.9.2.recipe @@ -0,0 +1,47 @@ +SUMMARY="A comprehensive HTTP library for the Python platform" +DESCRIPTION="httplib2 supports many features left out of other HTTP \ +libraries." +HOMEPAGE="https://pypi.python.org/pypi/httplib2" +COPYRIGHT="2006 Joe Gregorio" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://pypi.python.org/packages/source/h/httplib2/httplib2-$portVersion.tar.gz" +CHECKSUM_SHA256="c3aba1c9539711551f4d83e857b316b5134a1c4ddce98a875b7027be7dd6d988" +SOURCE_DIR="httplib2-$portVersion" + +ARCHITECTURES="x86 x86_gcc2 x86_64" + +PROVIDES=" + python3_httplib2 = $portVersion + " +REQUIRES=" + haiku + cmd:python3 + " + +BUILD_REQUIRES=" + python3_setuptools + " +BUILD_PREREQUIRES=" + haiku_devel + cmd:python3 + cmd:gcc + " + +BUILD() +{ + $portPackageLinksDir/cmd~python3/bin/python3 setup.py build +} + +INSTALL() +{ + # GENERIC: all python_setuptools-based installs need this + python=$portPackageLinksDir/cmd~python3/bin/python3 + 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 +} diff --git a/dev-python/httplib2/python_httplib2-0.9.2.recipe b/dev-python/httplib2/python_httplib2-0.9.2.recipe new file mode 100644 index 000000000..a488308e7 --- /dev/null +++ b/dev-python/httplib2/python_httplib2-0.9.2.recipe @@ -0,0 +1,47 @@ +SUMMARY="A comprehensive HTTP library for the Python platform" +DESCRIPTION="httplib2 supports many features left out of other HTTP \ +libraries." +HOMEPAGE="https://pypi.python.org/pypi/httplib2" +COPYRIGHT="2006 Joe Gregorio" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://pypi.python.org/packages/source/h/httplib2/httplib2-$portVersion.tar.gz" +CHECKSUM_SHA256="c3aba1c9539711551f4d83e857b316b5134a1c4ddce98a875b7027be7dd6d988" +SOURCE_DIR="httplib2-$portVersion" + +ARCHITECTURES="x86 x86_gcc2 x86_64" + +PROVIDES=" + python_httplib2 = $portVersion + " +REQUIRES=" + haiku + cmd:python2 + " + +BUILD_REQUIRES=" + python_setuptools + " +BUILD_PREREQUIRES=" + haiku_devel + cmd:python2 + cmd:gcc + " + +BUILD() +{ + $portPackageLinksDir/cmd~python2/bin/python2 setup.py build +} + +INSTALL() +{ + # GENERIC: all python_setuptools-based installs need this + python=$portPackageLinksDir/cmd~python2/bin/python2 + 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 +}