Contents of /branches/magellan-next/core/gobject-introspection/gobject-introspection-0.6.14-r2.smage2
Parent Directory | Revision Log
Revision 6374 -
(show annotations)
(download)
Sun Aug 22 21:48:01 2010 UTC (14 years, 1 month ago) by niro
File size: 1410 byte(s)
Sun Aug 22 21:48:01 2010 UTC (14 years, 1 month ago) by niro
File size: 1410 byte(s)
-fixed some typos
1 | # $Id$ |
2 | |
3 | PNAME="gobject-introspection" |
4 | PVER="0.6.14" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="dev-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Introspection system for GObject-based libraries." |
11 | HOMEPAGE="http://live.gnome.org/GObjectInstrospection" |
12 | |
13 | # x86_64 specific dependencies |
14 | DEPEND_x86_64=">= sys-apps/multiarch-wrapper-1" |
15 | SPECIAL_VARS="DEPEND_x86_64" |
16 | |
17 | DEPEND="\$(eval echo \\\$DEPEND_\${ARCH/i*86/x86} | tr ';' '\n') |
18 | >= dev-libs/libffi-3.0.9 |
19 | >= dev-libs/glib2-2.24 |
20 | >= dev-lang/python-2.7 |
21 | >= x11-libs/cairo-1.8.10" |
22 | |
23 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
24 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
25 | |
26 | sminclude multilib mtools |
27 | |
28 | SRC_URI=( |
29 | gnome://${PNAME}/${PVER%.*}/${SRCFILE} |
30 | mirror://${PNAME}/${SRCFILE} |
31 | mirror://${PNAME}/${PNAME}-${PVER}-python27.patch |
32 | ) |
33 | |
34 | UP2DATE="updatecmd_gnome ${PNAME}" |
35 | |
36 | src_prepare() |
37 | { |
38 | munpack ${SRCFILE} || die |
39 | |
40 | # fix compilation against python27 |
41 | mpatch ${PNAME}-${PVER}-python27.patch || die |
42 | } |
43 | |
44 | src_compile() |
45 | { |
46 | local myconf |
47 | [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi) |
48 | mconfigure ${myconf} || die |
49 | mmake || die |
50 | } |
51 | |
52 | src_install() |
53 | { |
54 | mmake DESTDIR=${BINDIR} install || die |
55 | |
56 | if [[ ${ARCH} = x86_64 ]] |
57 | then |
58 | # install multiarch-wrapper |
59 | mlink multiarch-wrapper /usr/bin/g-ir-compiler || die |
60 | mlink multiarch-wrapper /usr/bin/g-ir-generate || die |
61 | mlink multiarch-wrapper /usr/bin/g-ir-scanner || die |
62 | fi |
63 | |
64 | minstalldocs AUTHORS CONTRIBUTORS COPYING* ChangeLog NEWS README TODO || die |
65 | } |