Magellan Linux

Contents of /branches/R11-unstable/include/gnome-python.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24893 - (show annotations) (download)
Tue Nov 25 02:21:44 2014 UTC (9 years, 11 months ago) by niro
File size: 1255 byte(s)
-release R11-unstable
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
38 if [[ ${PNAME} != gnome-python-base ]]
39 then
40 # do not install the pkgconfig file, it gets installed by the base package
41 sed -i -e '/^pkgconfig_DATA/d' -e '/^pkgconfigdir/d' Makefile.in || die
42 fi
43 }
44
45 gnome-python_src_compile()
46 {
47 local myconf
48 if [[ ${PNAME} != gnome-python-base ]]
49 then
50 myconf="--enable-${PNAME/-python/}"
51 fi
52
53 python_src_compile --disable-allbindings ${myconf} || die
54 }
55
56 gnome-python_src_install()
57 {
58 python_src_install || die
59 }
60
61 export_inherits gnome-python src_prepare src_compile src_install