Update the python3-pycairo package to the latest stable version and
move the .h and .pc files to the standard location

Tested on the qemu with core-image-minimal

Signed-off-by: Derek Straka <[email protected]>
---
 ...{python3-pycairo_1.15.6.bb => python3-pycairo_1.17.1.bb} | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
 rename meta/recipes-devtools/python/{python3-pycairo_1.15.6.bb => 
python3-pycairo_1.17.1.bb} (57%)

diff --git a/meta/recipes-devtools/python/python3-pycairo_1.15.6.bb 
b/meta/recipes-devtools/python/python3-pycairo_1.17.1.bb
similarity index 57%
rename from meta/recipes-devtools/python/python3-pycairo_1.15.6.bb
rename to meta/recipes-devtools/python/python3-pycairo_1.17.1.bb
index 5c3e1e6..54e7dcd 100644
--- a/meta/recipes-devtools/python/python3-pycairo_1.15.6.bb
+++ b/meta/recipes-devtools/python/python3-pycairo_1.17.1.bb
@@ -13,8 +13,8 @@ DEPENDS = "cairo"
 SRC_URI = 
"https://github.com/pygobject/pycairo/releases/download/v${PV}/pycairo-${PV}.tar.gz";
 UPSTREAM_CHECK_URI = "https://github.com/pygobject/pycairo/releases/";
 
-SRC_URI[md5sum] = "3ff210c34e7b052590e15fd0fb147766"
-SRC_URI[sha256sum] = 
"ad150ea637860836b66705e0513b8e59494538f0b80497ad3462051368755016"
+SRC_URI[md5sum] = "34c1ee106655b450c4bd57e29371a4a7"
+SRC_URI[sha256sum] = 
"0f0a35ec923d87bc495f6753b1e540fd046d95db56a35250c44089fbce03b698"
 
 S = "${WORKDIR}/pycairo-${PV}"
 
@@ -25,7 +25,10 @@ CFLAGS += "-fPIC"
 BBCLASSEXTEND = "native"
 
 do_install_append() {
-    install -d ${D}${includedir}/pycairo/
-    install -m 0644 ${D}${datadir}/include/pycairo/py3cairo.h 
${D}${includedir}/pycairo/
+    install -d ${D}${includedir}/pycairo/ ${D}${libdir}/pkgconfig
+    # setup.py uses --install-data which points to a non-standard datadir  to 
install the header and .pc files
+    # Fix the paths here to install in the standard locations instead
+    mv ${D}${datadir}/include/pycairo/py3cairo.h ${D}${includedir}/pycairo/
+    mv ${D}${datadir}/lib/pkgconfig/py3cairo.pc ${D}${libdir}/pkgconfig/
+    rm -rf ${D}${datadir}
 }
-FILES_${PN} += "${datadir}/include/pycairo/py3cairo.h"
-- 
2.7.4

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to