Magellan Linux

Annotation of /trunk/core/glib2/glib2-2.30.2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11446 - (hide annotations) (download)
Sat Mar 10 15:09:55 2012 UTC (12 years, 6 months ago) by niro
File size: 1402 byte(s)
-full multilib support
1 niro 11446 # $Id$
2    
3     PNAME="glib2"
4     PVER="2.30.2"
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="\$(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.bz2"
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     local myconf
39     [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi)
40     mconfigure ${myconf} --with-threads=posix --with-pcre=internal --enable-regex --enable-fam || die
41     mmake || die
42     }
43    
44     src_install()
45     {
46     mmake DESTDIR=${BINDIR} install || die
47    
48     if [[ ${ARCH} = x86_64 ]]
49     then
50     local i
51     for i in glib-genmarshal gtester-report gtester glib-gettextize gdbus \
52     gsettings gio-querymodules glib-compile-schemas gobject-query \
53     gdbus-codegen glib-mkenums
54     do
55     mlink multiarch-wrapper /usr/bin/${i} || die
56     done
57     fi
58    
59     minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die
60     }
61    
62     postinstall()
63     {
64     if [[ -f ${MROOT}/etc/env.d/50glib2 ]]
65     then
66     rm ${MROOT}/etc/env.d/50glib2
67     env-rebuild
68     fi
69     }