void-packages/srcpkgs/wxPython/template

48 lines
1.3 KiB
Bash

# Template file for 'wxPython'
pkgname=wxPython
version=3.0.2.0
revision=11
hostmakedepends="pkg-config"
makedepends="
zlib-devel libpng-devel libjpeg-turbo-devel tiff-devel expat-devel gtk+-devel
libSM-devel MesaLib-devel glu-devel
libnotify-devel python-devel wxWidgets-devel"
depends="python"
short_desc="Python Bindings for the wxWidgets GUI toolkit library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="WxWindows-exception-3.1"
homepage="https://www.wxpython.org/"
distfiles="${SOURCEFORGE_SITE}/wxpython/${pkgname}-src-${version}.tar.bz2"
checksum=d54129e5fbea4fb8091c87b2980760b72c22a386cb3b9dd2eebc928ef5e8df61
if [ -n "${CROSS_BUILD}" ]; then
hostmakedepends+=" python"
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/python${py2_ver}"
fi
pre_configure() {
mv wxPython/wx/tools/Editra/{editra,Editra}
}
do_build() {
cd wxPython
python2.7 setup.py build
}
do_install() {
cd wxPython
# The path where includes are going to be installed is prefixed with WXPREFIX obtained
# from 'wx-config --prefix' but in a cross build this is '$XBPS_CROSS_BASE/usr'.
sed -i -e "s|WXPREFIX +|'/usr' +|" config.py
python2.7 setup.py install --root=${DESTDIR}
vlicense ../docs/licence.txt LICENSE
}
wxPython-devel_package() {
depends="wxWidgets-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}