dev-python: merge most python2 and python3 recipes.

* adjust recipes depending on these, ie python_dateutil=>dateutil_python.
* switch architectures to any for relevant python recipes.
* bump versions for retext, argh, beautifulsoup, cssselect, dateutil,
docutils, fonttools, html2text, httplib2, lxml, mechanize, mock, paramiko,
pillow, pip, pygments, requests, twisted, urllib3, zope_interface.
This commit is contained in:
Jerome Duval
2017-04-16 23:10:32 +02:00
parent 5ce1bcd42d
commit 282a03c8e8
89 changed files with 2389 additions and 1913 deletions

View File

@@ -1,55 +0,0 @@
SUMMARY="An unobtrusive argparse wrapper with natural syntax"
DESCRIPTION="Building a command-line interface? \
Found yourself uttering "argh!" while struggling with the API of argparse? \
Don't like the complexity but need the power?
Argh is a smart wrapper for argparse. Argparse is a very powerful tool; \
Argh just makes it easy to use."
HOMEPAGE="https://pypi.python.org/pypi/argh"
SOURCE_URI="https://pypi.python.org/packages/source/a/argh/argh-0.26.1.tar.gz"
CHECKSUM_SHA256="06a7442cb9130fb8806fe336000fcf20edf1f2f8ad205e7b62cec118505510db"
LICENSE="GNU LGPL v3"
COPYRIGHT="2010—2014 Andrey Mikhaylenko and contributors"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2 x86_64"
SOURCE_DIR="argh-$portVersion"
PROVIDES="
argh = $portVersion
"
REQUIRES="
haiku
cmd:python
"
BUILD_REQUIRES="
haiku_devel
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 \
--single-version-externally-managed \
--root=/ --prefix=$prefix
}

View File

@@ -0,0 +1,62 @@
SUMMARY="An unobtrusive argparse wrapper with natural syntax"
DESCRIPTION="Building a command-line interface? \
Found yourself uttering "argh!" while struggling with the API of argparse? \
Don't like the complexity but need the power?
Argh is a smart wrapper for argparse. Argparse is a very powerful tool; \
Argh just makes it easy to use."
HOMEPAGE="https://pypi.python.org/pypi/argh"
COPYRIGHT="2010-2014 Andrey Mikhaylenko and contributors"
LICENSE="GNU LGPL v3"
REVISION="1"
SOURCE_URI="https://github.com/neithere/argh/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="eb5476ac788e5c4f5e01825455630218aba055c29240637988f4c99532e7bdb6"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,57 +0,0 @@
SUMMARY="Python library for iterating, searching, and modifying an HTML/XML parse tree"
DESCRIPTION="
Beautiful Soup is a Python HTML/XML parser designed for quick
turnaround projects like screen-scraping.
Two features make it powerful:
it won't choke if you give it bad markup and it provides
a few simple methods and Pythonic idioms for navigating and
searching a parse tree: a toolkit for dissecting a document and
extracting what you need"
HOMEPAGE="https://bugs.launchpad.net/beautifulsoup/
https://pypi.python.org/pypi/beautifulsoup4
http://www.crummy.com/software/BeautifulSoup/bs4/"
COPYRIGHT="2004-2015 Leonard Richardson
2006-2013 James Graham and other contributors"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-4.4.1.tar.gz"
CHECKSUM_SHA256="87d4013d0625d4789a4f56b8d79a04d5ce6db1152bb65f1d39744f7709a366b4"
SOURCE_DIR="beautifulsoup4-$portVersion"
ARCHITECTURES="?x86 x86_gcc2 !x86_64"
PROVIDES="
beautifulsoup = $portVersion
"
REQUIRES="
haiku
cmd:python
#python_setuptools
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python 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)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
python setup.py install \
--single-version-externally-managed \
--root=/ --prefix=$prefix
}

View File

@@ -0,0 +1,69 @@
SUMMARY="Python library for iterating, searching, and modifying an HTML/XML parse tree"
DESCRIPTION="
Beautiful Soup is a Python HTML/XML parser designed for quick
turnaround projects like screen-scraping.
Two features make it powerful:
it won't choke if you give it bad markup and it provides
a few simple methods and Pythonic idioms for navigating and
searching a parse tree: a toolkit for dissecting a document and
extracting what you need"
HOMEPAGE="https://bugs.launchpad.net/beautifulsoup/
https://pypi.python.org/pypi/beautifulsoup4
http://www.crummy.com/software/BeautifulSoup/bs4/"
COPYRIGHT="2004-2015 Leonard Richardson
2006-2013 James Graham and other contributors"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/9b/a5/c6fa2d08e6c671103f9508816588e0fb9cec40444e8e72993f3d4c325936/beautifulsoup4-$portVersion.tar.gz"
CHECKSUM_SHA256="b21ca09366fa596043578fd4188b052b46634d22059e68dd0077d9ee77e08a3e"
SOURCE_DIR="beautifulsoup4-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,48 +0,0 @@
SUMMARY="Parses CSS3 Selectors and translates them to XPath 1.0"
DESCRIPTION="cssselect parses CSS3 Selectors and translate them to XPath 1.0 \
expressions. Such expressions can be used in lxml or another XPath \
engine to find the matching elements in an XML or HTML document."
HOMEPAGE="https://pythonhosted.org/cssselect/
https://pypi.python.org/pypi/cssselect"
COPYRIGHT="2007-2012 Ian Bicking and contributors"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/c/cssselect/cssselect-0.9.1.tar.gz"
CHECKSUM_SHA256="0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
cssselect = $portVersion
"
REQUIRES="
haiku
cmd:python
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python 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)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
python setup.py install \
--single-version-externally-managed \
--root=/ --prefix=$prefix
}

View File

@@ -0,0 +1,61 @@
SUMMARY="Parses CSS3 Selectors and translates them to XPath 1.0"
DESCRIPTION="cssselect parses CSS3 Selectors and translate them to XPath 1.0 \
expressions. Such expressions can be used in lxml or another XPath \
engine to find the matching elements in an XML or HTML document."
HOMEPAGE="https://pythonhosted.org/cssselect/
https://pypi.python.org/pypi/cssselect"
COPYRIGHT="2007-2012 Ian Bicking and contributors"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/scrapy/cssselect/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="cdfa17ab5dc8818209f310a930b18d3035a4585ddd2c179e833036e2dde511c6"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -25,7 +25,7 @@ REQUIRES="
BUILD_REQUIRES="
haiku_devel
python3_setuptools
setuptools_python3
"
BUILD_PREREQUIRES="
cmd:gcc

View File

@@ -25,7 +25,7 @@ REQUIRES="
BUILD_REQUIRES="
haiku_devel
python_setuptools
setuptools_python
"
BUILD_PREREQUIRES="
cmd:gcc

View File

@@ -0,0 +1,63 @@
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://github.com/dateutil/dateutil/"
COPYRIGHT="2003-2010 Gustavo Niemeyer"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="http://github.com/dateutil/dateutil/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="3a027333eda28ad003f1a6c77cc0a46be06cb9e0790843dad6a1b619b102a181"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
REPLACES_python="
python_dateutil
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,51 +0,0 @@
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
}

View File

@@ -1,56 +0,0 @@
SUMMARY="An open-source text processing system"
DESCRIPTION="Docutils is an open-source text processing system for processing \
plaintext documentation into useful formats, such as HTML, LaTeX, man-pages, \
open-document or XML. It includes reStructuredText, the easy to read, easy to \
use, what-you-see-is-what-you-get plaintext markup language."
HOMEPAGE="http://docutils.sourceforge.net/"
COPYRIGHT="Günter Milde
John Gruber
Alex Fernández"
LICENSE="Public Domain
BSD (2-clause)
GNU GPL v3
Python"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/docutils/files/docutils/$portVersion/docutils-$portVersion.tar.gz"
CHECKSUM_SHA256="c7db717810ab6965f66c8cf0398a98c9d8df982da39b4cd7f162911eb89596fa"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
docutils = $portVersion
cmd:rst2html.py = $portVersion
cmd:rst2latex.py = $portVersion
cmd:rst2man.py = $portVersion
cmd:rst2newlatex.py = $portVersion
cmd:rst2odt_prepstyles.py = $portVersion
cmd:rst2odt.py = $portVersion
cmd:rst2pseudoxml.py = $portVersion
cmd:rst2s5.py = $portVersion
cmd:rst2xetex.py = $portVersion
cmd:rst2xml.py = $portVersion
cmd:rstpep2html.py = $portVersion
"
REQUIRES="
haiku
cmd:python2
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python2
"
BUILD()
{
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
}
INSTALL()
{
$portPackageLinksDir/cmd~python2/bin/python2 setup.py install \
--prefix="$prefix" \
--force
}

View File

@@ -0,0 +1,101 @@
SUMMARY="An open-source text processing system"
DESCRIPTION="Docutils is an open-source text processing system for processing \
plaintext documentation into useful formats, such as HTML, LaTeX, man-pages, \
open-document or XML. It includes reStructuredText, the easy to read, easy to \
use, what-you-see-is-what-you-get plaintext markup language."
HOMEPAGE="http://docutils.sourceforge.net/"
COPYRIGHT="Günter Milde
John Gruber
Alex Fernández"
LICENSE="Public Domain
BSD (2-clause)
GNU GPL v3
Python"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/docutils/files/docutils/$portVersion/docutils-$portVersion.tar.gz"
CHECKSUM_SHA256="718c0f5fb677be0f34b781e04241c4067cbd9327b66bdd8e763201130f5175be"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:rst2html.py = $portVersion
cmd:rst2html5.py = $portVersion
cmd:rst2latex.py = $portVersion
cmd:rst2man.py = $portVersion
cmd:rst2newlatex.py = $portVersion
cmd:rst2odt_prepstyles.py = $portVersion
cmd:rst2odt.py = $portVersion
cmd:rst2pseudoxml.py = $portVersion
cmd:rst2s5.py = $portVersion
cmd:rst2xetex.py = $portVersion
cmd:rst2xml.py = $portVersion
cmd:rstpep2html.py = $portVersion
"
PROVIDES_python3="$PROVIDES_python3
cmd:rst2html3.py = $portVersion
cmd:rst2html53.py = $portVersion
cmd:rst2latex3.py = $portVersion
cmd:rst2man3.py = $portVersion
cmd:rst2newlatex3.py = $portVersion
cmd:rst2odt_prepstyles3.py = $portVersion
cmd:rst2odt3.py = $portVersion
cmd:rst2pseudoxml3.py = $portVersion
cmd:rst2s53.py = $portVersion
cmd:rst2xetex3.py = $portVersion
cmd:rst2xml3.py = $portVersion
cmd:rstpep2html3.py = $portVersion
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage != python ]; then
for f in $binDir/*.py; do
mv $f ${f%.py}3.py
done
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir
done
}

View File

@@ -0,0 +1,63 @@
SUMMARY="Pure python ECDSA implementation"
DESCRIPTION="ECDSA is a module for python 2.6 (or higher) that implements \
the ECDSA cryptographic signature library."
HOMEPAGE="https://github.com/warner/python-ecdsa"
COPYRIGHT="2010 Brian Warner"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/e/ecdsa/ecdsa-$portVersion.tar.gz"
CHECKSUM_SHA256="64cf1ee26d1cde3c73c6d7d107f835fed7c6a2904aef9eac223d57ad800c43fa"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
REPLACES_python="
python_ecdsa
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,42 +0,0 @@
SUMMARY="Pure python ECDSA implementation"
DESCRIPTION="ECDSA is a module for python 2.6 (or higher) that implements \
the ECDSA cryptographic signature library."
HOMEPAGE="https://github.com/warner/python-ecdsa"
COPYRIGHT="2010 Brian Warner"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.13.tar.gz"
CHECKSUM_SHA256="64cf1ee26d1cde3c73c6d7d107f835fed7c6a2904aef9eac223d57ad800c43fa"
ARCHITECTURES="arm ppc x86 x86_gcc2 x86_64"
SOURCE_DIR="ecdsa-${portVersion}"
PROVIDES="
python_ecdsa = $portVersion
"
REQUIRES="
haiku
cmd:python
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python
cmd:sed
"
BUILD()
{
python setup.py build
}
INSTALL()
{
python setup.py install --prefix=$prefix
}

View File

@@ -8,43 +8,55 @@ COPYRIGHT="2010-2015 Kurt McKee
LICENSE="BSD (2-clause)
Python"
REVISION="1"
SOURCE_URI="https://github.com/kurtmckee/feedparser/archive/5.2.1.tar.gz"
SOURCE_URI="https://github.com/kurtmckee/feedparser/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="09367f95e58b9c5f70da70061d3e7f397ed8ec5d3c970e231ef011ff62de462f"
ARCHITECTURES="?x86 x86_gcc2 ?x86_64"
ARCHITECTURES="any"
PROVIDES="
feedparser = $portVersion
$portName = $portVersion
"
REQUIRES="
haiku
cmd:python
#python_setuptools
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python setup.py build
}
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
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)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python setup.py install \
--single-version-externally-managed \
--root=/ --prefix=$prefix
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -0,0 +1,98 @@
SUMMARY="A library for manipulating fonts"
DESCRIPTION="FontTools is a library for manipulating fonts, written in Python.\
It supports TrueType, OpenType, AFM and to an extent Type 1 and some \
Mac-specific formats."
HOMEPAGE="https://github.com/behdad/fonttools"
COPYRIGHT="1999-2004 Just van Rossum, Letterror, The Netherlands."
LICENSE="FONTTOOLS"
REVISION="1"
SOURCE_URI="https://github.com/fonttools/fonttools/archive/$portVersion.tar.gz"
SOURCE_FILENAME="fonttools-$portVersion.tar.gz"
CHECKSUM_SHA256="91fbab7277017587d9c6bfaf6770cbf1b38983d02308eb3f948b7915e43ef6bb"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
cmd:fonttools
cmd:pyftinspect
cmd:pyftmerge
cmd:pyftsubset
cmd:ttx
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:fonttools
cmd:pyftinspect
cmd:pyftmerge
cmd:pyftsubset
cmd:ttx
"
REPLACES_python="
python_fonttools
"
PROVIDES_python3="$PROVIDES_python3
cmd:fonttools3
cmd:pyftinspect3
cmd:pyftmerge3
cmd:pyftsubset3
cmd:ttx3
"
REPLACES_python3="
python3_fonttools
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage != python ]; then
for f in $binDir/*; do
mv $f ${f}3
done
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir
done
mkdir -p $(dirname $manDir)
mv $prefix/share/man $manDir
rmdir $prefix/share
}

View File

@@ -1,53 +0,0 @@
SUMMARY="A library for manipulating fonts"
DESCRIPTION="FontTools is a library for manipulating fonts, written in Python.\
It supports TrueType, OpenType, AFM and to an extent Type 1 and some \
Mac-specific formats."
HOMEPAGE="https://github.com/behdad/fonttools"
COPYRIGHT="1999-2004 Just van Rossum, Letterror, The Netherlands."
LICENSE="FONTTOOLS"
REVISION="2"
SOURCE_URI="https://github.com/behdad/fonttools/archive/$portVersion.tar.gz"
SOURCE_FILENAME="fonttools-$portVersion.tar.gz"
CHECKSUM_SHA256="3bc9141d608603faac3f800482feec78a550d0a94c29ff3850471dbe4ad9e941"
SOURCE_DIR="fonttools-$portVersion"
PYTHON_VERSION="3.6"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python3_fonttools = $portVersion
"
REQUIRES="
haiku
cmd:python$PYTHON_VERSION
"
BUILD_REQUIRES="
python3_setuptools
"
BUILD_PREREQUIRES="
haiku_devel
cmd:python$PYTHON_VERSION
cmd:gcc
"
BUILD()
{
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python$PYTHON_VERSION/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
# conflict with python_fonttools
rm -rf $binDir $prefix/share
}

View File

@@ -1,55 +0,0 @@
SUMMARY="A library for manipulating fonts"
DESCRIPTION="FontTools is a library for manipulating fonts, written in Python.\
It supports TrueType, OpenType, AFM and to an extent Type 1 and some \
Mac-specific formats."
HOMEPAGE="https://github.com/behdad/fonttools"
COPYRIGHT="1999-2004 Just van Rossum, Letterror, The Netherlands."
LICENSE="FONTTOOLS"
REVISION="1"
SOURCE_URI="https://github.com/behdad/fonttools/archive/$portVersion.tar.gz"
SOURCE_FILENAME="fonttools-$portVersion.tar.gz"
CHECKSUM_SHA256="3bc9141d608603faac3f800482feec78a550d0a94c29ff3850471dbe4ad9e941"
SOURCE_DIR="fonttools-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_fonttools = $portVersion
cmd:pyftmerge
cmd:pyftsubset
cmd:ttx
"
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
# we don't have pygtk
rm $binDir/pyftinspect
}

View File

@@ -11,51 +11,58 @@ HOMEPAGE="
http://code.google.com/p/gdata-python-client/
http://pypi.python.org/pypi/gdata
"
SOURCE_URI="https://pypi.python.org/packages/source/g/gdata/gdata-2.0.18.tar.gz"
SOURCE_URI="https://pypi.python.org/packages/source/g/gdata/gdata-$portVersion.tar.gz"
CHECKSUM_SHA256="56e7d22de819c22b13ceb0fe1869729b4287f89ebbd4bb55380d7bcf61a1fdb6"
LICENSE="Apache v2"
COPYRIGHT="2006-2014 Google Inc."
REVISION="1"
ARCHITECTURES="x86 x86_gcc2 x86_64"
#SOURCE_DIR="PyYAML-$portVersion"
ARCHITECTURES="any"
PROVIDES="
gdata = $portVersion
$portName = $portVersion
"
REQUIRES="
haiku
cmd:python
"
#TODO: eventually depend on http://pyyaml.org/wiki/LibYAML
BUILD_REQUIRES="
haiku_devel
cmd:sed
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python
cmd:gcc
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python setup.py build
}
PYTHON_PACKAGES=(python)
PYTHON_VERSIONS=(2.7)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
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
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
$python setup.py install \
--prefix=$prefix
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -0,0 +1,77 @@
SUMMARY="Convert HTML to Markdown-formatted text"
DESCRIPTION="
html2text is a Python script that converts a page of HTML into clean,
easy-to-read plain ASCII text. Better yet, that ASCII also happens to be
valid Markdown (a text-to-HTML format)."
HOMEPAGE="https://github.com/html2text/html2text.py
https://github.com/Alir3z4/html2text
https://pypi.python.org/pypi/html2text"
COPYRIGHT="2004-2008 Aaron Swartz"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/Alir3z4/html2text/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="21c0237fae4f640eef53343a2965f44bfd907f0e1b956cd1171fb3884541767a"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:html2text
"
REPLACES_python="
python_html2text
"
PROVIDES_python3="$PROVIDES_python3
cmd:html2text3
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage != python ]; then
mv $binDir/html2text $binDir/html2text3
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir
done
}

View File

@@ -1,52 +0,0 @@
SUMMARY="Convert HTML to Markdown-formatted text"
DESCRIPTION="
html2text is a Python script that converts a page of HTML into clean,
easy-to-read plain ASCII text. Better yet, that ASCII also happens to be
valid Markdown (a text-to-HTML format)."
HOMEPAGE="https://github.com/html2text/html2text.py
https://github.com/Alir3z4/html2text
https://pypi.python.org/pypi/html2text"
COPYRIGHT="2004-2008 Aaron Swartz"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/h/html2text/html2text-$portVersion.tar.gz"
CHECKSUM_SHA256="32e5e49eb520335bae200a00e3cc981f1ade558930068e1bb2a6e3fb1504f951"
SOURCE_DIR="html2text-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_html2text = $portVersion
"
REQUIRES="
haiku
cmd:python2
#python_setuptools
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python2
"
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
}

View File

@@ -0,0 +1,66 @@
SUMMARY="A comprehensive HTTP library for the Python platform"
DESCRIPTION="httplib2 supports many features left out of other HTTP \
libraries."
HOMEPAGE="https://github.com/httplib2/httplib2/"
COPYRIGHT="2006 Joe Gregorio"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="d1bee28a68cc665c451c83d315e3afdbeb5391f08971dcc91e060d5ba16986f1"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
REPLACES_python="
python_httplib2
"
REPLACES_python3="
python3_httplib2
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,48 +0,0 @@
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="2"
SOURCE_URI="https://pypi.python.org/packages/source/h/httplib2/httplib2-$portVersion.tar.gz"
CHECKSUM_SHA256="c3aba1c9539711551f4d83e857b316b5134a1c4ddce98a875b7027be7dd6d988"
SOURCE_DIR="httplib2-$portVersion"
PYTHON_VERSION="3.6"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python3_httplib2 = $portVersion
"
REQUIRES="
haiku
cmd:python$PYTHON_VERSION
"
BUILD_REQUIRES="
python3_setuptools
"
BUILD_PREREQUIRES="
haiku_devel
cmd:python$PYTHON_VERSION
cmd:gcc
"
BUILD()
{
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python$PYTHON_VERSION/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
}

View File

@@ -1,47 +0,0 @@
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
}

View File

@@ -6,16 +6,16 @@ HOMEPAGE="http://www.pythonware.com/products/pil/"
COPYRIGHT="1997-2011 by Secret Labs AB
1995-2011 by Fredrik Lundh"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="http://effbot.org/downloads/Imaging-1.1.7.tar.gz"
REVISION="3"
SOURCE_URI="http://effbot.org/downloads/Imaging-$portVersion.tar.gz"
CHECKSUM_SHA256="895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211"
SOURCE_DIR="Imaging-1.1.7"
SOURCE_DIR="Imaging-$portVersion"
PATCHES="python_imaging-$portVersion.patchset"
ARCHITECTURES="x86_gcc2"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
python_imaging$secondaryArchSuffix = $portVersion
python_imaging = $portVersion
cmd:pilconvert.py
cmd:pildriver.py
cmd:pilfile.py
@@ -23,8 +23,11 @@ PROVIDES="
cmd:pilprint.py
"
REQUIRES="
haiku
lib:libjpeg
lib:libpython2.7
lib:libz
cmd:python2.7
"
BUILD_REQUIRES="
@@ -32,17 +35,17 @@ BUILD_REQUIRES="
devel:libz
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
haiku_devel
cmd:gcc
cmd:python
cmd:python2.7
"
BUILD()
{
python setup.py build_ext -i
python2.7 setup.py build_ext -i
}
INSTALL()
{
python setup.py install --prefix=$prefix
python2.7 setup.py install --prefix=$prefix
}

View File

@@ -19,38 +19,36 @@ COPYRIGHT="2001-2008 Python Software Foundation
2004-2009 Paramjit Oberoi
2007 Tim Lauridsen"
LICENSE="MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/iniparse/iniparse-0.4.tar.gz"
CHECKSUM_SHA256="abc1ee12d2cfb2506109072d6c21e40b6c75a3fe90a9c924327d80bc0d99c054"
SOURCE_DIR="iniparse-0.4"
PATCHES="iniparse-0.4.patchset"
ARCHITECTURES="x86 ?x86_gcc2"
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"
ARCHITECTURES="any"
PROVIDES="
iniparse$secondaryArchSuffix = $portVersion
iniparse = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:python$secondaryArchSuffix
haiku
cmd:python2
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python$secondaryArchSuffix
cmd:python2
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python setup.py build
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
}
INSTALL()
{
$portPackageLinksDir/cmd~python/bin/python setup.py install \
$portPackageLinksDir/cmd~python2/bin/python2 setup.py install \
--prefix=$prefix \
--install-data=$docDir
}

View File

@@ -0,0 +1,78 @@
SUMMARY="A Pythonic binding for the libxml2 and libxslt libraries"
DESCRIPTION=" The lxml XML toolkit is unique in that it combines the speed \
and XML feature completeness of the libxml2 and libxslt libraries with the \
simplicity of a native Python API, mostly compatible but superior to the \
well-known ElementTree API.
The latest release works with all CPython versions from 2.4 to 3.3."
HOMEPAGE="http://lxml.de/
http://pypi.python.org/pypi/lxml/"
COPYRIGHT="2003-2010 Gustavo Niemeyer"
#FIXME: check exact license
#gentoo says: LICENSE="BSD ElementTree GPL-2 PSF-2"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://lxml.de/files/lxml-$portVersion.tgz"
CHECKSUM_SHA256="59d9176360dbc3919e9d4bfca85c1ca64ab4f4ee00e6f119d7150ba887e3410a"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
devel:libxml2
devel:libxslt
devel:libz
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:ld
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
lib:libxml2\n\
lib:libxslt\n\
lib:libz\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
REPLACES_python="
python_lxml
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -0,0 +1,31 @@
From 72985b29a3f51785c7fb070080861c815e6d3edd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
Date: Tue, 29 Jul 2014 01:50:29 +0200
Subject: [PATCH] Fix Haiku build (no libm)
GRMBL !$*^= hardcoding
---
setupinfo.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/setupinfo.py b/setupinfo.py
index 4a1d150..4a5746d 100644
--- a/setupinfo.py
+++ b/setupinfo.py
@@ -186,9 +186,11 @@ def libraries():
libs = ['%s_a' % lib for lib in libs]
libs.extend(['zlib', 'WS2_32'])
elif OPTION_STATIC:
- libs = ['z', 'm']
+ libs = ['z']
else:
- libs = ['xslt', 'exslt', 'xml2', 'z', 'm']
+ libs = ['xslt', 'exslt', 'xml2', 'z']
+ if sys.platform[0:5] not in ('haiku','win32'):
+ libs.append('m')
return libs
def library_dirs(static_library_dirs):
--
1.8.3.4

View File

@@ -1,62 +0,0 @@
SUMMARY="A Pythonic binding for the libxml2 and libxslt libraries"
DESCRIPTION=" The lxml XML toolkit is unique in that it combines the speed \
and XML feature completeness of the libxml2 and libxslt libraries with the \
simplicity of a native Python API, mostly compatible but superior to the \
well-known ElementTree API.
The latest release works with all CPython versions from 2.4 to 3.3."
HOMEPAGE="http://lxml.de/
http://pypi.python.org/pypi/lxml/"
COPYRIGHT="2003-2010 Gustavo Niemeyer"
#FIXME: check exact license
#gentoo says: LICENSE="BSD ElementTree GPL-2 PSF-2"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://lxml.de/files/lxml-$portVersion.tgz"
CHECKSUM_SHA256="9c74ca28a7f0c30dca8872281b3c47705e21217c8bc63912d95c9e2a7cac6bdf"
SOURCE_DIR="lxml-$portVersion"
PATCHES="python_lxml-$portVersion.patchset"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_lxml = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libxslt$secondaryArchSuffix
lib:libz$secondaryArchSuffix
cmd:python2
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libxml2$secondaryArchSuffix
devel:libxslt$secondaryArchSuffix
devel:libz$secondaryArchSuffix
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python2
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
"
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
}

View File

@@ -0,0 +1,83 @@
SUMMARY="Hyperfast and lightweight templating for the Python platform"
DESCRIPTION="Mako is a template library written in Python. It provides a \
familiar, non-XML syntax which compiles into Python modules for maximum \
performance. Mako's syntax and API borrows from the best ideas of many \
others, including Django and Jinja2 templates, Cheetah, Myghty, and Genshi.
Conceptually, Mako is an embedded Python (i.e. Python Server Page) language, \
which refines the familiar ideas of componentized layout and inheritance to \
produce one of the most straightforward and flexible models available, while \
also maintaining close ties to Python calling and scoping semantics."
HOMEPAGE="http://www.makotemplates.org"
COPYRIGHT="2006-2015 the Mako authors and contributors"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/M/Mako/Mako-$portVersion.tar.gz"
CHECKSUM_SHA256="7644bc0ee35965d2e146dde31827b8982ed70a58281085fac42869a09764d38c"
SOURCE_DIR="Mako-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:mako_render
"
REPLACES_python="
python_mako
"
PROVIDES_python3="$PROVIDES_python3
cmd:mako_render3
"
REPLACES_python3="
python3_mako
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage != python ]; then
mv $binDir/mako-render $binDir/mako-render3
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir
done
}

View File

@@ -1,56 +0,0 @@
SUMMARY="Hyperfast and lightweight templating for the Python platform"
DESCRIPTION="Mako is a template library written in Python. It provides a \
familiar, non-XML syntax which compiles into Python modules for maximum \
performance. Mako's syntax and API borrows from the best ideas of many \
others, including Django and Jinja2 templates, Cheetah, Myghty, and Genshi.
Conceptually, Mako is an embedded Python (i.e. Python Server Page) language, \
which refines the familiar ideas of componentized layout and inheritance to \
produce one of the most straightforward and flexible models available, while \
also maintaining close ties to Python calling and scoping semantics."
HOMEPAGE="http://www.makotemplates.org"
COPYRIGHT="2006-2015 the Mako authors and contributors"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="https://pypi.python.org/packages/source/M/Mako/Mako-$portVersion.tar.gz"
CHECKSUM_SHA256="7644bc0ee35965d2e146dde31827b8982ed70a58281085fac42869a09764d38c"
SOURCE_DIR="Mako-$portVersion"
PYTHON_VERSION="3.6"
ARCHITECTURES="arm ppc x86 x86_gcc2 x86_64"
PROVIDES="
python3_mako = $portVersion
cmd:mako_render
"
REQUIRES="
haiku
cmd:python$PYTHON_VERSION
"
BUILD_REQUIRES="
python3_setuptools
"
BUILD_PREREQUIRES="
haiku_devel
cmd:python$PYTHON_VERSION
cmd:gcc
"
BUILD()
{
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python$PYTHON_VERSION/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
}

View File

@@ -1,55 +0,0 @@
SUMMARY="Hyperfast and lightweight templating for the Python platform"
DESCRIPTION="Mako is a template library written in Python. It provides a \
familiar, non-XML syntax which compiles into Python modules for maximum \
performance. Mako's syntax and API borrows from the best ideas of many \
others, including Django and Jinja2 templates, Cheetah, Myghty, and Genshi.
Conceptually, Mako is an embedded Python (i.e. Python Server Page) language, \
which refines the familiar ideas of componentized layout and inheritance to \
produce one of the most straightforward and flexible models available, while \
also maintaining close ties to Python calling and scoping semantics."
HOMEPAGE="http://www.makotemplates.org"
COPYRIGHT="2006-2015 the Mako authors and contributors"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/M/Mako/Mako-$portVersion.tar.gz"
CHECKSUM_SHA256="7644bc0ee35965d2e146dde31827b8982ed70a58281085fac42869a09764d38c"
SOURCE_DIR="Mako-$portVersion"
ARCHITECTURES="arm ppc x86 x86_gcc2 x86_64"
PROVIDES="
python_mako = $portVersion
cmd:mako_render
"
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
}

View File

@@ -0,0 +1,82 @@
SUMMARY="Python implementation of Markdown"
DESCRIPTION="This is a Python implementation of John Grubers Markdown. \
It is almost completely compliant with the reference implementation, though \
there are a few known issues."
HOMEPAGE="https://pythonhosted.org/Markdown/
https://pypi.python.org/pypi/Markdown/"
COPYRIGHT="2007, 2008 The Python Markdown Project
2004, 2005, 2006 Yuri Takhteyev
2004 Manfred Stienstra"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/1d/25/3f6d2cb31ec42ca5bd3bfbea99b63892b735d76e26f20dd2dcc34ffe4f0d/Markdown-$portVersion.tar.gz"
CHECKSUM_SHA256="0ac8a81e658167da95d063a9279c9c1b2699f37c7c4153256a458b3a43860e33"
SOURCE_DIR="Markdown-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:markdown_py
"
REPLACES_python="
python_markdown
"
PROVIDES_python3="$PROVIDES_python3
cmd:markdown_py3
"
REPLACES_python3="
python3_markdown
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage != python ]; then
mv $binDir/markdown_py $binDir/markdown_py3
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir
done
}

View File

@@ -1,51 +0,0 @@
SUMMARY="Python implementation of Markdown"
DESCRIPTION="This is a Python implementation of John Grubers Markdown. \
It is almost completely compliant with the reference implementation, though \
there are a few known issues."
HOMEPAGE="https://pythonhosted.org/Markdown/
https://pypi.python.org/pypi/Markdown/"
COPYRIGHT="2007, 2008 The Python Markdown Project
2004, 2005, 2006 Yuri Takhteyev
2004 Manfred Stienstra"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/1d/25/3f6d2cb31ec42ca5bd3bfbea99b63892b735d76e26f20dd2dcc34ffe4f0d/Markdown-$portVersion.tar.gz"
CHECKSUM_SHA256="0ac8a81e658167da95d063a9279c9c1b2699f37c7c4153256a458b3a43860e33"
SOURCE_DIR="Markdown-$portVersion"
ARCHITECTURES="x86 ?x86_gcc2 x86_64"
PROVIDES="
python3_markdown = $portVersion
cmd:markdown_py
"
REQUIRES="
haiku
cmd:python3
"
BUILD_REQUIRES="
haiku_devel
python3_setuptools
"
BUILD_PREREQUIRES="
cmd:python3
"
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 \
--root=/ --prefix=$prefix
}

View File

@@ -1,51 +0,0 @@
SUMMARY="Python implementation of Markdown"
DESCRIPTION="This is a Python implementation of John Grubers Markdown. \
It is almost completely compliant with the reference implementation, though \
there are a few known issues."
HOMEPAGE="https://pythonhosted.org/Markdown/
https://pypi.python.org/pypi/Markdown/"
COPYRIGHT="2007, 2008 The Python Markdown Project
2004, 2005, 2006 Yuri Takhteyev
2004 Manfred Stienstra"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/1d/25/3f6d2cb31ec42ca5bd3bfbea99b63892b735d76e26f20dd2dcc34ffe4f0d/Markdown-$portVersion.tar.gz"
CHECKSUM_SHA256="0ac8a81e658167da95d063a9279c9c1b2699f37c7c4153256a458b3a43860e33"
SOURCE_DIR="Markdown-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_markdown = $portVersion
cmd:markdown_py
"
REQUIRES="
haiku
cmd:python2
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python2
"
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 \
--root=/ --prefix=$prefix
}

View File

@@ -0,0 +1,70 @@
SUMMARY="A wrapper around various text markups"
DESCRIPTION="Markups provides a wrapper around various text markup languages.
Available by default are Markdown, reStructuredText and Textile, but you can \
easily add your own markups.
"
HOMEPAGE="http://python-requests.org/
http://pypi.python.org/pypi/markups"
COPYRIGHT="2012-2015 Dmitry Shachnev"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/0b/98/3a20a868437c17db37cec47cc82fbd1030aa55765faf06207ab832e85152/Markups-$portVersion.tar.gz"
CHECKSUM_SHA256="5639ddd76d74e0a5335e5b66ff2f1b3f9a9f0ab6eeff76a1003f59ed0ec2b721"
SOURCE_DIR="Markups-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
REPLACES_python="
python_markups
"
REPLACES_python3="
python3_markups
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,50 +0,0 @@
SUMMARY="A wrapper around various text markups"
DESCRIPTION="Markups provides a wrapper around various text markup languages.
Available by default are Markdown, reStructuredText and Textile, but you can \
easily add your own markups.
"
HOMEPAGE="http://python-requests.org/
http://pypi.python.org/pypi/markups"
COPYRIGHT="2012-2015 Dmitry Shachnev"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/0b/98/3a20a868437c17db37cec47cc82fbd1030aa55765faf06207ab832e85152/Markups-$portVersion.tar.gz"
CHECKSUM_SHA256="5639ddd76d74e0a5335e5b66ff2f1b3f9a9f0ab6eeff76a1003f59ed0ec2b721"
SOURCE_DIR="Markups-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python3_markups = $portVersion
"
REQUIRES="
haiku
cmd:python3
"
BUILD_REQUIRES="
haiku_devel
python3_setuptools
"
BUILD_PREREQUIRES="
cmd:python3
"
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 \
--single-version-externally-managed \
--root=/ --prefix=$prefix
}

View File

@@ -1,49 +0,0 @@
SUMMARY="A wrapper around various text markups"
DESCRIPTION="Markups provides a wrapper around various text markup languages.
Available by default are Markdown, reStructuredText and Textile, but you can \
easily add your own markups.
"
HOMEPAGE="http://python-requests.org/
http://pypi.python.org/pypi/markups"
COPYRIGHT="2012-2015 Dmitry Shachnev"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/0b/98/3a20a868437c17db37cec47cc82fbd1030aa55765faf06207ab832e85152/Markups-$portVersion.tar.gz"
CHECKSUM_SHA256="5639ddd76d74e0a5335e5b66ff2f1b3f9a9f0ab6eeff76a1003f59ed0ec2b721"
SOURCE_DIR="Markups-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_markups = $portVersion
"
REQUIRES="
haiku
cmd:python2
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python2
"
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 \
--root=/ --prefix=$prefix
}

View File

@@ -0,0 +1,81 @@
SUMMARY="Stateful programmatic web browsing in Python"
DESCRIPTION="Stateful programmatic web browsing in Python, after Andy \
Lesters Perl module WWW::Mechanize.
- mechanize.Browser and mechanize.UserAgentBase implement \
the interface of urllib2.OpenerDirector, so any URL can be opened, not \
just http.
- mechanize.UserAgentBase offers easy dynamic configuration \
of user-agent features like protocol, cookie, redirection and \
robots.txt handling, without having to make a new OpenerDirector \
each time, e.g. by calling build_opener().
- Easy HTML form filling.
- Convenient link parsing and following.
- Browser history (.back() and .reload() methods).
- The Referer HTTP header is added properly (optional).
- Automatic observance of robots.txt.
- Automatic handling of HTTP-Equiv and Refresh."
HOMEPAGE="https://github.com/python-mechanize/mechanize
http://pypi.python.org/pypi/mechanize"
COPYRIGHT="2002-2010 John J. Lee
1997-1999 Gisle Aas
1997-1999 Johnny Lee
2003 Andy Lester"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/python-mechanize/mechanize/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="0f14880646fc96da91440712546fd136896b151228366cdc0604534e0687036c"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python)
PYTHON_VERSIONS=(2.7)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
REPLACES_python="
python_mechanize
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,69 +0,0 @@
SUMMARY="Stateful programmatic web browsing in Python"
DESCRIPTION="Stateful programmatic web browsing in Python, after Andy \
Lesters Perl module WWW::Mechanize.
- mechanize.Browser and mechanize.UserAgentBase implement \
the interface of urllib2.OpenerDirector, so any URL can be opened, not \
just http.
- mechanize.UserAgentBase offers easy dynamic configuration \
of user-agent features like protocol, cookie, redirection and \
robots.txt handling, without having to make a new OpenerDirector \
each time, e.g. by calling build_opener().
- Easy HTML form filling.
- Convenient link parsing and following.
- Browser history (.back() and .reload() methods).
- The Referer HTTP header is added properly (optional).
- Automatic observance of robots.txt.
- Automatic handling of HTTP-Equiv and Refresh."
HOMEPAGE="http://wwwsearch.sourceforge.net/mechanize/
http://pypi.python.org/pypi/mechanize"
COPYRIGHT="2002-2010 John J. Lee
1997-1999 Gisle Aas
1997-1999 Johnny Lee
2003 Andy Lester"
#gentoo says: LICENSE="|| ( BSD ZPL )"
LICENSE="BSD (3-clause)"
REVISION="2"
SOURCE_URI="http://pypi.python.org/packages/source/m/mechanize/mechanize-0.2.5.tar.gz"
CHECKSUM_SHA256="2e67b20d107b30c00ad814891a095048c35d9d8cb9541801cebe85684cc84766"
SOURCE_DIR="mechanize-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_mechanize = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:python
python_setuptools
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python 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)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
python setup.py install \
--single-version-externally-managed \
--root=/ --prefix=$prefix
}

View File

@@ -0,0 +1,88 @@
SUMMARY="A library for testing in Python"
DESCRIPTION="
Mock allows you to replace parts of your system under test with mock objects \
and make assertions about how they have been used.
Mock provides a core 'MagicMock' class removing the need to create a host of \
stubs throughout your test suite. After performing an action, you can make \
assertions about which methods / attributes were used and arguments they were \
called with. You can also specify return values and set needed attributes in \
the normal way.
The mock module also provides utility functions / objects to assist with \
testing, particularly monkey patching."
HOMEPAGE="http://pypi.python.org/pypi/mock"
COPYRIGHT="2003-2012, Michael Foord"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/m/mock/mock-$portVersion.tar.gz"
CHECKSUM_SHA256="b158b6df76edd239b8208d481dc46b6afd45a846b7812ff0ce58971cf5bc8bba"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
BUILD()
{
rm -rf build*
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python$pythonVersion/bin/python$pythonVersion
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
$python setup.py build
mv build build$pythonVersion
done
}
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
mv build$pythonVersion build
$python setup.py install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,57 +0,0 @@
SUMMARY="A library for testing in Python"
DESCRIPTION="
Mock allows you to replace parts of your system under test with mock objects \
and make assertions about how they have been used.
Mock provides a core 'MagicMock' class removing the need to create a host of \
stubs throughout your test suite. After performing an action, you can make \
assertions about which methods / attributes were used and arguments they were \
called with. You can also specify return values and set needed attributes in \
the normal way.
The mock module also provides utility functions / objects to assist with \
testing, particularly monkey patching."
HOMEPAGE="http://pypi.python.org/pypi/mock"
COPYRIGHT="2003-2012, Michael Foord"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/m/mock/mock-$portVersion.tar.gz"
CHECKSUM_SHA256="1e247dbecc6ce057299eb7ee019ad68314bb93152e81d9a6110d35f4d5eca0f6"
SOURCE_DIR="mock-$portVersion"
ARCHITECTURES="any"
PROVIDES="
python_mock = $portVersion
"
REQUIRES="
haiku
cmd:python2
"
BUILD_REQUIRES="
haiku_devel
python_setuptools >= 17.1.0
"
BUILD_PREREQUIRES="
cmd:python2
"
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 \
--single-version-externally-managed \
--root=/ --prefix=$prefix
}

View File

@@ -29,7 +29,7 @@ REQUIRES="
BUILD_REQUIRES="
haiku_devel
python3_setuptools
setuptools_python3
devel:libopenblas
"
BUILD_PREREQUIRES="

View File

@@ -28,7 +28,7 @@ REQUIRES="
BUILD_REQUIRES="
haiku_devel
python_setuptools
setuptools_python
devel:libopenblas
"
BUILD_PREREQUIRES="

View File

@@ -0,0 +1,66 @@
SUMMARY="Pure python SSH implementation"
DESCRIPTION="Paramiko is a module for python 2.2 (or higher) that implements \
the SSH2 protocol for secure (encrypted and authenticated) connections to \
remote machines."
HOMEPAGE="http://www.lag.net/paramiko/"
COPYRIGHT="2003-2009 Robey Pointer"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://github.com/paramiko/paramiko/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="79bf1702ec9e0b556cbfb3e68c19091f66d98b787c6deede82c48281a6e87f36"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
pycrypto_$pythonPackage\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage
pycrypto_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
REPLACES_python="
python_paramiko
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,45 +0,0 @@
SUMMARY="Pure python SSH implementation"
DESCRIPTION="Paramiko is a module for python 2.2 (or higher) that implements \
the SSH2 protocol for secure (encrypted and authenticated) connections to \
remote machines."
HOMEPAGE="http://www.lag.net/paramiko/"
COPYRIGHT="2003-2009 Robey Pointer"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/p/paramiko/paramiko-1.16.0.tar.gz"
STATUS_HAIKU="stable"
CHECKSUM_SHA256="3297ebd3cd072f573772f7c7426939a443c62c458d54bb632ff30fd6ecf96892"
ARCHITECTURES="arm ppc x86 x86_gcc2 x86_64"
SOURCE_DIR="paramiko-${portVersion}"
PROVIDES="
python_paramiko = $portVersion
"
REQUIRES="
haiku
cmd:python
pycrypto
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python
cmd:sed
"
BUILD()
{
python setup.py build
}
INSTALL()
{
python setup.py install --prefix=$prefix
}

View File

@@ -6,45 +6,56 @@ HOMEPAGE="http://python-requests.org/
http://pypi.python.org/pypi/requests"
COPYRIGHT="2010 Yesudeep Mangalapilly"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="https://pypi.python.org/packages/source/p/pathtools/pathtools-0.1.2.tar.gz"
REVISION="3"
SOURCE_URI="https://pypi.python.org/packages/source/p/pathtools/pathtools-$portVersion.tar.gz"
CHECKSUM_SHA256="7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0"
SOURCE_DIR="pathtools-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
ARCHITECTURES="any"
PROVIDES="
pathtools = $portVersion
$portName = $portVersion
"
REQUIRES="
haiku
cmd:python2
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python2
cmd:gcc
"
BUILD()
{
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
}
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
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
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
$python setup.py install \
--single-version-externally-managed \
--root=/ --prefix=$prefix
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,84 +0,0 @@
SUMMARY="Python Imaging Library (fork)"
DESCRIPTION="
Pillow is the friendly PIL fork by Alex Clark and Contributors.
PIL is the Python Imaging Library by Fredrik Lundh and Contributors."
HOMEPAGE="https://github.com/python-imaging/Pillow
https://pypi.python.org/pypi/Pillow"
COPYRIGHT="1997-2011 by Secret Labs AB
1995-2011 by Fredrik Lundh"
LICENSE="HPND"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/P/Pillow/Pillow-$portVersion.tar.gz"
CHECKSUM_SHA256="64b0a057210c480aea99406c9391180cd866fc0fd8f0b53367e3af21b195784a"
SOURCE_DIR="Pillow-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
pillow = $portVersion
cmd:createfontdatachunk.py = $portVersion
cmd:enhancer.py = $portVersion
cmd:explode.py = $portVersion
cmd:gifmaker.py = $portVersion
cmd:painter.py = $portVersion
cmd:pilconvert.py = $portVersion
cmd:pildriver.py = $portVersion
cmd:pilfile.py = $portVersion
cmd:pilfont.py = $portVersion
cmd:pilprint.py = $portVersion
cmd:player.py = $portVersion
cmd:thresholder.py = $portVersion
cmd:viewer.py = $portVersion
"
REQUIRES="
haiku
cmd:python2
#python_setuptools
lib:libfreetype
lib:libjpeg
lib:libopenjp2
lib:libtiff
lib:libwebp
lib:libz
#cmd:tcl / tk (someday)
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
devel:libfreetype
devel:libjpeg
devel:libopenjp2
devel:libtiff
devel:libwebp
devel:libz
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:ld
cmd:python2
cmd:freetype_config
"
BUILD()
{
export INCLUDE="$(findpaths -c: B_FIND_PATH_HEADERS_DIRECTORY)"
export LIB="$(findpaths -c: B_FIND_PATH_DEVELOP_LIB_DIRECTORY)"
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
}
INSTALL()
{
export INCLUDE="$(findpaths -c: B_FIND_PATH_HEADERS_DIRECTORY)"
export LIB="$(findpaths -c: B_FIND_PATH_DEVELOP_LIB_DIRECTORY)"
# 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
}

View File

@@ -0,0 +1,120 @@
SUMMARY="Python Imaging Library (fork)"
DESCRIPTION="
Pillow is the friendly PIL fork by Alex Clark and Contributors.
PIL is the Python Imaging Library by Fredrik Lundh and Contributors."
HOMEPAGE="https://github.com/python-imaging/Pillow
https://pypi.python.org/pypi/Pillow"
COPYRIGHT="1997-2011 by Secret Labs AB
1995-2011 by Fredrik Lundh"
LICENSE="HPND"
REVISION="1"
SOURCE_URI="https://files.pythonhosted.org/packages/source/P/Pillow/Pillow-$portVersion.tar.gz"
CHECKSUM_SHA256="a0fd487fed4a35717401b7566e51a1520b34e7c0f7f2a315a6509f82bc86299f"
SOURCE_DIR="Pillow-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
devel:liblcms2
devel:libfreetype
devel:libopenjp2
devel:libtiff
devel:libwebp
devel:libz
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:ld
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\n\
lib:liblcms2\n\
lib:libfreetype\n\
lib:libjpeg\n\
lib:libopenjp2\n\
lib:libtiff\n\
lib:libwebp\n\
lib:libz\n\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:createfontdatachunk.py = $portVersion
cmd:enhancer.py = $portVersion
cmd:explode.py = $portVersion
cmd:gifmaker.py = $portVersion
cmd:painter.py = $portVersion
cmd:pilconvert.py = $portVersion
cmd:pildriver.py = $portVersion
cmd:pilfile.py = $portVersion
cmd:pilfont.py = $portVersion
cmd:pilprint.py = $portVersion
cmd:player.py = $portVersion
cmd:thresholder.py = $portVersion
cmd:viewer.py = $portVersion
"
PROVIDES_python3="$PROVIDES_python3
cmd:createfontdatachunk3.py = $portVersion
cmd:enhancer3.py = $portVersion
cmd:explode3.py = $portVersion
cmd:gifmaker3.py = $portVersion
cmd:painter3.py = $portVersion
cmd:pilconvert3.py = $portVersion
cmd:pildriver3.py = $portVersion
cmd:pilfile3.py = $portVersion
cmd:pilfont3.py = $portVersion
cmd:pilprint3.py = $portVersion
cmd:player3.py = $portVersion
cmd:thresholder3.py = $portVersion
cmd:viewer3.py = $portVersion
"
INSTALL()
{
export INCLUDE="$(findpaths -c: B_FIND_PATH_HEADERS_DIRECTORY)"
export LIB="$(findpaths -c: B_FIND_PATH_DEVELOP_LIB_DIRECTORY)"
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage != python ]; then
for f in $binDir/*.py; do
mv $f ${f%.py}3.py
done
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir
done
}

View File

@@ -0,0 +1,75 @@
SUMMARY="The PyPA recommended tool for installing Python packages"
DESCRIPTION="Install Python packages, replacement for easy_install"
HOMEPAGE="https://pypi.python.org/pypi/pip"
COPYRIGHT="2006-2014 Python Packaging Authority"
LICENSE="Python"
REVISION="1"
SOURCE_URI="https://pypi.io/packages/source/p/pip/pip-$portVersion.tar.gz"
CHECKSUM_SHA256="f62fb70e7e000e46fce12aaeca752e5281a5446977fe5a75ab4189a43b3f8793"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\n\
cmd:pip$pythonVersion\n\
cmd:pip${pythonVersion:0:1}\n\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\n\
setuptools_$pythonPackage\n\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:pip
"
REPLACES_python="
python_pip
"
REPLACES_python3="
python3_pip
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage != python ]; then
rm $binDir/pip
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir
done
}

View File

@@ -1,50 +0,0 @@
SUMMARY="The PyPA recommended tool for installing Python packages"
DESCRIPTION="Install Python packages, replacement for easy_install"
HOMEPAGE="https://pypi.python.org/pypi/pip"
COPYRIGHT="2006-2014 Python Packaging Authority"
LICENSE="Python"
REVISION="2"
SOURCE_URI="https://pypi.python.org/packages/source/p/pip/pip-$portVersion.tar.gz"
CHECKSUM_SHA256="b4c598825a6f6dc2cac65968feb28e6be6c1f7f1408493c60a07eaa731a0affd"
SOURCE_DIR="pip-$portVersion"
PYTHON_VERSION="3.6"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python3_pip = $portVersion
cmd:pip
cmd:pip3
cmd:pip$PYTHON_VERSION
"
REQUIRES="
haiku
cmd:python$PYTHON_VERSION
python3_setuptools
"
BUILD_REQUIRES="
python3_setuptools
"
BUILD_PREREQUIRES="
haiku_devel
cmd:python$PYTHON_VERSION
cmd:sed
"
BUILD()
{
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
pythonVersion=$($portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py install \
--prefix=$prefix
}

View File

@@ -5,45 +5,65 @@ RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
etc.).
"
HOMEPAGE="http://pypi.python.org/pypi/pycrypto/2.6"
SOURCE_URI="http://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.1.tar.gz"
REVISION="1"
LICENSE="pycrypto"
COPYRIGHT="2010 Dwayne C. Litzenberger"
REVISION="2"
SOURCE_URI="http://pypi.python.org/packages/source/p/pycrypto/pycrypto-$portVersion.tar.gz"
CHECKSUM_SHA256="f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c"
ARCHITECTURES="arm ppc x86 x86_gcc2 x86_64"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
pycrypto = $portVersion
$portName = $portVersion
"
REQUIRES="
haiku
cmd:python
"
BUILD_REQUIRES="
haiku_devel
devel:libgmp
"
BUILD_PREREQUIRES="
cmd:python
cmd:sed
cmd:awk
cmd:cc
cmd:autoconf
"
BUILD()
{
runConfigure ./configure
python setup.py build
}
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
lib:libgmp\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
INSTALL()
{
python setup.py install --prefix=$prefix
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
runConfigure ./configure
$python setup.py build
$python setup.py install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}
LICENSE="pycrypto"
COPYRIGHT="2010 Dwayne C. Litzenberger"

View File

@@ -1,58 +0,0 @@
SUMMARY="A generic syntax highlighter"
DESCRIPTION="It is a generic syntax highlighter for general use in all kinds \
of software such as forum systems, wikis or other applications that need to \
prettify source code. Highlights are:
* a wide range of common languages and markup formats is supported
* special attention is paid to details that increase highlighting quality
* support for new languages and formats are added easily; most languages use a \
simple regex-based lexing mechanism
* a number of output formats is available, among them HTML, RTF, LaTeX and \
ANSI sequences
* it is usable as a command-line tool and as a library
* ... and it highlights even Brainf*ck!"
HOMEPAGE="http://pygments.org/"
COPYRIGHT="2006-2013 by the Pygments team"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/P/Pygments/Pygments-$portVersion.tar.gz"
CHECKSUM_SHA256="88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81"
SOURCE_DIR="Pygments-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
pygments$secondaryArchSuffix = $portVersion
cmd:pygmentize$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:python2$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python2$secondaryArchSuffix
"
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 \
--single-version-externally-managed \
--root=/ --prefix=$prefix
}

View File

@@ -0,0 +1,81 @@
SUMMARY="A generic syntax highlighter"
DESCRIPTION="It is a generic syntax highlighter for general use in all kinds \
of software such as forum systems, wikis or other applications that need to \
prettify source code. Highlights are:
* a wide range of common languages and markup formats is supported
* special attention is paid to details that increase highlighting quality
* support for new languages and formats are added easily; most languages use a \
simple regex-based lexing mechanism
* a number of output formats is available, among them HTML, RTF, LaTeX and \
ANSI sequences
* it is usable as a command-line tool and as a library
* ... and it highlights even Brainf*ck!"
HOMEPAGE="http://pygments.org/"
COPYRIGHT="2006-2013 by the Pygments team"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/71/2a/2e4e77803a8bd6408a2903340ac498cb0a2181811af7c9ec92cb70b0308a/Pygments-$portVersion.tar.gz"
CHECKSUM_SHA256="dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc"
SOURCE_DIR="Pygments-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:pygmentize = $portVersion
"
PROVIDES_python3="$PROVIDES_python3
cmd:pygmentize3 = $portVersion
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage != python ]; then
mv $binDir/pygmentize $binDir/pygmentize3
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir
done
}

View File

@@ -23,7 +23,7 @@ REQUIRES="
BUILD_REQUIRES="
haiku_devel
cmd:sed
python_setuptools
setuptools_python
"
BUILD_PREREQUIRES="
cmd:python

View File

@@ -85,9 +85,9 @@ REPLACES_python3="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
python_setuptools
setuptools_python
sip_python # >= 4.19
python3_setuptools
setuptools_python3
sip_python3 # >= 4.19
devel:libQt5Bluetooth$secondaryArchSuffix >= 5.7
devel:libQt5Core$secondaryArchSuffix >= 5.7

View File

@@ -88,9 +88,9 @@ REPLACES_python3="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
python_setuptools
setuptools_python
sip_python # >= 4.19
python3_setuptools
setuptools_python3
sip_python3 # >= 4.19
devel:libQt5Bluetooth$secondaryArchSuffix >= 5.7
devel:libQt5Core$secondaryArchSuffix >= 5.7

View File

@@ -1,66 +0,0 @@
SUMMARY="YAML parser and emitter for Python"
DESCRIPTION="
YAML is a data serialization format designed for human readability \
and interaction with scripting languages. \
PyYAML is a YAML parser and emitter for Python.
PyYAML features a complete YAML 1.1 parser, Unicode support, \
pickle support, capable extension API, and sensible error messages. \
PyYAML supports standard YAML tags and \
provides Python-specific tags that allow to represent an arbitrary Python object.
PyYAML is applicable for a broad range of tasks from \
complex configuration files to object serialization and persistance.
"
HOMEPAGE="
http://pyyaml.org/
http://pypi.python.org/pypi/PyYAML
"
SOURCE_URI="https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz"
CHECKSUM_SHA256="c36c938a872e5ff494938b33b14aaa156cb439ec67548fcab3535bb78b0846e8"
LICENSE="MIT"
COPYRIGHT="2006 Kirill Simonov"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2 x86_64"
SOURCE_DIR="PyYAML-$portVersion"
PROVIDES="
pyyaml = $portVersion
"
REQUIRES="
haiku
cmd:python
"
#TODO: eventually depend on http://pyyaml.org/wiki/LibYAML
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
}

View File

@@ -0,0 +1,74 @@
SUMMARY="YAML parser and emitter for Python"
DESCRIPTION="
YAML is a data serialization format designed for human readability \
and interaction with scripting languages. \
PyYAML is a YAML parser and emitter for Python.
PyYAML features a complete YAML 1.1 parser, Unicode support, \
pickle support, capable extension API, and sensible error messages. \
PyYAML supports standard YAML tags and \
provides Python-specific tags that allow to represent an arbitrary Python object.
PyYAML is applicable for a broad range of tasks from \
complex configuration files to object serialization and persistance.
"
HOMEPAGE="http://pyyaml.org/"
COPYRIGHT="2006 Kirill Simonov"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://pyyaml.org/download/pyyaml/PyYAML-$portVersion.tar.gz"
CHECKSUM_SHA256="592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab"
SOURCE_DIR="PyYAML-$portVersion"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:gcc
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,49 +0,0 @@
SUMMARY="A HTTP library for Python"
DESCRIPTION="Requests is a HTTP library, written in Python, made for humans."
HOMEPAGE="http://python-requests.org/
http://pypi.python.org/pypi/requests"
COPYRIGHT="2014 Kenneth Reitz"
LICENSE="Apache v2"
REVISION="2"
SOURCE_URI="https://pypi.python.org/packages/source/r/requests/requests-$portVersion.tar.gz"
CHECKSUM_SHA256="c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f"
SOURCE_DIR="requests-$portVersion"
PYTHON_VERSION="3.6"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python3_requests = $portVersion
"
REQUIRES="
haiku
cmd:python$PYTHON_VERSION
# actually has its own copy...
#ca_root_certificates
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python$PYTHON_VERSION
cmd:gcc
"
BUILD()
{
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python$PYTHON_VERSION/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
}

View File

@@ -1,48 +0,0 @@
SUMMARY="A HTTP library for Python"
DESCRIPTION="Requests is a HTTP library, written in Python, made for humans."
HOMEPAGE="http://python-requests.org/
http://pypi.python.org/pypi/requests"
COPYRIGHT="2014 Kenneth Reitz"
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/r/requests/requests-$portVersion.tar.gz"
CHECKSUM_SHA256="c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f"
SOURCE_DIR="requests-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_requests = $portVersion
"
REQUIRES="
haiku
cmd:python2
# actually has its own copy...
#ca_root_certificates
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
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
}

View File

@@ -0,0 +1,62 @@
SUMMARY="A HTTP library for Python"
DESCRIPTION="Requests is a HTTP library, written in Python, made for humans."
HOMEPAGE="http://python-requests.org/
http://pypi.python.org/pypi/requests"
COPYRIGHT="2014 Kenneth Reitz"
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="https://github.com/kennethreitz/requests/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="48fd188aaa388b4193bf7b917cf861a00eafacad651148475bc65ffaef445627"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
REPLACES_python="
python_requests
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,48 +0,0 @@
SUMMARY="Download, build, install, upgrade, and uninstall Python packages"
DESCRIPTION="EasyInstall (easy_install) gives you a quick and painless way \
to install packages remotely by connecting to the cheeseshop or even other \
websites via HTTP. It is somewhat analogous to the CPAN and PEAR tools for \
Perl and PHP, respectively."
HOMEPAGE="https://pypi.python.org/pypi/setuptools"
COPYRIGHT="2006-2014 Python Packaging Authority"
LICENSE="Python"
REVISION="1"
SOURCE_URI="https://github.com/pypa/setuptools/archive/v$portVersion.tar.gz"
SOURCE_FILENAME="setuptools-$portVersion.tar.gz"
CHECKSUM_SHA256="90a40d54d21d4cfe55ae2c3597ed3f2a63d9e8fe768f03ff16f2a58ed97bcc32"
SOURCE_DIR="setuptools-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python3_setuptools = $portVersion
"
REQUIRES="
haiku
cmd:python3
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python3
cmd:sed
"
BUILD()
{
$portPackageLinksDir/cmd~python3/bin/python3 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
pythonVersion=$(python3 --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$portPackageLinksDir/cmd~python3/bin/python3 setup.py install \
--prefix=$prefix
}

View File

@@ -1,52 +0,0 @@
SUMMARY="Download, build, install, upgrade, and uninstall Python packages"
DESCRIPTION="EasyInstall (easy_install) gives you a quick and painless way \
to install packages remotely by connecting to the cheeseshop or even other \
websites via HTTP. It is somewhat analogous to the CPAN and PEAR tools for \
Perl and PHP, respectively."
HOMEPAGE="https://pypi.python.org/pypi/setuptools"
COPYRIGHT="2006-2014 Python Packaging Authority"
LICENSE="Python"
REVISION="2"
SOURCE_URI="https://github.com/pypa/setuptools/archive/v$portVersion.tar.gz"
SOURCE_FILENAME="setuptools-$portVersion.tar.gz"
CHECKSUM_SHA256="d3b2c63a5cb6816ace0883bc3f6aca9e7890c61d80ac0d608a183f85825a7cc0"
SOURCE_DIR="setuptools-$portVersion"
PYTHON_VERSION="3.6"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python3_setuptools = $portVersion
cmd:easy_install
cmd:easy_install_$PYTHON_VERSION
"
REQUIRES="
haiku
cmd:python$PYTHON_VERSION
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python$PYTHON_VERSION
cmd:sed
"
BUILD()
{
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 bootstrap.py
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
pythonVersion=$($portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$portPackageLinksDir/cmd~python$PYTHON_VERSION/bin/python3 setup.py install \
--prefix=$prefix --skip-build
}

View File

@@ -1,48 +0,0 @@
SUMMARY="Download, build, install, upgrade, and uninstall Python packages"
DESCRIPTION="EasyInstall (easy_install) gives you a quick and painless way \
to install packages remotely by connecting to the cheeseshop or even other \
websites via HTTP. It is somewhat analogous to the CPAN and PEAR tools for \
Perl and PHP, respectively."
HOMEPAGE="https://pypi.python.org/pypi/setuptools"
COPYRIGHT="2006-2014 Python Packaging Authority"
LICENSE="Python"
REVISION="1"
SOURCE_URI="https://github.com/pypa/setuptools/archive/v$portVersion.tar.gz"
SOURCE_FILENAME="setuptools-$portVersion.tar.gz"
CHECKSUM_SHA256="90a40d54d21d4cfe55ae2c3597ed3f2a63d9e8fe768f03ff16f2a58ed97bcc32"
SOURCE_DIR="setuptools-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_setuptools = $portVersion
"
REQUIRES="
haiku
cmd:python2
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python2
cmd:sed
"
BUILD()
{
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
}
INSTALL()
{
# GENERIC: all python_setuptools-based installs need this
pythonVersion=$(python2 --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
$portPackageLinksDir/cmd~python2/bin/python2 setup.py install \
--prefix=$prefix
}

View File

@@ -0,0 +1,98 @@
SUMMARY="Download, build, install, upgrade, and uninstall Python packages"
DESCRIPTION="EasyInstall (easy_install) gives you a quick and painless way \
to install packages remotely by connecting to the cheeseshop or even other \
websites via HTTP. It is somewhat analogous to the CPAN and PEAR tools for \
Perl and PHP, respectively."
HOMEPAGE="https://pypi.python.org/pypi/setuptools"
COPYRIGHT="2006-2014 Python Packaging Authority"
LICENSE="Python"
REVISION="1"
SOURCE_URI="https://github.com/pypa/setuptools/archive/v$portVersion.tar.gz"
SOURCE_FILENAME="setuptools-$portVersion.tar.gz"
CHECKSUM_SHA256="d3b2c63a5cb6816ace0883bc3f6aca9e7890c61d80ac0d608a183f85825a7cc0"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:sed
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\n\
cmd:easy_install_$pythonVersion\n\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\n\
\""
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:easy_install
"
REPLACES_python="
python_setuptools
"
REPLACES_python3="
python3_setuptools
"
BUILD()
{
rm -rf build*
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
# GENERIC: all python_setuptools-based installs need this
python=$portPackageLinksDir/cmd~python$pythonVersion/bin/python$pythonVersion
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
$python bootstrap.py
$python setup.py build
mv build build$pythonVersion
done
}
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
mv build$pythonVersion build
$python setup.py install \
--root=/ --prefix=$prefix --skip-build
sed -i -e "s|^#\!.*/usr/bin/env python|#!/bin/env python$pythonVersion|" $binDir/easy_install*
if [ $pythonPackage != python ]; then
rm $binDir/easy_install
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir
done
}

View File

@@ -0,0 +1,59 @@
From b2c93cc12cec881066556a0b3245acf4273f5f34 Mon Sep 17 00:00:00 2001
From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Date: Fri, 20 Jun 2014 04:57:11 +0000
Subject: sendmsg.c: fix compiling with gcc2.
diff --git a/src/twisted/python/_sendmsg.c b/src/twisted/python/_sendmsg.c
index e84c08b..e9b8677 100644
--- a/src/twisted/python/_sendmsg.c
+++ b/src/twisted/python/_sendmsg.c
@@ -175,9 +175,11 @@ static PyObject *sendmsg_sendmsg(PyObject *self, PyObject *args, PyObject *keywd
int fd;
int flags = 0;
+ size_t all_data_len = 0;
Py_ssize_t sendmsg_result, iovec_length;
struct msghdr message_header;
- struct iovec iov[1];
+ struct iovec iov[1];
+ struct cmsghdr *control_message = NULL;
PyObject *ancillary = NULL;
PyObject *iterator = NULL;
PyObject *item = NULL;
@@ -223,7 +225,7 @@ static PyObject *sendmsg_sendmsg(PyObject *self, PyObject *args, PyObject *keywd
goto finished;
}
- size_t all_data_len = 0;
+ all_data_len = 0;
/* First we need to know how big the buffer needs to be in order to
have enough space for all of the messages. */
@@ -298,7 +300,7 @@ static PyObject *sendmsg_sendmsg(PyObject *self, PyObject *args, PyObject *keywd
}
/* Unpack the tuples into the control message. */
- struct cmsghdr *control_message = CMSG_FIRSTHDR(&message_header);
+ control_message = CMSG_FIRSTHDR(&message_header);
while ( (item = PyIter_Next(iterator)) && control_message!=NULL ) {
int type, level;
Py_ssize_t data_len;
@@ -505,12 +507,13 @@ static PyObject *sendmsg_recvmsg(PyObject *self, PyObject *args, PyObject *keywd
static PyObject *sendmsg_getsockfam(PyObject *self, PyObject *args,
PyObject *keywds) {
int fd;
+ socklen_t sz;
struct sockaddr sa;
static char *kwlist[] = {"fd", NULL};
if (!PyArg_ParseTupleAndKeywords(args, keywds, "i", kwlist, &fd)) {
return NULL;
}
- socklen_t sz = sizeof(sa);
+ sz = sizeof(sa);
if (getsockname(fd, &sa, &sz)) {
PyErr_SetFromErrno(sendmsg_socket_error);
return NULL;
--
2.11.0

View File

@@ -24,14 +24,45 @@ COPYRIGHT="2001-2013 Twisted project members"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/twisted/twisted/archive/twisted-$portVersion.tar.gz"
CHECKSUM_SHA256="458a917dfd61c1d480b3efa024c702890c201667c4f28ce0d5b0f1d22e4c7403"
PATCHES="python_twisted-$portVersion.patchset"
CHECKSUM_SHA256="7fcf6aa05e9dc91a2ce78ac079652001fe704a74149c2fbbb7649133c2b2bb1a"
PATCHES="twisted-$portVersion.patchset"
SOURCE_DIR="twisted-twisted-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
PROVIDES="
python_twisted = $portVersion
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:gcc
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\n\
zope_interface_$pythonPackage\n\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:cftp
cmd:ckeygen
cmd:conch
@@ -42,39 +73,48 @@ PROVIDES="
cmd:tap2rpm
cmd:tkconch
cmd:trial
cmd:twist
cmd:twistd
"
REQUIRES="
haiku
python_zope.interface >= 3.6.0
cmd:python2
REPLACES_python="
python_twisted
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
python_zope.interface >= 3.6.0
PROVIDES_python3="$PROVIDES_python3
cmd:cftp3
cmd:ckeygen3
cmd:conch3
cmd:mailmail3
cmd:manhole3
cmd:pyhtmlizer3
cmd:tap2deb3
cmd:tap2rpm3
cmd:tkconch3
cmd:trial3
cmd:twist3
cmd:twistd3
"
BUILD_PREREQUIRES="
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
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
$python setup.py install \
--single-version-externally-managed \
--root=/ --prefix=$prefix
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage != python ]; then
for f in $binDir/*; do
mv $f ${f}3
done
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir
done
}

View File

@@ -19,42 +19,54 @@ COPYRIGHT="2008-2014 Andrey Petrov and contributors"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/shazow/urllib3/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="2bc87c7b9af197657f407afe016e50eb209238832b82e80a7b4d10899bf8fea0"
SOURCE_DIR="urllib3-$portVersion"
CHECKSUM_SHA256="8232fd4c28f7463aaa20894a3fc9bbacb4992b9f6d90705a1a396690e93fc0a6"
ARCHITECTURES="x86 x86_gcc2 x86_64"
ARCHITECTURES="any"
PROVIDES="
urllib3 = $portVersion
$portName = $portVersion
"
REQUIRES="
haiku
cmd:python2
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
"
BUILD_PREREQUIRES="
cmd:python2
cmd:gcc
"
BUILD()
{
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
}
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
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
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
$python setup.py install \
--prefix=$prefix
python=python$pythonVersion
installLocation=$prefix/lib/$python/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,52 +0,0 @@
SUMMARY="Filesystem events monitoring"
DESCRIPTION="Python API and shell utilities to monitor file system events."
HOMEPAGE="https://pypi.python.org/pypi/watchdog"
COPYRIGHT="2011 Yesudeep Mangalapilly
2012 Google, Inc."
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/w/watchdog/watchdog-$portVersion.tar.gz"
CHECKSUM_SHA256="7e65882adb7746039b6f3876ee174952f8eaaa34491ba34333ddf1fe35de4162"
SOURCE_DIR="watchdog-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_watchdog = $portVersion
cmd:watchmedo
"
REQUIRES="
haiku
cmd:python2
argh
pathtools
pyyaml
"
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
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 \
--single-version-externally-managed \
--root=/ --prefix=$prefix
}

View File

@@ -0,0 +1,77 @@
SUMMARY="Filesystem events monitoring"
DESCRIPTION="Python API and shell utilities to monitor file system events."
HOMEPAGE="https://pypi.python.org/pypi/watchdog"
COPYRIGHT="2011 Yesudeep Mangalapilly
2012 Google, Inc."
LICENSE="Apache v2"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/w/watchdog/watchdog-$portVersion.tar.gz"
CHECKSUM_SHA256="7e65882adb7746039b6f3876ee174952f8eaaa34491ba34333ddf1fe35de4162"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:gcc
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\n\
argh_$pythonPackage\n\
pathtools_$pythonPackage\n\
pyyaml_$pythonPackage\n\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
PROVIDES_python="$PROVIDES_python
cmd:watchmedo = $portVersion
"
PROVIDES_python3="$PROVIDES_python3
cmd:watchmedo3 = $portVersion
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
# GENERIC: all python_setuptools-based installs need this
python=python$pythonVersion
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
if [ $pythonPackage != python ]; then
mv $binDir/watchmedo $binDir/watchmedo3
fi
packageEntries $pythonPackage \
$prefix/lib/python* \
$binDir
done
}

View File

@@ -0,0 +1,73 @@
SUMMARY="Interfaces for Python"
DESCRIPTION="
This package provides an implementation of 'object interfaces' for Python. \
Interfaces are a mechanism for labeling objects as conforming to a given \
API or contract. So, this package can be considered as implementation of the \
Design By Contract methodology support in Python.
For detailed documentation, please see http://docs.zope.org/zope.interface"
HOMEPAGE="http://pypi.python.org/pypi/zope.interface"
COPYRIGHT="2004-2014 Zope Foundation and Contributors"
LICENSE="ZPL 2.1"
REVISION="1"
SOURCE_URI="https://pypi.io/packages/source/z/zope.interface/zope.interface-$portVersion.tar.gz"
CHECKSUM_SHA256="8780ef68ca8c3fe1abb30c058a59015129d6e04a6b02c2e56b9c7de6078dfa88"
SOURCE_DIR="zope.interface-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:gcc
"
PYTHON_PACKAGES=(python python3)
PYTHON_VERSIONS=(2.7 3.6)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
setuptools_$pythonPackage"
BUILD_PREREQUIRES="$BUILD_PREREQUIRES
cmd:python$pythonVersion"
done
REPLACES_python="
python_zope.interface
"
INSTALL()
{
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
# GENERIC: all python_setuptools-based installs need this
python=python$pythonVersion
pythonVersion=$($python --version 2>&1 | sed 's/Python //' | head -c3)
installLocation=$prefix/lib/python$pythonVersion/vendor-packages/
export PYTHONPATH=$installLocation:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}

View File

@@ -1,42 +0,0 @@
SUMMARY="Interfaces for Python"
DESCRIPTION="
This package provides an implementation of 'object interfaces' for Python. \
Interfaces are a mechanism for labeling objects as conforming to a given \
API or contract. So, this package can be considered as implementation of the \
Design By Contract methodology support in Python.
For detailed documentation, please see http://docs.zope.org/zope.interface"
HOMEPAGE="http://pypi.python.org/pypi/zope.interface"
COPYRIGHT="2004-2014 Zope Foundation and Contributors"
LICENSE="ZPL 2.1"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/z/zope.interface/zope.interface-$portVersion.tar.gz"
CHECKSUM_SHA256="2e221a9eec7ccc58889a278ea13dcfed5ef939d80b07819a9a8b3cb1c681484f"
SOURCE_DIR="zope.interface-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_zope.interface = $portVersion
"
REQUIRES="
haiku
cmd:python2
"
BUILD_REQUIRES=""
BUILD_PREREQUIRES="
haiku_devel
cmd:python2
"
BUILD()
{
$portPackageLinksDir/cmd~python2/bin/python2 setup.py build
}
INSTALL()
{
$portPackageLinksDir/cmd~python2/bin/python2 setup.py install \
--prefix=$prefix
}