diff options
author | Michael Lauer <mickey@vanille-media.de> | 2006-10-16 13:31:29 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2006-10-16 13:31:29 +0000 |
commit | 46076a93f6f49884ab7efd3012702c5f8ddf8d50 (patch) | |
tree | a1a78332348feec7971ff87336088ccd19337062 | |
parent | 4d5766571ab5a002eacce9784fca5c59d9040210 (diff) |
add python-pycairo, python bindings to the cairo canvas library
-rw-r--r-- | packages/python/python-pycairo/.mtn2git_empty | 0 | ||||
-rw-r--r-- | packages/python/python-pycairo/fix-pkgconfig-dir.patch | 13 | ||||
-rw-r--r-- | packages/python/python-pycairo_1.2.2.bb | 17 |
3 files changed, 30 insertions, 0 deletions
diff --git a/packages/python/python-pycairo/.mtn2git_empty b/packages/python/python-pycairo/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/python/python-pycairo/.mtn2git_empty diff --git a/packages/python/python-pycairo/fix-pkgconfig-dir.patch b/packages/python/python-pycairo/fix-pkgconfig-dir.patch new file mode 100644 index 0000000000..15f4b3d786 --- /dev/null +++ b/packages/python/python-pycairo/fix-pkgconfig-dir.patch @@ -0,0 +1,13 @@ +Index: pycairo-1.2.2/setup.py +=================================================================== +--- pycairo-1.2.2.orig/setup.py ++++ pycairo-1.2.2/setup.py +@@ -57,7 +57,7 @@ dic.setup( + ) + + pkgconfig_dir = os.path.join (sys.prefix, 'lib', 'pkgconfig') +-pkgconfig_file = os.path.join (pkgconfig_dir, 'pycairo.pc') ++pkgconfig_file = os.path.join ('.', 'pycairo.pc') + print 'creating %s' % pkgconfig_file + fo = file (pkgconfig_file, 'w') + fo.write ("""\ diff --git a/packages/python/python-pycairo_1.2.2.bb b/packages/python/python-pycairo_1.2.2.bb new file mode 100644 index 0000000000..548d972c50 --- /dev/null +++ b/packages/python/python-pycairo_1.2.2.bb @@ -0,0 +1,17 @@ +DESCRIPTION = "Python Bindings for the Cairo canvas library" +SECTION = "python-devel" +HOMEPAGE = "http://cairographics.org/pycairo" +LICENSE = "LGPL MPL" +DEPENDS = "cairo" + +SRC_URI = "http://cairographics.org/releases/pycairo-${PV}.tar.gz \ + file://fix-pkgconfig-dir.patch;patch=1" +S = "${WORKDIR}/pycairo-${PV}" + +inherit distutils + +do_stage() { + install -d ${STAGING_INCDIR} + install -m 0644 cairo/pycairo.h ${STAGING_INCDIR} +} + |