#!/bin/sh
#
# Copyright 2006 Paul Blazejowski <paulb@blazebox.homeip.net>
# Available under the terms of the GNU GPL.
#

NAME="twisted"
VERSION="9.0.0"
REVISION="1"

PKG_SOURCEURL='http://tmrc.mit.edu/mirror/twisted/Twisted/$VER_MAJ.0/Twisted-${VERSION}.tar.bz2'

. $DLG_ROOT/config
. $DLG_ROOT/SCRIPTS/dropline-functions.sh

# This package gets it's CFLAGS info from what was compiled into Python.
# Changing this variable is mainly a formality caused by this.
if [ "${PKG_ARCH%86}" != "$PKG_ARCH" ]; then
    PKG_ARCH=i486
fi


PKG_LOCALSTATEDIR=/var

cflags
cxxflags
prepare
analyzesource
	
spewdo "cd $PKG_SRCROOT"
spewdo "python setup.py install --prefix=$PKG_PREFIX --root=$PKG_STAGEROOT"

tidydocumentation
analyzebinaries
finalizepackage
packagize
cleanup

