Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11814 - (show annotations) (download)
Tue Aug 14 08:22:11 2018 UTC (5 years, 8 months ago) by niro
File size: 2224 byte(s)
auto added: ver bump to 2.56.1-r1
1 # $Id$
2
3 PNAME="glib2"
4 PVER="2.56.1"
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 mbuild mtools alx-split
34 msetfeature "!check"
35
36 SRC_URI=(
37 gnome://${PNAME/2/}/${PVER%.*}/${SRCFILE}
38 mirror://${PNAME}/${SRCFILE}
39 )
40
41 UP2DATE="updatecmd_gnome ${PNAME/2/}"
42
43 src_compile()
44 {
45 local myconf
46 # disable fam support
47 myconf="--disable-fam"
48 # disable gtk-doc and man
49 myconf+=" --disable-gtk-doc"
50 myconf+=" --disable-man"
51 # disable xattr
52 myconf+=" --disable-xattr"
53 # no native regex - disabled, splashy need regex
54 #myconf+=" --disable-regex"
55 # use internal regex
56 myconf+=" --with-pcre=internal --enable-regex"
57 # no nls
58 myconf+=" --with-libiconv=no"
59 myconf+=" --disable-nls"
60 # no selinux
61 myconf+=" --disable-selinux"
62 # no tracing support
63 myconf+=" --disable-dtrace"
64 myconf+=" --disable-systemtap"
65
66 mconfigure --with-threads=posix ${myconf} || die
67 mmake || die
68 }
69
70 alx_generic_src_install()
71 {
72 if [[ $(mlibdir) != lib ]]
73 then
74 only-m32 mmake DESTDIR=${BINDIR} install || die
75 only-m32 mv ${BINDIR}/usr/bin/gio-querymodules{,-$(mabi)} || die
76 only-m64 mmake DESTDIR=${BINDIR} install || die
77 only-m64 mv ${BINDIR}/usr/bin/gio-querymodules{,-$(mabi)} || die
78
79 mlink multiarch-wrapper /usr/bin/gio-querymodules || die
80 else
81 mmake DESTDIR=${BINDIR} install || die
82 fi
83
84 # may be missing with --disable-fam
85 mkeepdir /usr/$(mlibdir)/gio/modules || die
86
87 minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die
88 }
89
90 postinstall()
91 {
92 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
93 then
94 gio-querymodules /usr/$(mlibdir)/gio
95 fi
96
97 if [[ -f ${MROOT}/etc/env.d/50glib2 ]]
98 then
99 rm ${MROOT}/etc/env.d/50glib2
100 env-rebuild
101 fi
102 }