Magellan Linux

Contents of /trunk/core/glib2/glib2-2.32.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12436 - (show annotations) (download)
Mon May 21 09:23:51 2012 UTC (12 years ago) by niro
File size: 1425 byte(s)
auto added: ver bump to 2.32.3-r1
1 # $Id$
2
3 PNAME="glib2"
4 PVER="2.32.3"
5 PBUILD="r1"
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="\$(eval echo \\\$DEPEND_\${ARCH/i*86/x86} | tr ';' '\n')
17 >= virtual/glibc
18 >= app-admin/gamin-0.1.10
19 >= dev-libs/libffi-3"
20
21 SDEPEND=">= dev-util/pkgconfig-0.25
22 >= sys-dev/gettext-0.18"
23
24 SRCFILE="${PNAME/2/}-${PVER}.tar.xz"
25 SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}"
26
27 sminclude multilib mtools
28 msetfeature "!check"
29
30 SRC_URI=(
31 gnome://${PNAME/2/}/${PVER%.*}/${SRCFILE}
32 mirror://${PNAME}/${SRCFILE}
33 )
34
35 UP2DATE="updatecmd_gnome ${PNAME/2/}"
36
37 src_compile()
38 {
39 mconfigure --with-threads=posix --with-pcre=internal --enable-regex --enable-fam || die
40 mmake || die
41 }
42
43 src_install()
44 {
45 if [[ ${ARCH} = x86_64 ]]
46 then
47 for abi in ${MULTILIB_ABIS}
48 do
49 cd ${SRCDIR}-${abi}
50 oldmmake DESTDIR=${BINDIR} install || die
51 mv ${BINDIR}/usr/bin/gio-querymodules{,-${abi}} || die
52 done
53 mlink multiarch-wrapper /usr/bin/gio-querymodules || die
54 else
55 mmake DESTDIR=${BINDIR} install || die
56 fi
57
58 minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die
59 }
60
61 postinstall()
62 {
63 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
64 then
65 gio-querymodules /usr/$(mlibdir)/gio
66 fi
67
68 if [[ -f ${MROOT}/etc/env.d/50glib2 ]]
69 then
70 rm ${MROOT}/etc/env.d/50glib2
71 env-rebuild
72 fi
73 }