diff options
Diffstat (limited to 'meta-extras/packages/python/python-pygtk_2.10.4.bb')
-rw-r--r-- | meta-extras/packages/python/python-pygtk_2.10.4.bb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-extras/packages/python/python-pygtk_2.10.4.bb b/meta-extras/packages/python/python-pygtk_2.10.4.bb new file mode 100644 index 0000000000..0584d119c9 --- /dev/null +++ b/meta-extras/packages/python/python-pygtk_2.10.4.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | DESCRIPTION = "Python GTK+ 2.10.x Bindings" | ||
2 | SECTION = "devel/python" | ||
3 | # needs gtk+ 2.10.x | ||
4 | DEPENDS = "gtk+ libglade python-pycairo python-pygobject" | ||
5 | RDEPENDS = "python-shell python-pycairo python-pygobject" | ||
6 | PROVIDES = "python-pygtk2" | ||
7 | SRCNAME = "pygtk" | ||
8 | LICENSE = "LGPL" | ||
9 | PR = "ml3" | ||
10 | |||
11 | SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.10/${SRCNAME}-${PV}.tar.bz2 \ | ||
12 | file://fix-gtkunixprint.patch;patch=1 \ | ||
13 | file://acinclude.m4" | ||
14 | S = "${WORKDIR}/${SRCNAME}-${PV}" | ||
15 | |||
16 | EXTRA_OECONF = "--disable-docs" | ||
17 | EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../" | ||
18 | |||
19 | inherit autotools pkgconfig distutils-base | ||
20 | |||
21 | do_configure_prepend() { | ||
22 | install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/ | ||
23 | } | ||
24 | |||
25 | do_configure_prepend() { | ||
26 | install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/ | ||
27 | } | ||
28 | |||
29 | require fix-path.inc | ||
30 | |||
31 | FILES_${PN}-dev += "${libdir}/pygtk/2.0 ${bindir}/pygtk-*" | ||
32 | |||
33 | do_stage() { | ||
34 | autotools_stage_includes | ||
35 | sed -i s:/usr/share:${STAGING_DATADIR}: codegen/pygtk-codegen-2.0 | ||
36 | install -m 0755 codegen/pygtk-codegen-2.0 ${STAGING_BINDIR_NATIVE}/ | ||
37 | install -d ${STAGING_DATADIR}/pygtk/2.0/codegen | ||
38 | install -d ${STAGING_DATADIR}/pygtk/2.0/defs/ | ||
39 | cp -pPr codegen/*.py* ${STAGING_DATADIR}/pygtk/2.0/codegen/ | ||
40 | cp -pPr *.defs ${STAGING_DATADIR}/pygtk/2.0/defs/ | ||
41 | cp -pPr gtk/*.defs ${STAGING_DATADIR}/pygtk/2.0/defs/ | ||
42 | } | ||