python-pygtk: remove invalid sed command

* There is no 'tests docs' in Makefile.am any more, so remove:
    sed -i 's:tests docs:tests:' ${S}/Makefile.am
* Remove the invalid sed command in do_install_append, only the one for
  pygtk-demo is needed.

(From OE-Core rev: 80f020acfa36d142edef7042e35e49f08c6b2a59)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Robert Yang 2015-07-10 00:14:55 -07:00 committed by Richard Purdie
parent d3904caf3e
commit 3f71c883b8
1 changed files with 0 additions and 21 deletions

View File

@ -37,31 +37,10 @@ do_configure_prepend() {
-e s:'`$PKG_CONFIG --variable codegendir pygobject-2.0`':\"${STAGING_DATADIR}/pygobject/2.0/codegen\":g \
-e s:'`$PKG_CONFIG --variable=fixxref pygobject-2.0`':\"${STAGING_DATADIR}/pygobject/xsl/fixxref.py\":g \
${S}/configure.ac
sed -i 's:tests docs:tests:' ${S}/Makefile.am
}
# dirty fix #2: fix build system paths leaking in
do_install_append() {
for i in `find ${D} -name "*.py"` ; do \
sed -i -e s:${D}::g $i
done
for i in `find ${D} -name "*.la"` ; do \
sed -i -e s:${STAGING_LIBDIR}:${libdir}:g $i
done
if test -e ${D}${bindir} ; then
for i in ${D}${bindir}/* ; do \
sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
done
fi
if test -e ${D}${sbindir} ; then
for i in ${D}${sbindir}/* ; do \
sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
done
fi
sed -i -e '1s|^#!.*python|#!/usr/bin/env python|' ${D}${bindir}/pygtk-demo
}