wxPython: use pycompile xbps trigger.
This commit is contained in:
parent
abdc7b519c
commit
57f3f9048c
|
@ -1,11 +1,12 @@
|
|||
# Template build file for 'wxPython'
|
||||
pkgname=wxPython
|
||||
version=2.8.12.1
|
||||
revision=4
|
||||
revision=5
|
||||
wrksrc="${pkgname}-src-${version}"
|
||||
makedepends="pkg-config zlib-devel libpng-devel libjpeg-turbo-devel libXpm-devel
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="zlib-devel libpng-devel libjpeg-turbo-devel libXpm-devel
|
||||
tiff-devel expat-devel libX11-devel libXinerama-devel GConf-devel cairo-devel
|
||||
gtk+-devel MesaLib-devel wxGTK-devel python-devel"
|
||||
gtk+-devel MesaLib-devel glu-devel wxGTK-devel python-devel"
|
||||
short_desc="The wxWidgets GUI toolkit library (Python Bindings)"
|
||||
maintainer="davehome <davehome@redthumb.info.tm>"
|
||||
homepage="http://www.wxwidgets.org/"
|
||||
|
@ -14,8 +15,6 @@ distfiles="${SOURCEFORGE_SITE}/wxpython/${pkgname}-src-${version}.tar.bz2"
|
|||
checksum=1f3f153d9f1504c6ce2d2c4b23e940b8f58b81f4cba35cda1a5bb31142243cd0
|
||||
|
||||
pre_configure() {
|
||||
msg_normal "Replacing python interpreter with python2.7...\n"
|
||||
find . -type f -exec sed -i 's/env python/env python2\.7/' {} \;
|
||||
mv wxPython/wx/tools/Editra/editra wxPython/wx/tools/Editra/Editra
|
||||
}
|
||||
|
||||
|
@ -28,12 +27,12 @@ do_configure() {
|
|||
}
|
||||
|
||||
do_build() {
|
||||
cd wxPython && \
|
||||
cd wxPython
|
||||
python2.7 setup.py WXPORT=gtk2 UNICODE=1 build
|
||||
}
|
||||
|
||||
do_install() {
|
||||
cd wxPython && \
|
||||
cd wxPython
|
||||
python2.7 setup.py WXPORT=gtk2 UNICODE=1 install --root="${DESTDIR}"
|
||||
vinstall ../docs/licence.txt 0644 \
|
||||
"usr/share/licenses/${pkgname}" LICENSE
|
||||
|
@ -41,7 +40,7 @@ do_install() {
|
|||
|
||||
wxPython-devel_package() {
|
||||
depends="wxGTK-devel wxPython>=${version}"
|
||||
short_desc="${short_desc} -- development files"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
}
|
||||
|
@ -49,6 +48,7 @@ wxPython-devel_package() {
|
|||
|
||||
wxPython_package() {
|
||||
depends="python"
|
||||
pycompile_module="wx-2.8-gtk2-unicode"
|
||||
pkg_install() {
|
||||
vmove usr
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue