wok-next diff python-wxpython3/receipt @ rev 21010
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Oct 12 16:40:30 2018 +0300 (2018-10-12) |
parents | |
children | d5aab818505e |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python-wxpython3/receipt Fri Oct 12 16:40:30 2018 +0300 1.3 @@ -0,0 +1,51 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="python-wxpython3" 1.7 +VERSION="3.0.2.0" 1.8 +CATEGORY="x-window" 1.9 +SHORT_DESC="GUI toolkit for the Python programming language" 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +LICENSE="LGPL" 1.12 +WEB_SITE="https://www.wxpython.org/" 1.13 + 1.14 +TARBALL="wxPython-src-$VERSION.tar.bz2" 1.15 +WGET_URL="$SF_MIRROR/wxpython/$TARBALL" 1.16 + 1.17 +BUILD_DEPENDS="python-dev wxWidgets-dev mesa-dev glu-dev libjpeg-turbo-dev \ 1.18 +tiff-dev" 1.19 +SPLIT="$PACKAGE-dev" 1.20 + 1.21 +compile_rules() { 1.22 + export CXXFLAGS="-Wno-narrowing" 1.23 + mv wxPython/wx/tools/Editra/editra wxPython/wx/tools/Editra/Editra 1.24 + 1.25 + ./configure \ 1.26 + --with-gtk=2 \ 1.27 + --with-opengl \ 1.28 + --enable-unicode \ 1.29 + --with-regex=sys \ 1.30 + --with-libpng=sys \ 1.31 + --with-libxpm=sys \ 1.32 + --with-libjpeg=sys \ 1.33 + --with-libtiff=sys \ 1.34 + --disable-precomp-headers \ 1.35 + --without-sdl \ 1.36 + $CONFIGURE_ARGS && 1.37 + make $MAKEFLAGS || return 1 1.38 + 1.39 + cd $src/wxPython 1.40 + python setup.py WXPORT=gtk2 UNICODE=1 build && 1.41 + python setup.py WXPORT=gtk2 UNICODE=1 install --root=$DESTDIR 1.42 +} 1.43 + 1.44 +genpkg_rules() { 1.45 + case $PACKAGE in 1.46 + python-wxpython3) 1.47 + copy @std 1.48 + DEPENDS="python wxWidgets" # false positive: perl 1.49 + ;; 1.50 + *-dev) 1.51 + copy @dev 1.52 + ;; 1.53 + esac 1.54 +}