Contents of /trunk/core/glib2/glib2-2.30.2-r2.smage2
Parent Directory | Revision Log
Revision 11447 -
(show annotations)
(download)
Sat Mar 10 15:17:49 2012 UTC (12 years, 6 months ago) by niro
File size: 1306 byte(s)
Sat Mar 10 15:17:49 2012 UTC (12 years, 6 months ago) by niro
File size: 1306 byte(s)
-broken Makefile, only move gio-querymodules
1 | # $Id$ |
2 | |
3 | PNAME="glib2" |
4 | PVER="2.30.2" |
5 | PBUILD="r2" |
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 | >= app-admin/gamin-0.1.10" |
19 | |
20 | SDEPEND=">= dev-util/pkgconfig-0.25 |
21 | >= sys-dev/gettext-0.18" |
22 | |
23 | SRCFILE="${PNAME/2/}-${PVER}.tar.bz2" |
24 | SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}" |
25 | |
26 | sminclude multilib mtools |
27 | msetfeature "!check" |
28 | |
29 | SRC_URI=( |
30 | gnome://${PNAME/2/}/${PVER%.*}/${SRCFILE} |
31 | mirror://${PNAME}/${SRCFILE} |
32 | ) |
33 | |
34 | UP2DATE="updatecmd_gnome ${PNAME/2/}" |
35 | |
36 | src_compile() |
37 | { |
38 | mconfigure --with-threads=posix --with-pcre=internal --enable-regex --enable-fam || die |
39 | mmake || die |
40 | } |
41 | |
42 | src_install() |
43 | { |
44 | mmake DESTDIR=${BINDIR} install || die |
45 | if [[ ${ARCH} = x86_64 ]] |
46 | then |
47 | all-abis 'mv ${BINDIR}/usr/bin/gio-querymodules{,-$(mabi)}' || die |
48 | mlink multiarch-wrapper /usr/bin/gio-querymodules || die |
49 | fi |
50 | |
51 | minstalldocs AUTHORS ChangeLog* COPYING HACKING NEWS* README || die |
52 | } |
53 | |
54 | postinstall() |
55 | { |
56 | if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]] |
57 | then |
58 | gio-query-modules /usr/$(mlibdir)/gio || die |
59 | fi |
60 | |
61 | if [[ -f ${MROOT}/etc/env.d/50glib2 ]] |
62 | then |
63 | rm ${MROOT}/etc/env.d/50glib2 |
64 | env-rebuild |
65 | fi |
66 | } |