Merged haikuports/haikuports into master

This commit is contained in:
Vale Tolpegin
2014-12-08 15:48:34 -05:00
5 changed files with 340 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
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"
SRC_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="
python_argh = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
cmd:python
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
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,66 @@
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
"
SRC_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="
python_pyyaml = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
cmd:python
"
#TODO: eventually depend on http://pyyaml.org/wiki/LibYAML
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
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,64 @@
SUMMARY="HTTP library with thread-safe connection pooling, file post, and more."
DESCRIPTION="
- Re-use the same socket connection for multiple requests
(HTTPConnectionPool and HTTPSConnectionPool)
(with optional client-side certificate verification).
- File posting (encode_multipart_formdata).
- Built-in redirection and retries (optional).
- Supports gzip and deflate decoding.
- Thread-safe and sanity-safe.
- Works with AppEngine, gevent, and eventlib.
- Tested on Python 2.6+, Python 3.2+, and PyPy, with 100% unit test coverage.
- Small and easy to understand codebase perfect for extending and building upon.
For a more comprehensive solution, have a look at \
Requests <http://python-requests.org/> which is also powered by urllib3
"
HOMEPAGE="
http://urllib3.readthedocs.org/
https://pypi.python.org/pypi/urllib3
"
SRC_URI="https://github.com/shazow/urllib3/archive/1.9.1.tar.gz"
CHECKSUM_SHA256="baf4dbc6d78f4a7bb28a44d3772cd8f3b24df5282f5cb72f3d85106aa06cf2a3"
LICENSE="MIT"
COPYRIGHT="2008-2014 Andrey Petrov and contributors"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2 x86_64"
SOURCE_DIR="urllib3-$portVersion"
PROVIDES="
python_urllib3 = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
cmd:python
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
"
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,58 @@
SUMMARY="Filesystem events monitoring"
DESCRIPTION="Python API and shell utilities to monitor file system events."
HOMEPAGE="https://pypi.python.org/pypi/watchdog"
SRC_URI="https://pypi.python.org/packages/source/w/watchdog/watchdog-0.8.2.tar.gz"
CHECKSUM_SHA256="33a9ab3ce2e6b1aca4d2a50752231668d69bdba4ab096d9742195ccfbef1e023"
LICENSE="Apache v2"
COPYRIGHT="
2011 Yesudeep Mangalapilly
2012 Google, Inc.
"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2 x86_64"
SOURCE_DIR="watchdog-$portVersion"
PROVIDES="
python_watchdog = $portVersion
cmd:watchmedo
"
REQUIRES="
haiku >= $haikuVersion
cmd:python
python_argh
python_pathtools
python_pyyaml
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
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,97 @@
SUMMARY="Library for Support Vector Machines"
DESCRIPTION="
Libsvm is a simple, easy-to-use, and efficient software for SVM \
classification and regression. It solves C-SVM classification, nu-SVM \
classification, one-class-SVM, epsilon-SVM regression, and nu-SVM \
regression. It also provides an automatic model selection tool for \
C-SVM classification."
HOMEPAGE="http://www.csie.ntu.edu.tw/~cjlin/libsvm/"
SRC_URI="git+https://github.com/cjlin1/libsvm#8f3d96e"
REVISION="1"
LICENSE="BSD (3-clause)"
COPYRIGHT="2000-2014 Chih-Chung Chang and Chih-Jen Lin"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
libsvm = $portVersion
lib:libsvm
"
REQUIRES="
haiku >= $haikuVersion
lib:libstdc++
"
BUILD_PREREQUIRES="
haiku >= $haikuVersion
cmd:make
cmd:gcc
cmd:g++
cmd:sed
"
BUILD_REQUIRES="
haiku_devel
"
PATCH()
{
sed -e 's/-lm//g' -i Makefile
}
BUILD()
{
make lib $jobArgs
make $jobArgs
}
INSTALL()
{
mkdir -p $binDir
mkdir -p $libDir
mkdir -p $includeDir
cp svm-train $binDir/svm-train
cp svm-predict $binDir/svm-predict
cp svm-scale $binDir/svm-scale
cp tools/checkdata.py $binDir/svm-checkdata
cp tools/subset.py $binDir/svm-subset
cp tools/easy.py $binDir/svm-easy
cp tools/grid.py $binDir/svm-grid
packageEntries tools $binDir
cp libsvm.so.2 $libDir
cp svm.h $includeDir
prepareInstalledDevelLibs libsvm
packageEntries devel $developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libsvm_devel = $portVersion
devel:libsvm
"
REQUIRES_devel="
libsvm == $portVersion base
"
# ----- tools package -------------------------------------------------------
PROVIDES_tools="
libsvm_tools = $portVersion
cmd:svm_train
cmd:svm_predict
cmd:svm_scale
cmd:svm_checkdata
cmd:svm_subset
cmd:svm_easy
cmd:svm_grid
"
REQUIRES_tools="
haiku >= $haikuVersion
lib:libstdc++
cmd:python
"