summaryrefslogtreecommitdiffstats
path: root/meta-extras/packages/python/python-pygtk_2.10.4.bb
diff options
context:
space:
mode:
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.bb42
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 @@
1DESCRIPTION = "Python GTK+ 2.10.x Bindings"
2SECTION = "devel/python"
3# needs gtk+ 2.10.x
4DEPENDS = "gtk+ libglade python-pycairo python-pygobject"
5RDEPENDS = "python-shell python-pycairo python-pygobject"
6PROVIDES = "python-pygtk2"
7SRCNAME = "pygtk"
8LICENSE = "LGPL"
9PR = "ml3"
10
11SRC_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"
14S = "${WORKDIR}/${SRCNAME}-${PV}"
15
16EXTRA_OECONF = "--disable-docs"
17EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"
18
19inherit autotools pkgconfig distutils-base
20
21do_configure_prepend() {
22 install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
23}
24
25do_configure_prepend() {
26 install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
27}
28
29require fix-path.inc
30
31FILES_${PN}-dev += "${libdir}/pygtk/2.0 ${bindir}/pygtk-*"
32
33do_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}