#Maintainer: Shador <futur~DOT~andy~AT~googlemail.com>

pkgname=wxPython
pkgver=2.8.10.1
pkgrel=2ab
arch=x86_64
source=("http://downloads.sourceforge.net/wxpython/wxPython-src-$pkgver.tar.bz2" "editra-ebmlib.diff")
sourcetemplate="http://gaia.homelinux.org/salix/packages/$pkgname/$pkgver/"
url='http://www.wxpython.org/'
docs=("README.1st.txt")

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (Python bindings for the wxWidgets toolkit)"
"wxPython is a GUI toolkit for the Python programming language. It"
"allows Python programmers to create programs with a robust, highly"
"functional graphical user interface, simply and easily. It is"
"implemented as a Python extension module (native code) that wraps the"
"popular wxWidgets cross platform GUI library, which is written in C++."
)


build() {
	cd $startdir/src/wxPython-src-$pkgver/wxPython/
	patch -p2 -i $startdir/editra-ebmlib.diff || exit 1
	python setup.py WXPORT=gtk2 UNICODE=1 build install --prefix=/usr --root=$startdir/pkg || return 1
	install -vd $startdir/pkg/usr/doc/$pkgname-$pkgver/
	cp -r docs/* $startdir/pkg/usr/doc/$pkgname-$pkgver/
}