Magellan Linux

Contents of /smage/trunk/core/glib2/glib2-2.48.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8926 - (show annotations) (download)
Thu Apr 7 14:39:49 2016 UTC (8 years ago) by niro
File size: 2474 byte(s)
auto added: ver bump to 2.48.0-r1
1 # $Id$
2
3 PNAME="glib2"
4 PVER="2.48.0"
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 >= dev-libs/libffi-3.2
19 >= sys-libs/libelf-0.166"
20
21 SDEPEND=">= dev-util/pkgconfig-0.25
22 >= sys-dev/gettext-0.18
23 >= dev-libs/libffi-dev-3.2
24 >= sys-dev/autoconf-10
25 >= sys-dev/automake-9"
26
27 SRCFILE="${PNAME/2/}-${PVER}.tar.xz"
28 SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}"
29
30 ALX_PKG_KEEP="usr/$(mlibdir)/*.so.*
31 usr/$(mlibdir)/gio/modules
32 usr/bin/gio-querymodules"
33 sminclude multilib mtools alx-split
34 msetfeature "!check"
35
36 SRC_URI=(
37 gnome://${PNAME/2/}/${PVER%.*}/${SRCFILE}
38 mirror://${PNAME}/${SRCFILE}
39 mirror://${PNAME}/glib-2.34-revert-warn-glib-compile-schemas.patch
40 )
41
42 UP2DATE="updatecmd_gnome ${PNAME/2/}"
43
44 src_prepare()
45 {
46 munpack ${SRCFILE} || die
47
48 # remove some annoying warnings, revert the commit
49 mpatch -RNp1 glib-2.34-revert-warn-glib-compile-schemas.patch || die
50 mautoreconf || die
51 }
52
53 src_compile()
54 {
55 local myconf
56 # disable fam support
57 myconf="--disable-fam"
58 # disable gtk-doc and man
59 myconf+=" --disable-gtk-doc"
60 myconf+=" --disable-man"
61 # disable xattr
62 myconf+=" --disable-xattr"
63 # no native regex - disabled, splashy need regex
64 #myconf+=" --disable-regex"
65 # use internal regex
66 myconf+=" --with-pcre=internal --enable-regex"
67 # no nls
68 myconf+=" --with-libiconv=no"
69 myconf+=" --disable-nls"
70 # no selinux
71 myconf+=" --disable-selinux"
72 # no tracing support
73 myconf+=" --disable-dtrace"
74 myconf+=" --disable-systemtap"
75
76 mconfigure --with-threads=posix ${myconf} || die
77 mmake || die
78 }
79
80 alx_generic_src_install()
81 {
82 if [[ $(mlibdir) != lib ]]
83 then
84 only-m32 mmake DESTDIR=${BINDIR} install || die
85 only-m32 mv ${BINDIR}/usr/bin/gio-querymodules{,-$(mabi)} || die
86 only-m64 mmake DESTDIR=${BINDIR} install || die
87 only-m64 mv ${BINDIR}/usr/bin/gio-querymodules{,-$(mabi)} || die
88
89 mlink multiarch-wrapper /usr/bin/gio-querymodules || die
90 else
91 mmake DESTDIR=${BINDIR} install || die
92 fi
93
94 # may be missing with --disable-fam
95 mkeepdir /usr/$(mlibdir)/gio/modules || die
96
97 minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die
98 }
99
100 postinstall()
101 {
102 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
103 then
104 gio-querymodules /usr/$(mlibdir)/gio
105 fi
106
107 if [[ -f ${MROOT}/etc/env.d/50glib2 ]]
108 then
109 rm ${MROOT}/etc/env.d/50glib2
110 env-rebuild
111 fi
112 }