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