Magellan Linux

Contents of /trunk/include/gnome-python.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19654 - (show annotations) (download)
Wed Oct 9 08:02:31 2013 UTC (10 years, 7 months ago) by niro
File size: 1314 byte(s)
-do not extract language xpi anymore, just install them
1 # $Id$
2
3 sminclude python
4
5 # some sane default values
6 : ${PCAT="dev-python"}
7 : ${SRCFILE="gnome-python-${PVER}.tar.bz2"}
8 : ${SRCDIR="${BUILDDIR}/gnome-python-${PVER}"}
9 : ${DESCRIPTION="${PNAME/-python/} module of gnome-python."}
10 : ${HOMEPAGE="http://www.pygtk.org/"}
11
12 if [[ ${PNAME} != gnome-python-base ]]
13 then
14 SDEPEND="${SDEPEND}
15 == dev-python/gnome-python-base-${PVER}"
16 fi
17
18 SDEPEND="${SDEPEND}
19 >= dev-util/pkgconfig-0.23"
20
21 SRC_URI=(
22 ${SRC_URI[*]}
23 gnome://gnome-python/${PVER%.*}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 gnome-python_src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 cd ${SRCDIR}
31
32 # delete setup.py - this build method is deprecated, use autotools instead!
33 if [[ -e setup.py ]]
34 then
35 rm setup.py || die
36 fi
37 # same for waf
38 if [[ -e waf ]]
39 then
40 rm waf || die
41 fi
42
43 if [[ ${PNAME} != gnome-python-base ]]
44 then
45 # do not install the pkgconfig file, it gets installed by the base package
46 sed -i -e '/^pkgconfig_DATA/d' -e '/^pkgconfigdir/d' Makefile.in || die
47 fi
48 }
49
50 gnome-python_src_compile()
51 {
52 local myconf
53 if [[ ${PNAME} != gnome-python-base ]]
54 then
55 myconf="--enable-${PNAME/-python/}"
56 fi
57
58 python_src_compile --disable-allbindings ${myconf} || die
59 }
60
61 gnome-python_src_install()
62 {
63 python_src_install || die
64 }
65
66 export_inherits gnome-python src_prepare src_compile src_install