wok-next view glib/receipt @ rev 19778

glib: no more libgio package:
As ldd show, libgio-2.0.so (from former libgio package) depends on libgobject-2.0.so.0, libgmodule-2.0.so.0, libglib-2.0.so.0 (from former glib package): libgio package depends on glib package.
In other hand, binaries from former glib package (gsettings, gapplication, gresource, gio-querymodules, glib-compile-resources, gdbus, gio) depends on libglib-2.0.so.0: glib package depends on libgio package.

Solution: packages was combined. Use 'glib' instead of 'libgio', as well as glib-dev instead of libgio-dev.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jun 16 14:56:07 2017 +0300 (2017-06-16)
parents 107066b600c7
children 5ff41aaf68d9
line source
1 # SliTaz package receipt v2.
3 PACKAGE="glib"
4 VERSION="2.50.3"
5 CATEGORY="x-window"
6 SHORT_DESC="C routines"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.gtk.org/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS="perl indent python zlib-dev libffi-dev gettext-tools elfutils-dev \
16 pcre-dev gtk-doc libxslt libxml2-tools dbus-dev util-linux-mount-dev"
17 BUILD_DEPENDS_arm="pcre-dev libffi-dev zlib-dev elfutils-dev libxml2-dev"
18 SPLIT="glib-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 case "$ARCH" in
24 i?86)
25 ./configure \
26 --sysconfdir=/etc \
27 --with-pcre=system \
28 $CONFIGURE_ARGS ;;
29 arm*)
30 # Native ARM build --> if ARCH != SLITAZ_ARCH ?
31 export LD_LIBRARY_PATH=/cross/$ARCH/sysroot/usr/lib:/usr/lib:/lib
32 export PKG_CONFIG_PATH=/cross/$ARCH/sysroot/usr/lib/pkgconfig
33 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib -Wl,-rpath=/cross/$ARCH/sysroot/usr/lib"
35 # Glib
36 export glib_cv_stack_grows=${glib_cv_stack_grows=no}
37 export glib_cv_uscore=${glib_cv_uscore=no}
38 export ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=no}
39 export ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=no}
40 export ac_cv_type_long_long=${ac_cv_type_long_long=yes}
41 CC="$HOST_SYSTEM-gcc" \
42 LIBTOOL="$HOST_SYSTEM-libtool" \
43 ./configure \
44 --sysconfdir=/etc \
45 --with-pcre=system \
46 --build=i486-slitaz-linux \
47 --host=$ARCH-slitaz-linux-gnueabi \
48 --enable-shared=yes \
49 --enable-static=yes \
50 --disable-rpath ;;
51 esac &&
52 make &&
53 make DESTDIR=/ install &&
54 make DESTDIR=$DESTDIR install
56 # we need `make DESTDIR=/ install` first because at the some stage (usual)
57 # `make install` need file glib-2.0.pc installed in the FS.
58 # `cook` is sure than this error is fatal.
59 # Installing into / is safe since we working in the Aufs layer...
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 case $PACKAGE in
66 glib)
67 copy @std
68 # Python codegen, tester, Perl mkenums --> glib-dev
69 cd $fs/usr/bin; rm gdbus-codegen gtester* glib-mkenums
70 rm -r $fs/usr/share
71 DEPENDS="elfutils libffi pcre util-linux-blkid util-linux-mount \
72 util-linux-uuid zlib"
73 ;;
74 glib-dev)
75 copy @std @dev
76 remove_already_packed
77 DEPENDS="glib glibc-dev libffi-dev pcre-dev util-linux-blkid-dev \
78 util-linux-mount-dev util-linux-uuid-dev zlib-dev perl python"
79 ;;
80 esac
81 }