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="458a917dfd61c1d480b3efa024c702890c201667c4f28ce0d5b0f1d22e4c7403" PATCHES="python_twisted-$portVersion.patchset" SOURCE_DIR="twisted-twisted-$portVersion" ARCHITECTURES="x86 x86_gcc2 x86_64" PROVIDES=" python_twisted = $portVersion cmd:cftp cmd:ckeygen cmd:conch cmd:mailmail cmd:manhole cmd:pyhtmlizer cmd:tap2deb cmd:tap2rpm 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 }