Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11878 - (show annotations) (download)
Wed Apr 25 22:08:59 2012 UTC (12 years, 1 month ago) by niro
File size: 1345 byte(s)
-fixed SRCFILE
1 # $Id$
2
3 PNAME="gobject-introspection"
4 PVER="1.32.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.32
19 >= dev-lang/python-2.7
20 >= x11-libs/cairo-1.12"
21
22 SRCFILE="${PNAME}-${PVER}.tar.xz"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 sminclude multilib mtools
26
27 SRC_URI=(
28 gnome://${PNAME}/${PVER%.*}/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 mirror://${PNAME}/${PNAME}-1.30.0-multilib.patch
31 )
32
33 UP2DATE="updatecmd_gnome ${PNAME}"
34
35 src_prepare()
36 {
37 munpack ${SRCFILE} || die
38 mpatch ${PNAME}-1.30.0-multilib.patch || die
39 }
40
41 src_compile()
42 {
43 local myconf
44 [[ ${ARCH} = x86_64 ]] && myconf=--program-suffix=-$(mabi)
45 mconfigure ${myconf} || die
46 mmake || die
47 }
48
49 src_install()
50 {
51 mmake DESTDIR=${BINDIR} install || die
52
53 if [[ ${ARCH} = x86_64 ]]
54 then
55 # install multiarch-wrapper
56 mlink multiarch-wrapper /usr/bin/g-ir-compiler || die
57 mlink multiarch-wrapper /usr/bin/g-ir-generate || die
58 mlink multiarch-wrapper /usr/bin/g-ir-scanner || die
59 fi
60
61 minstalldocs AUTHORS CONTRIBUTORS COPYING* ChangeLog NEWS README TODO || die
62 }