wok-6.x view wxpython/receipt @ rev 25565
Reenable rpc for glibc, fix gpxe grub4dos receipt, fix linld url
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue May 09 17:24:00 2023 +0000 (18 months ago) |
parents | 0c04fc34847a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="wxpython"
4 VERSION="2.8.12.1"
5 CATEGORY="x-window"
6 SHORT_DESC="GUI toolkit for the Python programming language."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL"
9 SOURCE="wxPython"
10 TARBALL="$SOURCE-src-$VERSION.tar.bz2"
11 WEB_SITE="https://www.wxpython.org/"
12 WGET_URL="$SF_MIRROR/wxpython/$TARBALL"
14 DEPENDS="python wxWidgets28"
15 BUILD_DEPENDS="python-dev wxWidgets28-dev mesa-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$SOURCE 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/wxPython-src/!d;s|.*wxPython-src-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mv wxPython/wx/tools/Editra/editra wxPython/wx/tools/Editra/Editra
29 ./configure \
30 --with-gtk=2 \
31 --with-opengl \
32 --enable-unicode \
33 --with-regex=sys \
34 --with-libpng=sys \
35 --with-libxpm=sys \
36 --with-libjpeg=sys \
37 --with-libtiff=sys \
38 --disable-precomp-headers \
39 --without-sdl \
40 $CONFIGURE_ARGS &&
41 make $MAKEFLAGS
42 cd $src/wxPython
43 patch -Np2 -i $stuff/wxpython-cairo.patch
44 python setup.py WXPORT=gtk2 UNICODE=1 build
45 python setup.py WXPORT=gtk2 UNICODE=1 install --root=$DESTDIR
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/lib
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib/python* $fs/usr/lib
54 }