summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python-pygtk_2.24.0.bb')
-rw-r--r--meta/recipes-devtools/python/python-pygtk_2.24.0.bb55
1 files changed, 0 insertions, 55 deletions
diff --git a/meta/recipes-devtools/python/python-pygtk_2.24.0.bb b/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
deleted file mode 100644
index 79b3110e30..0000000000
--- a/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
+++ /dev/null
@@ -1,55 +0,0 @@
1SUMMARY = "Python bindings for the GTK+ UI toolkit"
2SECTION = "devel/python"
3# needs gtk+ 2.17.x
4DEPENDS = "gtk+ libglade python-pycairo python-pygobject"
5RDEPENDS_${PN} = "python-shell python-pycairo python-pygobject"
6PROVIDES = "python-pygtk2"
7SRCNAME = "pygtk"
8LICENSE = "LGPLv2.1"
9LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
10
11PR = "r1"
12
13SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.24/${SRCNAME}-${PV}.tar.bz2 \
14 file://add-gtk-types.defs-into-gdk.c-dependence.patch \
15 file://fix-gtkunixprint.patch \
16 file://prevent_to_get_display_during_import.patch \
17 file://nodocs.patch \
18 file://fix-pygtk-2.0.pc.patch \
19 file://acinclude.m4 \
20 file://update-dependences-of-defs.c.patch"
21
22SRC_URI[md5sum] = "a1051d5794fd7696d3c1af6422d17a49"
23SRC_URI[sha256sum] = "cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912"
24
25S = "${WORKDIR}/${SRCNAME}-${PV}"
26
27EXTRA_OECONF = "--disable-docs --with-python-includes=${STAGING_INCDIR}/../"
28
29inherit autotools pkgconfig distutils-base distro_features_check
30
31ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}"
32
33do_configure_prepend() {
34 install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
35 sed -i \
36 -e s:'`$PKG_CONFIG --variable defsdir pygobject-2.0`':\"${STAGING_DATADIR}/pygobject/2.0/defs\":g \
37 -e s:'`$PKG_CONFIG --variable=pygtkincludedir pygobject-2.0`':\"${STAGING_INCDIR}/pygtk-2.0\":g \
38 -e s:'`$PKG_CONFIG --variable=datadir pygobject-2.0`':\"${STAGING_DATADIR}\":g \
39 -e s:'`$PKG_CONFIG --variable codegendir pygobject-2.0`':\"${STAGING_DATADIR}/pygobject/2.0/codegen\":g \
40 -e s:'`$PKG_CONFIG --variable=fixxref pygobject-2.0`':\"${STAGING_DATADIR}/pygobject/xsl/fixxref.py\":g \
41 ${S}/configure.ac
42}
43
44# dirty fix #2: fix build system paths leaking in
45do_install_append() {
46 sed -i -e '1s|^#!.*python|#!/usr/bin/env python|' ${D}${bindir}/pygtk-demo
47}
48
49PACKAGES =+ "${PN}-demo"
50FILES_${PN}-demo = " ${bindir}/pygtk-demo ${libdir}/pygtk "
51RDEPENDS_${PN}-demo = "python-pygtk python-stringold python-lang"
52
53# todo: revamp packaging, package demo seperatly
54FILES_${PN}-dev += " ${libdir}/pygtk/2.0 ${bindir}/pygtk-* ${datadir}/pygtk/2.0"
55