Magellan Linux

Contents of /trunk/core/gobject-introspection/gobject-introspection-1.30.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11444 - (show annotations) (download)
Sat Mar 10 14:46:59 2012 UTC (12 years, 3 months ago) by niro
File size: 1416 byte(s)
-multilib fix
1 # $Id$
2
3 PNAME="gobject-introspection"
4 PVER="1.30.0"
5 PBUILD="r1"
6
7 PCAT="dev-libs"
8
9 DESCRIPTION="Introspection system for GObject-based libraries."
10 HOMEPAGE="http://live.gnome.org/GObjectInstrospection"
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 >= dev-libs/libffi-3.0.9
18 >= dev-libs/glib2-2.30
19 >= dev-lang/python-2.7
20 >= x11-libs/cairo-1.10"
21
22 SRCFILE="${PNAME}-${PVER}.tar.bz2"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 sminclude multilib mtools
26
27 SRC_URI=(
28 gnome://${PNAME}/${PVER%.*}/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 )
31
32 UP2DATE="updatecmd_gnome ${PNAME}"
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} || die
37 all-abis "sed -i \"s/cpp_args = [os.environ.get('CC', 'cc'), '-E', '-C', '-I.', '-']/cpp_args = ['cc', '-E', '-C', '-I.', '-']/\" giscanner/sourcescanner.py" || die
38 }
39
40 src_compile()
41 {
42 local myconf
43 [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi)
44 mconfigure ${myconf} || die
45 mmake || die
46 }
47
48 src_install()
49 {
50 mmake DESTDIR=${BINDIR} install || die
51
52 if [[ ${ARCH} = x86_64 ]]
53 then
54 # install multiarch-wrapper
55 mlink multiarch-wrapper /usr/bin/g-ir-compiler || die
56 mlink multiarch-wrapper /usr/bin/g-ir-generate || die
57 mlink multiarch-wrapper /usr/bin/g-ir-scanner || die
58 fi
59
60 minstalldocs AUTHORS CONTRIBUTORS COPYING* ChangeLog NEWS README TODO || die
61 }