Magellan Linux

Annotation of /trunk/core/glib2/glib2-2.34.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14028 - (hide annotations) (download)
Mon Nov 12 14:43:39 2012 UTC (11 years, 7 months ago) by niro
File size: 1409 byte(s)
auto added: ver bump to 2.34.2-r1
1 niro 14028 # $Id$
2    
3     PNAME="glib2"
4     PVER="2.34.2"
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="$(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     )
35    
36     UP2DATE="updatecmd_gnome ${PNAME/2/}"
37    
38     src_compile()
39     {
40     mconfigure --with-threads=posix --with-pcre=internal --enable-regex --enable-fam || die
41     mmake || die
42     }
43    
44     src_install()
45     {
46     if [[ ${ARCH} = x86_64 ]]
47     then
48     for abi in ${MULTILIB_ABIS}
49     do
50     cd ${SRCDIR}-${abi}
51     oldmmake DESTDIR=${BINDIR} install || die
52     mv ${BINDIR}/usr/bin/gio-querymodules{,-${abi}} || die
53     done
54     mlink multiarch-wrapper /usr/bin/gio-querymodules || die
55     else
56     mmake DESTDIR=${BINDIR} install || die
57     fi
58    
59     minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die
60     }
61    
62     postinstall()
63     {
64     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
65     then
66     gio-querymodules /usr/$(mlibdir)/gio
67     fi
68    
69     if [[ -f ${MROOT}/etc/env.d/50glib2 ]]
70     then
71     rm ${MROOT}/etc/env.d/50glib2
72     env-rebuild
73     fi
74     }