Contents of /smage/trunk/core/glib2/glib2-2.32.3-r1.smage2
Parent Directory | Revision Log
Revision 3652 -
(show annotations)
(download)
Fri Jul 13 15:54:08 2012 UTC (11 years, 10 months ago) by niro
File size: 2032 byte(s)
Fri Jul 13 15:54:08 2012 UTC (11 years, 10 months ago) by niro
File size: 2032 byte(s)
-etc only contains bash-completion
1 | # $Id$ |
2 | |
3 | PNAME="glib2" |
4 | PVER="2.32.3" |
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="\$(eval echo \\\$DEPEND_\${ARCH/i*86/x86} | tr ';' '\n') |
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_ONLY_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 | minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die |
83 | } |
84 | |
85 | postinstall() |
86 | { |
87 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
88 | then |
89 | gio-querymodules /usr/$(mlibdir)/gio |
90 | fi |
91 | |
92 | if [[ -f ${MROOT}/etc/env.d/50glib2 ]] |
93 | then |
94 | rm ${MROOT}/etc/env.d/50glib2 |
95 | env-rebuild |
96 | fi |
97 | } |