Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11601 - (show annotations) (download)
Tue Mar 13 12:57:42 2012 UTC (12 years, 2 months ago) by niro
File size: 1410 byte(s)
-fixed SRCFILE
1 # $Id$
2
3 PNAME="glib2"
4 PVER="2.30.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
20 SDEPEND=">= dev-util/pkgconfig-0.25
21 >= sys-dev/gettext-0.18"
22
23 SRCFILE="${PNAME/2/}-${PVER}.tar.xz"
24 SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}"
25
26 sminclude multilib mtools
27 msetfeature "!check"
28
29 SRC_URI=(
30 gnome://${PNAME/2/}/${PVER%.*}/${SRCFILE}
31 mirror://${PNAME}/${SRCFILE}
32 )
33
34 UP2DATE="updatecmd_gnome ${PNAME/2/}"
35
36 src_compile()
37 {
38 mconfigure --with-threads=posix --with-pcre=internal --enable-regex --enable-fam || die
39 mmake || die
40 }
41
42 src_install()
43 {
44 if [[ ${ARCH} = x86_64 ]]
45 then
46 for abi in ${MULTILIB_ABIS}
47 do
48 cd ${SRCDIR}-${abi}
49 oldmmake DESTDIR=${BINDIR} install || die
50 mv ${BINDIR}/usr/bin/gio-querymodules{,-${abi}} || die
51 done
52 mlink multiarch-wrapper /usr/bin/gio-querymodules || die
53 else
54 mmake DESTDIR=${BINDIR} install || die
55 fi
56
57 minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die
58 }
59
60 postinstall()
61 {
62 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
63 then
64 gio-querymodules /usr/$(mlibdir)/gio || die
65 fi
66
67 if [[ -f ${MROOT}/etc/env.d/50glib2 ]]
68 then
69 rm ${MROOT}/etc/env.d/50glib2
70 env-rebuild
71 fi
72 }