void-packages/srcpkgs/wxPython/template
2018-01-14 11:35:24 +01:00

49 lines
1.4 KiB
Bash

# Template file for 'wxPython'
pkgname=wxPython
version=3.0.2.0
revision=5
wrksrc="${pkgname}-src-${version}"
hostmakedepends="pkg-config"
makedepends="
zlib-devel libpng-devel libjpeg-turbo-devel tiff-devel expat-devel gtk+-devel
libSM-devel MesaLib-devel glu-devel webkitgtk2-devel
libnotify-devel python-devel wxWidgets-devel"
depends="python"
pycompile_module="wx-3.0-gtk2 wxversion.py"
short_desc="The wxWidgets GUI toolkit library (Python Bindings)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.wxpython.org/"
license="wxWindows"
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
}
}