diff options
author | Saul Wold <sgw@linux.intel.com> | 2011-12-19 08:39:29 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-22 13:13:42 +0000 |
commit | 99e14dc6aa5c1160a1be020122b0765d74b1b28c (patch) | |
tree | 3dce1b76581b88e7c7d23c7a61518b465e32ba22 /meta/recipes-devtools/python | |
parent | 1ca8bb24ea0618b1351aaa70c69e2eedbaa74d1f (diff) | |
download | poky-99e14dc6aa5c1160a1be020122b0765d74b1b28c.tar.gz |
python-pycairo: Upgrade to 1.10.0
tweak the pycairo.pc correctly.
(From OE-Core rev: 7197efde264bee4d8deb37b9fd08cc9cc83d1ac4)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r-- | meta/recipes-devtools/python/python-pycairo_1.10.0.bb | 39 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python-pycairo_1.8.10.bb | 31 |
2 files changed, 39 insertions, 31 deletions
diff --git a/meta/recipes-devtools/python/python-pycairo_1.10.0.bb b/meta/recipes-devtools/python/python-pycairo_1.10.0.bb new file mode 100644 index 0000000000..812acfb3fd --- /dev/null +++ b/meta/recipes-devtools/python/python-pycairo_1.10.0.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | DESCRIPTION = "Python Bindings for the Cairo canvas library" | ||
2 | HOMEPAGE = "http://cairographics.org/pycairo" | ||
3 | BUGTRACKER = "http://bugs.freedesktop.org" | ||
4 | SECTION = "python-devel" | ||
5 | LICENSE = "LGPLv1.1 & MPL-1" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=f2e071ab72978431b294a0d696327421 \ | ||
7 | file://COPYING-LGPL-2.1;md5=fad9b3332be894bab9bc501572864b29 \ | ||
8 | file://COPYING-MPL-1.1;md5=bfe1f75d606912a4111c90743d6c7325" | ||
9 | |||
10 | # cairo >= 1.8.8 | ||
11 | DEPENDS = "cairo" | ||
12 | PR = "r0" | ||
13 | |||
14 | SRC_URI = "http://cairographics.org/releases/py2cairo-${PV}.tar.bz2" | ||
15 | |||
16 | SRC_URI[md5sum] = "20337132c4ab06c1146ad384d55372c5" | ||
17 | SRC_URI[sha256sum] = "d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431" | ||
18 | |||
19 | S = "${WORKDIR}/py2cairo-${PV}" | ||
20 | |||
21 | inherit distutils pkgconfig | ||
22 | |||
23 | do_configure() { | ||
24 | BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} ./waf configure --prefix=${D}${prefix} | ||
25 | } | ||
26 | |||
27 | do_compile() { | ||
28 | ./waf build | ||
29 | } | ||
30 | |||
31 | do_install() { | ||
32 | ./waf install | ||
33 | sed \ | ||
34 | -e 's:@prefix@:${prefix}:' \ | ||
35 | -e 's:@VERSION@:${PV}:' \ | ||
36 | -e 's:@includedir@:${includedir}:' \ | ||
37 | pycairo.pc.in > pycairo.pc | ||
38 | install -m 0644 pycairo.pc ${D}${libdir}/pkgconfig/ | ||
39 | } | ||
diff --git a/meta/recipes-devtools/python/python-pycairo_1.8.10.bb b/meta/recipes-devtools/python/python-pycairo_1.8.10.bb deleted file mode 100644 index 02ec353f0a..0000000000 --- a/meta/recipes-devtools/python/python-pycairo_1.8.10.bb +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | DESCRIPTION = "Python Bindings for the Cairo canvas library" | ||
2 | HOMEPAGE = "http://cairographics.org/pycairo" | ||
3 | BUGTRACKER = "http://bugs.freedesktop.org" | ||
4 | SECTION = "python-devel" | ||
5 | LICENSE = "LGPLv2.1 & MPL-1" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=f2e071ab72978431b294a0d696327421" | ||
7 | # cairo >= 1.8.8 | ||
8 | DEPENDS = "cairo" | ||
9 | PR = "r2" | ||
10 | |||
11 | SRC_URI = "http://cairographics.org/releases/py2cairo-${PV}.tar.gz" | ||
12 | |||
13 | SRC_URI[md5sum] = "87421a6a70304120555ba7ba238f3dc3" | ||
14 | SRC_URI[sha256sum] = "b15f71019e42e06d86f7e8fe5587f07c3de5a59a6c3a071b25fe100796dbcd56" | ||
15 | S = "${WORKDIR}/pycairo-${PV}" | ||
16 | |||
17 | inherit distutils pkgconfig | ||
18 | |||
19 | do_compile_prepend() { | ||
20 | #fix the installation path of __init__.py | ||
21 | #It was going in the sysroot instead of target install location | ||
22 | sed -i -e "s#dsy.get_python_lib()#'${D}${PYTHON_SITEPACKAGES_DIR}'#" ${S}/setup.py | ||
23 | } | ||
24 | |||
25 | do_install_append () { | ||
26 | install -d ${D}${includedir} | ||
27 | install -d ${D}${libdir} | ||
28 | mv ${D}${datadir}/include/* ${D}${includedir} | ||
29 | mv ${D}${datadir}/lib/* ${D}${libdir} | ||
30 | sed -i -e 's#prefix=.*#prefix=${prefix}#' ${D}${libdir}/pkgconfig/pycairo.pc | ||
31 | } | ||