wok-next view glib/receipt @ rev 20727

python-gevent-psycopg2: fix error "urllib2.HTTPError: HTTP Error 403: SSL is required"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon May 28 15:32:33 2018 +0300 (2018-05-28)
parents 757d032c55c7
children 11505070127a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="glib"
4 VERSION="2.54.3"
5 CATEGORY="x-window"
6 SHORT_DESC="C routines"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://developer.gnome.org/glib/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/glib2.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS="meson ninja locale-en-base pcre-dev libffi-dev zlib-dev gettext \
16 util-linux-mount-dev libxml2-tools elfutils-dev dbus-dev libxslt docbook-xsl"
17 SPLIT="glib-dev"
19 compile_rules() {
20 mkdir -p /usr/lib/locale
21 localedef -i 'en_US' -c -f 'UTF-8' /usr/lib/locale/en_US.UTF-8
22 export LC_ALL=en_US.UTF-8 LANG=en_US
24 mkdir build-glib
25 cd build-glib
27 meson-wrapper \
28 -Dwith-pcre=system \
29 -Dwith-docs=no \
30 &&
31 ninja &&
32 ninja install || return 1
34 # fix -rw-rw-r-- (0664) and -rwxrwxr-x (0775)
35 find $install -type f -perm +020 -exec chmod g-w '{}' \;
36 # fix gdbus-codegen and glib-gettextize permissions (was 0644)
37 find $install/usr/bin -type f -exec chmod 0755 '{}' \;
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 glib)
43 copy @std
44 # Python codegen, tester, Perl mkenums --> glib-dev
45 cd $fs/usr/bin
46 rm gdbus-codegen gtester* glib-mkenums glib-gettextize
47 rm -r $fs/usr/share
48 DEPENDS="elfutils libffi libpcre util-linux-mount zlib"
49 ;;
50 glib-dev)
51 copy @std @dev @rm
52 DEPENDS="glib glibc-dev libffi-dev pcre-dev python3 \
53 util-linux-mount-dev zlib-dev perl"
54 ;;
55 esac
56 }