mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
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:
120
dev-python/twisted/twisted-17.1.0.recipe
Normal file
120
dev-python/twisted/twisted-17.1.0.recipe
Normal file
@@ -0,0 +1,120 @@
|
||||
SUMMARY="An event-driven networking engine written in Python"
|
||||
DESCRIPTION="Twisted is an event-based framework for internet applications.
|
||||
It includes modules for many different purposes, including:
|
||||
|
||||
- twisted.application: A "Service" system that allows you to organize your \
|
||||
application in hierarchies with well-defined startup and dependency semantics.
|
||||
- twisted.cred: A general credentials and authentication system that \
|
||||
facilitates pluggable authentication backends.
|
||||
- twisted.enterprise: Asynchronous database access, compatible with any \
|
||||
Python DBAPI2.0 modules.
|
||||
- twisted.internet: Low-level asynchronous networking APIs that allow you \
|
||||
to define your own protocols that run over certain transports.
|
||||
- twisted.manhole: A tool for remote debugging of your services which gives \
|
||||
you a Python interactive interpreter.
|
||||
- twisted.protocols: Basic protocol implementations and helpers for your own \
|
||||
protocol implementations.
|
||||
- twisted.python: A large set of utilities for Python tricks, reflection, \
|
||||
text processing, and anything else.
|
||||
- twisted.spread: A secure, fast remote object system.
|
||||
- twisted.trial: A unit testing framework that integrates well with \
|
||||
Twisted-based code."
|
||||
HOMEPAGE="http://twistedmatrix.com"
|
||||
COPYRIGHT="2001-2013 Twisted project members"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/twisted/twisted/archive/twisted-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="7fcf6aa05e9dc91a2ce78ac079652001fe704a74149c2fbbb7649133c2b2bb1a"
|
||||
PATCHES="twisted-$portVersion.patchset"
|
||||
SOURCE_DIR="twisted-twisted-$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\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
|
||||
cmd:mailmail
|
||||
cmd:manhole
|
||||
cmd:pyhtmlizer
|
||||
cmd:tap2deb
|
||||
cmd:tap2rpm
|
||||
cmd:tkconch
|
||||
cmd:trial
|
||||
cmd:twist
|
||||
cmd:twistd
|
||||
"
|
||||
REPLACES_python="
|
||||
python_twisted
|
||||
"
|
||||
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
|
||||
"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user