Contents of /smage/branches/alx07x-unstable/core/glib2/glib2-2.44.1-r1.smage2
Parent Directory | Revision Log
Revision 6506 -
(show annotations)
(download)
Mon Jul 13 13:33:25 2015 UTC (8 years, 10 months ago) by niro
Original Path: smage/trunk/core/glib2/glib2-2.44.1-r1.smage2
File size: 2427 byte(s)
Mon Jul 13 13:33:25 2015 UTC (8 years, 10 months ago) by niro
Original Path: smage/trunk/core/glib2/glib2-2.44.1-r1.smage2
File size: 2427 byte(s)
auto added: ver bump to 2.44.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="glib2" |
4 | PVER="2.44.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.162" |
20 | |
21 | SDEPEND=">= dev-util/pkgconfig-0.25 |
22 | >= sys-dev/gettext-0.18 |
23 | >= dev-libs/libffi-dev-3.2" |
24 | |
25 | SRCFILE="${PNAME/2/}-${PVER}.tar.xz" |
26 | SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}" |
27 | |
28 | ALX_PKG_KEEP="usr/$(mlibdir)/*.so.* |
29 | usr/$(mlibdir)/gio/modules |
30 | usr/bin/gio-querymodules" |
31 | sminclude multilib mtools alx-split |
32 | msetfeature "!check" |
33 | |
34 | SRC_URI=( |
35 | gnome://${PNAME/2/}/${PVER%.*}/${SRCFILE} |
36 | mirror://${PNAME}/${SRCFILE} |
37 | mirror://${PNAME}/glib-2.34-revert-warn-glib-compile-schemas.patch |
38 | ) |
39 | |
40 | UP2DATE="updatecmd_gnome ${PNAME/2/}" |
41 | |
42 | src_prepare() |
43 | { |
44 | munpack ${SRCFILE} || die |
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 [[ $(mlibdir) != lib ]] |
81 | then |
82 | only-m32 mmake DESTDIR=${BINDIR} install || die |
83 | only-m32 mv ${BINDIR}/usr/bin/gio-querymodules{,-$(mabi)} || die |
84 | only-m64 mmake DESTDIR=${BINDIR} install || die |
85 | only-m64 mv ${BINDIR}/usr/bin/gio-querymodules{,-$(mabi)} || die |
86 | |
87 | mlink multiarch-wrapper /usr/bin/gio-querymodules || die |
88 | else |
89 | mmake DESTDIR=${BINDIR} install || die |
90 | fi |
91 | |
92 | # may be missing with --disable-fam |
93 | mkeepdir /usr/$(mlibdir)/gio/modules || die |
94 | |
95 | minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die |
96 | } |
97 | |
98 | postinstall() |
99 | { |
100 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
101 | then |
102 | gio-querymodules /usr/$(mlibdir)/gio |
103 | fi |
104 | |
105 | if [[ -f ${MROOT}/etc/env.d/50glib2 ]] |
106 | then |
107 | rm ${MROOT}/etc/env.d/50glib2 |
108 | env-rebuild |
109 | fi |
110 | } |