Files
haikuports/dev-python/twisted/python_twisted-16.1.1.recipe
2016-04-14 21:16:57 +00:00

83 lines
2.5 KiB
Bash

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://pypi.python.org/packages/source/T/Twisted/Twisted-$portVersion.tar.bz2"
CHECKSUM_SHA256="fe7d001d9a803ed26cd0fd2f69fa4212ff025f3af6ef1a559d905fe551ab04e9"
PATCHES="python_twisted-$portVersion.patchset"
SOURCE_DIR="Twisted-$portVersion"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
python_twisted = $portVersion
cmd:cftp
cmd:ckeygen
cmd:conch
cmd:lore
cmd:mailmail
cmd:manhole
cmd:pyhtmlizer
cmd:tap2deb
cmd:tap2rpm
cmd:tapconvert
cmd:tkconch
cmd:trial
cmd:twistd
"
REQUIRES="
haiku
python_zope.interface >= 3.6.0
cmd:python2
"
BUILD_REQUIRES="
haiku_devel
python_setuptools
python_zope.interface >= 3.6.0
"
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
}