Annotation of /branches/magellan-next/include/gnome-python.sminc
Parent Directory | Revision Log
Revision 9863 -
(hide annotations)
(download)
Fri Jan 13 19:22:05 2012 UTC (12 years, 8 months ago) by niro
File size: 1255 byte(s)
Fri Jan 13 19:22:05 2012 UTC (12 years, 8 months ago) by niro
File size: 1255 byte(s)
- PCATEGORIE -> PCAT transition
1 | niro | 6883 | # $Id$ |
2 | |||
3 | sminclude python | ||
4 | |||
5 | # some sane default values | ||
6 | niro | 9863 | : ${PCAT="dev-python"} |
7 | niro | 6883 | : ${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 |