diff options
| -rw-r--r-- | meta/recipes-devtools/python/fix-path.inc | 22 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python-pygtk_2.24.0.bb | 27 |
2 files changed, 21 insertions, 28 deletions
diff --git a/meta/recipes-devtools/python/fix-path.inc b/meta/recipes-devtools/python/fix-path.inc deleted file mode 100644 index 0738c59ada..0000000000 --- a/meta/recipes-devtools/python/fix-path.inc +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | do_install_append() { | ||
| 2 | for i in `find ${D} -name "*.py"` ; do \ | ||
| 3 | sed -i -e s:${D}::g $i | ||
| 4 | done | ||
| 5 | |||
| 6 | for i in `find ${D} -name "*.la"` ; do \ | ||
| 7 | sed -i -e s:${STAGING_LIBDIR}:${libdir}:g $i | ||
| 8 | done | ||
| 9 | |||
| 10 | if test -e ${D}${bindir} ; then | ||
| 11 | for i in ${D}${bindir}/* ; do \ | ||
| 12 | sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i | ||
| 13 | done | ||
| 14 | fi | ||
| 15 | |||
| 16 | if test -e ${D}${sbindir} ; then | ||
| 17 | for i in ${D}${sbindir}/* ; do \ | ||
| 18 | sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i | ||
| 19 | done | ||
| 20 | fi | ||
| 21 | } | ||
| 22 | |||
diff --git a/meta/recipes-devtools/python/python-pygtk_2.24.0.bb b/meta/recipes-devtools/python/python-pygtk_2.24.0.bb index bd26ebb7da..053f37fcbe 100644 --- a/meta/recipes-devtools/python/python-pygtk_2.24.0.bb +++ b/meta/recipes-devtools/python/python-pygtk_2.24.0.bb | |||
| @@ -40,16 +40,31 @@ do_configure_prepend() { | |||
| 40 | sed -i 's:tests docs:tests:' ${S}/Makefile.am | 40 | sed -i 's:tests docs:tests:' ${S}/Makefile.am |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | # dirty fix #1: remove dependency on python-pygobject-dev | 43 | # dirty fix #2: fix build system paths leaking in |
| 44 | do_install_append() { | 44 | do_install_append() { |
| 45 | find ${D} -name "*.la"|xargs rm -f | 45 | for i in `find ${D} -name "*.py"` ; do \ |
| 46 | rm -f ${D}/${bindir}/pygtk-codegen-2.0 | 46 | sed -i -e s:${D}::g $i |
| 47 | done | ||
| 48 | |||
| 49 | for i in `find ${D} -name "*.la"` ; do \ | ||
| 50 | sed -i -e s:${STAGING_LIBDIR}:${libdir}:g $i | ||
| 51 | done | ||
| 52 | |||
| 53 | if test -e ${D}${bindir} ; then | ||
| 54 | for i in ${D}${bindir}/* ; do \ | ||
| 55 | sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i | ||
| 56 | done | ||
| 57 | fi | ||
| 58 | |||
| 59 | if test -e ${D}${sbindir} ; then | ||
| 60 | for i in ${D}${sbindir}/* ; do \ | ||
| 61 | sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i | ||
| 62 | done | ||
| 63 | fi | ||
| 64 | |||
| 47 | sed -i -e '1s|^#!.*python|#!/usr/bin/env python|' ${D}${bindir}/pygtk-demo | 65 | sed -i -e '1s|^#!.*python|#!/usr/bin/env python|' ${D}${bindir}/pygtk-demo |
| 48 | } | 66 | } |
| 49 | 67 | ||
| 50 | # dirty fix #2: fix build system paths leaking in | ||
| 51 | require fix-path.inc | ||
| 52 | |||
| 53 | PACKAGES =+ "${PN}-demo" | 68 | PACKAGES =+ "${PN}-demo" |
| 54 | FILES_${PN}-demo = " ${bindir}/pygtk-demo ${libdir}/pygtk " | 69 | FILES_${PN}-demo = " ${bindir}/pygtk-demo ${libdir}/pygtk " |
| 55 | RDEPENDS_${PN}-demo = "python-pygtk python-stringold python-lang" | 70 | RDEPENDS_${PN}-demo = "python-pygtk python-stringold python-lang" |
