summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-pycairo_1.8.10.bb
blob: 7d73dc2ec4feefb040d20aa9d3e1294d0f62badf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
DESCRIPTION = "Python Bindings for the Cairo canvas library"
HOMEPAGE = "http://cairographics.org/pycairo"
BUGTRACKER = "http://bugs.freedesktop.org"
SECTION = "python-devel"
LICENSE = "LGPLv2.1 & MPLv1.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=f2e071ab72978431b294a0d696327421"
# cairo >= 1.8.8
DEPENDS = "cairo"
PR = "ml0"

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_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
}