1 |
commit: 677b94d3e39b191a23b4cf422518967e0db11dcd |
2 |
Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org> |
3 |
AuthorDate: Wed Dec 21 12:17:55 2011 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 21 12:17:55 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=677b94d3 |
7 |
|
8 |
dev-python/paint: 0.2 |
9 |
|
10 |
--- |
11 |
dev-python/paint/files/paint-0.2-libart.patch | 25 +++++++++++++++ |
12 |
dev-python/paint/files/paint-0.2-libpng.patch | 34 ++++++++++++++++++++ |
13 |
dev-python/paint/paint-0.2.ebuild | 42 +++++++++++++++++++++++++ |
14 |
3 files changed, 101 insertions(+), 0 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/paint/files/paint-0.2-libart.patch b/dev-python/paint/files/paint-0.2-libart.patch |
17 |
new file mode 100644 |
18 |
index 0000000..90a50ec |
19 |
--- /dev/null |
20 |
+++ b/dev-python/paint/files/paint-0.2-libart.patch |
21 |
@@ -0,0 +1,25 @@ |
22 |
+From f401d9cb68994a34f90e9730e177a4955cf5be99 Mon Sep 17 00:00:00 2001 |
23 |
+From: Sebastian Pipping <sebastian@×××××××.org> |
24 |
+Date: Wed, 21 Dec 2011 13:02:12 +0100 |
25 |
+Subject: [PATCH 2/2] Fix compilation for libart_lgpl 2.3.21-r1 |
26 |
+ |
27 |
+--- |
28 |
+ setup.py | 2 +- |
29 |
+ 1 files changed, 1 insertions(+), 1 deletions(-) |
30 |
+ |
31 |
+diff --git a/setup.py b/setup.py |
32 |
+index 7adb521..3ac20b3 100644 |
33 |
+--- a/setup.py |
34 |
++++ b/setup.py |
35 |
+@@ -15,7 +15,7 @@ setup (name = "paint", |
36 |
+ ext_modules = [ |
37 |
+ Extension('paint', |
38 |
+ ['affine.c', 'font.c', 'image.c', 'paint.c', 'path.c'], |
39 |
+- libraries = ['ttf', 'art_lgpl', 'png'], |
40 |
++ libraries = ['ttf', 'art_lgpl_2', 'png'], |
41 |
+ ) |
42 |
+ ], |
43 |
+ ) |
44 |
+-- |
45 |
+1.7.8 |
46 |
+ |
47 |
|
48 |
diff --git a/dev-python/paint/files/paint-0.2-libpng.patch b/dev-python/paint/files/paint-0.2-libpng.patch |
49 |
new file mode 100644 |
50 |
index 0000000..4a7d540 |
51 |
--- /dev/null |
52 |
+++ b/dev-python/paint/files/paint-0.2-libpng.patch |
53 |
@@ -0,0 +1,34 @@ |
54 |
+From ae090336eec67d9d0eec87b367855d8ba1f12288 Mon Sep 17 00:00:00 2001 |
55 |
+From: Sebastian Pipping <sebastian@×××××××.org> |
56 |
+Date: Wed, 21 Dec 2011 13:01:28 +0100 |
57 |
+Subject: [PATCH 1/2] Fix compilation for libpng >1.4 |
58 |
+ |
59 |
+--- |
60 |
+ image.c | 4 ++-- |
61 |
+ 1 files changed, 2 insertions(+), 2 deletions(-) |
62 |
+ |
63 |
+diff --git a/image.c b/image.c |
64 |
+index ae13a86..ffe3549 100644 |
65 |
+--- a/image.c |
66 |
++++ b/image.c |
67 |
+@@ -129,7 +129,7 @@ static PyObject *image_write_png(ImageObj *self, PyObject *args) |
68 |
+ set_error(PyExc_RuntimeError, "could not create info struct"); |
69 |
+ return NULL; |
70 |
+ } |
71 |
+- if (setjmp(png_ptr->jmpbuf)) { |
72 |
++ if (setjmp(png_jmpbuf(png_ptr))) { |
73 |
+ fclose(fp); |
74 |
+ png_destroy_write_struct(&png_ptr, (png_infopp)NULL); |
75 |
+ set_error(PyExc_RuntimeError, "error building image"); |
76 |
+@@ -233,7 +233,7 @@ static PyObject *image_as_png(ImageObj *self, PyObject *args) |
77 |
+ set_error(PyExc_RuntimeError, "could not create info struct"); |
78 |
+ goto error; |
79 |
+ } |
80 |
+- if (setjmp(png_ptr->jmpbuf)) { |
81 |
++ if (setjmp(png_jmpbuf(png_ptr))) { |
82 |
+ set_error(PyExc_RuntimeError, "error building image"); |
83 |
+ goto error; |
84 |
+ } |
85 |
+-- |
86 |
+1.7.8 |
87 |
+ |
88 |
|
89 |
diff --git a/dev-python/paint/paint-0.2.ebuild b/dev-python/paint/paint-0.2.ebuild |
90 |
new file mode 100644 |
91 |
index 0000000..369d11e |
92 |
--- /dev/null |
93 |
+++ b/dev-python/paint/paint-0.2.ebuild |
94 |
@@ -0,0 +1,42 @@ |
95 |
+# Copyright 1999-2011 Gentoo Foundation |
96 |
+# Distributed under the terms of the GNU General Public License v2 |
97 |
+# $Header: $ |
98 |
+ |
99 |
+EAPI="3" |
100 |
+ |
101 |
+inherit eutils distutils |
102 |
+ |
103 |
+DESCRIPTION="Simple and flexible facility for painting PNG images files" |
104 |
+HOMEPAGE="http://www.object-craft.com.au/projects/paint/" |
105 |
+SRC_URI="http://www.object-craft.com.au/projects/${PN}/download/${P}.tar.gz" |
106 |
+ |
107 |
+LICENSE="BSD-4" |
108 |
+SLOT="0" |
109 |
+KEYWORDS="" # Crashes on ~amd64 |
110 |
+IUSE="" |
111 |
+ |
112 |
+DEPEND="media-libs/libart_lgpl |
113 |
+ media-libs/freetype |
114 |
+ media-libs/libpng" |
115 |
+RDEPEND="${DEPEND}" |
116 |
+ |
117 |
+src_prepare() { |
118 |
+ epatch "${FILESDIR}"/${P}-libart.patch |
119 |
+ |
120 |
+ ## http://www.libpng.org/pub/png/src/libpng-1.2.x-to-1.4.x-summary.txt |
121 |
+ epatch "${FILESDIR}"/${P}-libpng.patch |
122 |
+} |
123 |
+ |
124 |
+src_compile() { |
125 |
+ CFLAGS="-I/usr/include/libpng15 -I/usr/include/libart-2.0 ${CFLAGS}" \ |
126 |
+ distutils_src_compile |
127 |
+} |
128 |
+ |
129 |
+src_install() { |
130 |
+ distutils_src_install |
131 |
+ |
132 |
+ dodoc paint_doc.html || die |
133 |
+ |
134 |
+ insinto /usr/share/doc/${PF}/examples |
135 |
+ doins intro.py testpie.py test_paint.py test_bar.py || die |
136 |
+} |