Magellan Linux

Annotation of /branches/R11-stable/core/glib2/glib2-2.38.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20115 - (hide annotations) (download)
Tue Nov 26 10:18:57 2013 UTC (10 years, 10 months ago) by niro
File size: 1671 byte(s)
-release branches/R11-stable
1 niro 20016 # $Id$
2    
3     PNAME="glib2"
4     PVER="2.38.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.0.13
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     mautoreconf || die
46     }
47    
48     src_compile()
49     {
50     mconfigure --with-threads=posix --with-pcre=internal --enable-regex --enable-fam || die
51     mmake || die
52     }
53    
54     src_install()
55     {
56     if [[ ${ARCH} = x86_64 ]]
57     then
58     for abi in ${MULTILIB_ABIS}
59     do
60     cd ${SRCDIR}-${abi}
61     oldmmake DESTDIR=${BINDIR} install || die
62     mv ${BINDIR}/usr/bin/gio-querymodules{,-${abi}} || die
63     done
64     mlink multiarch-wrapper /usr/bin/gio-querymodules || die
65     else
66     mmake DESTDIR=${BINDIR} install || die
67     fi
68    
69     minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die
70     }
71    
72     postinstall()
73     {
74     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
75     then
76     gio-querymodules /usr/$(mlibdir)/gio
77     fi
78    
79     if [[ -f ${MROOT}/etc/env.d/50glib2 ]]
80     then
81     rm ${MROOT}/etc/env.d/50glib2
82     env-rebuild
83     fi
84     }