[oe-commits] [openembedded-core] 20/22: python3-pycairo: update to 1.17.1

git at git.openembedded.org git at git.openembedded.org
Thu Jul 12 20:07:22 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 420bde945017d901b871f61c4e79cba880eb2044
Author: Derek Straka <derek at asterius.io>
AuthorDate: Tue Jul 10 17:18:46 2018 -0400

    python3-pycairo: update to 1.17.1
    
    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 <derek at asterius.io>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 ...{python3-pycairo_1.15.6.bb => python3-pycairo_1.17.1.bb} | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list