Contents of /smage/trunk/core/glib2/glib2-2.34.1-r1.smage2
Parent Directory | Revision Log
Revision 4153 -
(show annotations)
(download)
Wed Nov 7 14:10:55 2012 UTC (11 years, 7 months ago) by niro
File size: 2072 byte(s)
Wed Nov 7 14:10:55 2012 UTC (11 years, 7 months ago) by niro
File size: 2072 byte(s)
-fixed missing dir
1 | # $Id$ |
2 | |
3 | PNAME="glib2" |
4 | PVER="2.34.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 |
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 | ) |
37 | |
38 | UP2DATE="updatecmd_gnome ${PNAME/2/}" |
39 | |
40 | src_compile() |
41 | { |
42 | local myconf |
43 | # disable fam support |
44 | myconf="--disable-fam" |
45 | # disable gtk-doc and man |
46 | myconf+=" --disable-gtk-doc" |
47 | myconf+=" --disable-man" |
48 | # disable xattr |
49 | myconf+=" --disable-xattr" |
50 | # no native regex - disabled, splashy need regex |
51 | #myconf+=" --disable-regex" |
52 | # use internal regex |
53 | myconf+=" --with-pcre=internal --enable-regex" |
54 | # no nls |
55 | myconf+=" --with-libiconv=no" |
56 | myconf+=" --disable-nls" |
57 | # no selinux |
58 | myconf+=" --disable-selinux" |
59 | # no tracing support |
60 | myconf+=" --disable-dtrace" |
61 | myconf+=" --disable-systemtap" |
62 | |
63 | mconfigure --with-threads=posix ${myconf} || die |
64 | mmake || die |
65 | } |
66 | |
67 | alx_generic_src_install() |
68 | { |
69 | if [[ ${ARCH} = x86_64 ]] |
70 | then |
71 | for abi in ${MULTILIB_ABIS} |
72 | do |
73 | cd ${SRCDIR}-${abi} |
74 | oldmmake DESTDIR=${BINDIR} install || die |
75 | mv ${BINDIR}/usr/bin/gio-querymodules{,-${abi}} || die |
76 | done |
77 | mlink multiarch-wrapper /usr/bin/gio-querymodules || die |
78 | else |
79 | mmake DESTDIR=${BINDIR} install || die |
80 | fi |
81 | |
82 | # may be missing with --disable-fam |
83 | mkeepdir /usr/$(mlibdir)/gio/modules || die |
84 | |
85 | minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die |
86 | } |
87 | |
88 | postinstall() |
89 | { |
90 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
91 | then |
92 | gio-querymodules /usr/$(mlibdir)/gio |
93 | fi |
94 | |
95 | if [[ -f ${MROOT}/etc/env.d/50glib2 ]] |
96 | then |
97 | rm ${MROOT}/etc/env.d/50glib2 |
98 | env-rebuild |
99 | fi |
100 | } |