summaryrefslogtreecommitdiffstats
path: root/extra/wxpython/Pkgfile
blob: 203cb32495d9bea55f04dccc6843263b3f703e11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Description: Boîte à outils graphiique wxWidgets pour Python.
# URL: http://www.wxpython.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: 
# Run on:

name=wxpython
version=2.8.9.2
release=1
source=( http://switch.dl.sourceforge.net/sourceforge/$name/wxPython-src-$version.tar.bz2 \
	editra-ebmlib.diff)

build() {
	cd wxPython-src-$version/wxPython
	patch -Np2 -i $SRC/editra-ebmlib.diff
	install -d $PKG/usr
	export \
	CFLAGS="$CFLAGS -fno-strict-aliasing" \
	CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"

	python2 setup.py \
	WXPORT=gtk2 \
	UNICODE=1 \
	BUILD_GLCANVAS=1 \
	build install --root=$PKG
	find $PKG -type f \
	\( \
		-name 'AUTHORS' \
		-o -name 'COPYING' \
		-o -name 'INSTALL' \
		-o -name 'NEWS' \
		-o -name 'THANKS' \
		-o -name 'TODO' \
		-o -name 'TODO.txt' \
		-o -name 'README' \
		-o -name 'README.txt' \
	\) -delete

}