mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
1ca8bb24ea
commit
99e14dc6aa
39
meta/recipes-devtools/python/python-pycairo_1.10.0.bb
Normal file
39
meta/recipes-devtools/python/python-pycairo_1.10.0.bb
Normal file
@@ -0,0 +1,39 @@
|
||||
DESCRIPTION = "Python Bindings for the Cairo canvas library"
|
||||
HOMEPAGE = "http://cairographics.org/pycairo"
|
||||
BUGTRACKER = "http://bugs.freedesktop.org"
|
||||
SECTION = "python-devel"
|
||||
LICENSE = "LGPLv1.1 & MPL-1"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=f2e071ab72978431b294a0d696327421 \
|
||||
file://COPYING-LGPL-2.1;md5=fad9b3332be894bab9bc501572864b29 \
|
||||
file://COPYING-MPL-1.1;md5=bfe1f75d606912a4111c90743d6c7325"
|
||||
|
||||
# cairo >= 1.8.8
|
||||
DEPENDS = "cairo"
|
||||
PR = "r0"
|
||||
|
||||
SRC_URI = "http://cairographics.org/releases/py2cairo-${PV}.tar.bz2"
|
||||
|
||||
SRC_URI[md5sum] = "20337132c4ab06c1146ad384d55372c5"
|
||||
SRC_URI[sha256sum] = "d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431"
|
||||
|
||||
S = "${WORKDIR}/py2cairo-${PV}"
|
||||
|
||||
inherit distutils pkgconfig
|
||||
|
||||
do_configure() {
|
||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} ./waf configure --prefix=${D}${prefix}
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
./waf build
|
||||
}
|
||||
|
||||
do_install() {
|
||||
./waf install
|
||||
sed \
|
||||
-e 's:@prefix@:${prefix}:' \
|
||||
-e 's:@VERSION@:${PV}:' \
|
||||
-e 's:@includedir@:${includedir}:' \
|
||||
pycairo.pc.in > pycairo.pc
|
||||
install -m 0644 pycairo.pc ${D}${libdir}/pkgconfig/
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
DESCRIPTION = "Python Bindings for the Cairo canvas library"
|
||||
HOMEPAGE = "http://cairographics.org/pycairo"
|
||||
BUGTRACKER = "http://bugs.freedesktop.org"
|
||||
SECTION = "python-devel"
|
||||
LICENSE = "LGPLv2.1 & MPL-1"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=f2e071ab72978431b294a0d696327421"
|
||||
# cairo >= 1.8.8
|
||||
DEPENDS = "cairo"
|
||||
PR = "r2"
|
||||
|
||||
SRC_URI = "http://cairographics.org/releases/py2cairo-${PV}.tar.gz"
|
||||
|
||||
SRC_URI[md5sum] = "87421a6a70304120555ba7ba238f3dc3"
|
||||
SRC_URI[sha256sum] = "b15f71019e42e06d86f7e8fe5587f07c3de5a59a6c3a071b25fe100796dbcd56"
|
||||
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}
|
||||
mv ${D}${datadir}/include/* ${D}${includedir}
|
||||
mv ${D}${datadir}/lib/* ${D}${libdir}
|
||||
sed -i -e 's#prefix=.*#prefix=${prefix}#' ${D}${libdir}/pkgconfig/pycairo.pc
|
||||
}
|
||||
Reference in New Issue
Block a user