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 the following:

- 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"
SOURCE_URI="https://twistedmatrix.com/Releases/Twisted/13.2/Twisted-13.2.0.tar.bz2"
CHECKSUM_SHA256="095175638c019ac7c0604f4c291724a16ff1acd062e181b01293bf4dcbc62cf3"
PATCHES="python_twisted-13.2.0.patchset"
LICENSE="MIT"
COPYRIGHT="2001-2013 Twisted project members"
REVISION="2"

ARCHITECTURES="x86 x86_gcc2 x86_64"

SOURCE_DIR="Twisted-$portVersion"

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:python
	"

BUILD_REQUIRES="
	python_zope.interface >= 3.6.0
	"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:python
	cmd:gcc
	"

BUILD()
{
	$portPackageLinksDir/cmd~python/bin/python setup.py build
}

INSTALL()
{
	$portPackageLinksDir/cmd~python/bin/python setup.py install \
		--prefix=$prefix
}
