Magellan Linux

Contents of /branches/R11-stable/core/glib2/glib2-2.34.3-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16090 - (show annotations) (download)
Thu Jan 24 11:58:59 2013 UTC (11 years, 4 months ago) by niro
File size: 1646 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="glib2"
4 PVER="2.34.3"
5 PBUILD="r2"
6
7 PCAT="dev-libs"
8
9 DESCRIPTION="Glib2 C Utility Library."
10 HOMEPAGE="http://www.gtk.org/"
11
12 # x86_64 specific dependencies
13 DEPEND_x86_64=">= sys-apps/multiarch-wrapper-1"
14 SPECIAL_VARS="DEPEND_x86_64"
15
16 DEPEND="$(marchdepend)
17 >= virtual/glibc
18 >= app-admin/gamin-0.1.10
19 >= dev-libs/libffi-3
20 >= sys-libs/libelf-0.152"
21
22 SDEPEND=">= dev-util/pkgconfig-0.25
23 >= sys-dev/gettext-0.18"
24
25 SRCFILE="${PNAME/2/}-${PVER}.tar.xz"
26 SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}"
27
28 sminclude multilib mtools
29 msetfeature "!check"
30
31 SRC_URI=(
32 gnome://${PNAME/2/}/${PVER%.*}/${SRCFILE}
33 mirror://${PNAME}/${SRCFILE}
34 mirror://${PNAME}/glib-2.34-revert-warn-glib-compile-schemas.patch
35 )
36
37 UP2DATE="updatecmd_gnome ${PNAME/2/}"
38
39 src_prepare()
40 {
41 munpack ${SRCFILE} || die
42
43 # remove some annoying warnings, revert the commit
44 mpatch -RNp1 glib-2.34-revert-warn-glib-compile-schemas.patch || die
45 }
46
47 src_compile()
48 {
49 mconfigure --with-threads=posix --with-pcre=internal --enable-regex --enable-fam || die
50 mmake || die
51 }
52
53 src_install()
54 {
55 if [[ ${ARCH} = x86_64 ]]
56 then
57 for abi in ${MULTILIB_ABIS}
58 do
59 cd ${SRCDIR}-${abi}
60 oldmmake DESTDIR=${BINDIR} install || die
61 mv ${BINDIR}/usr/bin/gio-querymodules{,-${abi}} || die
62 done
63 mlink multiarch-wrapper /usr/bin/gio-querymodules || die
64 else
65 mmake DESTDIR=${BINDIR} install || die
66 fi
67
68 minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die
69 }
70
71 postinstall()
72 {
73 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
74 then
75 gio-querymodules /usr/$(mlibdir)/gio
76 fi
77
78 if [[ -f ${MROOT}/etc/env.d/50glib2 ]]
79 then
80 rm ${MROOT}/etc/env.d/50glib2
81 env-rebuild
82 fi
83 }