wok-next diff pygobject3/receipt @ rev 20342
gkII: tiny png patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 17 15:57:17 2017 +0100 (2017-11-17) |
parents | e70c0b9c5adf |
children | 10df65db91ad |
line diff
1.1 --- a/pygobject3/receipt Fri Jun 16 15:39:43 2017 +0300 1.2 +++ b/pygobject3/receipt Fri Nov 17 15:57:17 2017 +0100 1.3 @@ -1,31 +1,44 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="pygobject3" 1.8 -SOURCE="pygobject" 1.9 -VERSION="3.18.2" 1.10 +VERSION="3.26.0" 1.11 CATEGORY="development" 1.12 -SHORT_DESC="Python bindings for the GObject3 library" 1.13 +SHORT_DESC="Python Bindings for GLib/GObject/GIO/GTK+" 1.14 MAINTAINER="psychomaniak@xakep.ru" 1.15 LICENSE="LGPL2.1" 1.16 -TARBALL="$SOURCE-$VERSION.tar.xz" 1.17 -WEB_SITE="http://live.gnome.org/PyGObject" 1.18 -WGET_URL="$GNOME_MIRROR/$SOURCE/${VERSION%.*}/$TARBALL" 1.19 +WEB_SITE="https://wiki.gnome.org/Projects/PyGObject" 1.20 1.21 -PROVIDE="python-gi" 1.22 -DEPENDS="python pycairo glib libffi gtk-girepository" 1.23 -BUILD_DEPENDS="$DEPENDS python python-dev pkg-config glib-dev \ 1.24 -pycairo-dev cairo-dev libffi-dev gobject-introspection-dev" 1.25 +TARBALL="pygobject-$VERSION.tar.xz" 1.26 +WGET_URL="$GNOME_MIRROR/pygobject/${VERSION%.*}/$TARBALL" 1.27 1.28 -# Rules to configure and make the package. 1.29 -compile_rules() 1.30 -{ 1.31 +BUILD_DEPENDS="automake glib-dev libtool python-dev gobject-introspection-dev \ 1.32 +cairo-dev pycairo-dev" 1.33 +SPLIT="pygobject3-dev" 1.34 + 1.35 +compile_rules() { 1.36 + NOCONFIGURE=1 ./autogen.sh && 1.37 ./configure $CONFIGURE_ARGS > /dev/null 2>&1 # create ./libtool 1.38 ./configure $CONFIGURE_ARGS && 1.39 - make && make install 1.40 + sed -i 's| -shared | -Wl,-O1,--as-needed\0|g' libtool && 1.41 + make && 1.42 + make install 1.43 } 1.44 1.45 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.46 -genpkg_rules() 1.47 -{ 1.48 - cp -a $install/* $fs 1.49 +genpkg_rules() { 1.50 + case $PACKAGE in 1.51 + pygobject3) 1.52 + copy @std 1.53 + DEPENDS="cairo glib gobject-introspection libffi python" 1.54 + PROVIDE="python-gi" 1.55 + ;; 1.56 + *-dev) 1.57 + copy @dev 1.58 + DEPENDS="pygobject3 bzip2-dev cairo-dev fontconfig-dev \ 1.59 + freetype-dev glib-dev gobject-introspection-dev harfbuzz-dev \ 1.60 + libffi-dev libpng16-dev libxml2-dev pcre-dev util-linux-blkid-dev \ 1.61 + util-linux-mount-dev util-linux-uuid-dev xorg-libX11-dev \ 1.62 + xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \ 1.63 + xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev" 1.64 + ;; 1.65 + esac 1.66 }