From patchwork Thu Apr 21 20:25:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4/8] python-pycairo: fix installation path of __init__.py Date: Thu, 21 Apr 2011 20:25:03 -0000 From: Nitin A Kamble X-Patchwork-Id: 2611 Message-Id: <47ed53398f5da2324935a1fd57c93c21ae45feb5.1303417346.git.nitin.a.kamble@intel.com> To: poky@yoctoproject.org,openembedded-core@lists.openembedded.org From: Nitin A Kamble This fixes Bug [YOCTO #477] Signed-off-by: Nitin A Kamble --- .../python/python-pycairo_1.8.10.bb | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/meta/recipes-devtools/python/python-pycairo_1.8.10.bb b/meta/recipes-devtools/python/python-pycairo_1.8.10.bb index 7d73dc2..24b3ff2 100644 --- a/meta/recipes-devtools/python/python-pycairo_1.8.10.bb +++ b/meta/recipes-devtools/python/python-pycairo_1.8.10.bb @@ -6,7 +6,7 @@ LICENSE = "LGPLv2.1 & MPLv1.1" LIC_FILES_CHKSUM = "file://COPYING;md5=f2e071ab72978431b294a0d696327421" # cairo >= 1.8.8 DEPENDS = "cairo" -PR = "ml0" +PR = "r1" SRC_URI = "http://cairographics.org/releases/py2cairo-${PV}.tar.gz" @@ -16,6 +16,12 @@ S = "${WORKDIR}/pycairo-${PV}" inherit distutils pkgconfig +do_compile_prepend() { +#fix the installation path of __init__.py +#It was going in the sysroot instead of target install location + sed -i -e "s#dsy.get_python_lib()#'${D}${PYTHON_SITEPACKAGES_DIR}'#" ${S}/setup.py +} + do_install_append () { install -d ${D}${includedir} install -d ${D}${libdir}