Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/betagarden:master commit in: dev-python/pypaint/files/, licenses/, dev-python/pypaint/
Date: Sat, 31 Mar 2012 00:06:50
Message-Id: 1333152346.4e00430eef7ea6a56e45ec54b241821c0a3bc7bf.sping@gentoo
1 commit: 4e00430eef7ea6a56e45ec54b241821c0a3bc7bf
2 Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org>
3 AuthorDate: Sat Mar 31 00:01:15 2012 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 31 00:05:46 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=4e00430e
7
8 dev-python/pypaint: 0.3
9
10 ---
11 .../pypaint/files/pypaint-0.3-libart-lgpl.patch | 11 +++++++
12 dev-python/pypaint/files/pypaint-0.3-libpng.patch | 20 +++++++++++++
13 dev-python/pypaint/pypaint-0.3.ebuild | 30 ++++++++++++++++++++
14 licenses/HPND | 28 ++++++++++++++++++
15 4 files changed, 89 insertions(+), 0 deletions(-)
16
17 diff --git a/dev-python/pypaint/files/pypaint-0.3-libart-lgpl.patch b/dev-python/pypaint/files/pypaint-0.3-libart-lgpl.patch
18 new file mode 100644
19 index 0000000..b86ed98
20 --- /dev/null
21 +++ b/dev-python/pypaint/files/pypaint-0.3-libart-lgpl.patch
22 @@ -0,0 +1,11 @@
23 +--- setup.py 2012-03-31 01:37:17.010314343 +0200
24 ++++ setup.py 2012-03-31 01:37:39.141037671 +0200
25 +@@ -11,7 +11,7 @@
26 + source_files = ['affine.c', 'font.c', 'image.c', 'paint.c', 'path.c']
27 + Extension.__init__(self, 'paint',
28 + sources = [os.path.join(source_dir, source_file) for source_file in source_files],
29 +- libraries = ['ttf', 'art_lgpl', 'png', 'z'],
30 ++ libraries = ['ttf', 'art_lgpl_2', 'png', 'z'],
31 + include_dirs = include_dirs,
32 + library_dirs = library_dirs
33 + )
34
35 diff --git a/dev-python/pypaint/files/pypaint-0.3-libpng.patch b/dev-python/pypaint/files/pypaint-0.3-libpng.patch
36 new file mode 100644
37 index 0000000..149e0be
38 --- /dev/null
39 +++ b/dev-python/pypaint/files/pypaint-0.3-libpng.patch
40 @@ -0,0 +1,20 @@
41 +--- image.c 2012-03-31 01:35:48.618419393 +0200
42 ++++ image.c 2012-03-31 01:36:29.904903241 +0200
43 +@@ -129,7 +129,7 @@
44 + set_error(PyExc_RuntimeError, "could not create info struct");
45 + return NULL;
46 + }
47 +- if (setjmp(png_ptr->jmpbuf)) {
48 ++ if (png_jmpbuf(png_ptr)) {
49 + fclose(fp);
50 + png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
51 + set_error(PyExc_RuntimeError, "error building image");
52 +@@ -233,7 +233,7 @@
53 + set_error(PyExc_RuntimeError, "could not create info struct");
54 + goto error;
55 + }
56 +- if (setjmp(png_ptr->jmpbuf)) {
57 ++ if (png_jmpbuf(png_ptr)) {
58 + set_error(PyExc_RuntimeError, "error building image");
59 + goto error;
60 + }
61
62 diff --git a/dev-python/pypaint/pypaint-0.3.ebuild b/dev-python/pypaint/pypaint-0.3.ebuild
63 new file mode 100644
64 index 0000000..81e244b
65 --- /dev/null
66 +++ b/dev-python/pypaint/pypaint-0.3.ebuild
67 @@ -0,0 +1,30 @@
68 +# Copyright 1999-2012 Gentoo Foundation
69 +# Distributed under the terms of the GNU General Public License v2
70 +# $Header: $
71 +
72 +EAPI="3"
73 +
74 +inherit eutils distutils
75 +
76 +DESCRIPTION="light wrapper of the libart library for Python, producing PNG images"
77 +HOMEPAGE="http://pypaint.sourceforge.net/"
78 +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PN}%20${PV}/${P}.tar.gz"
79 +
80 +LICENSE="HPND"
81 +SLOT="0"
82 +KEYWORDS=""
83 +IUSE=""
84 +
85 +DEPEND="media-libs/libart_lgpl
86 + media-libs/libpng
87 + sys-libs/zlib"
88 +RDEPEND="${DEPEND}
89 + !dev-python/paint"
90 +
91 +src_prepare() {
92 + epatch "${FILESDIR}"/${P}-lib{art-lgpl,png}.patch
93 +}
94 +
95 +src_compile() {
96 + CPPFLAGS="-I/usr/include/libart-2.0" distutils_src_compile
97 +}
98
99 diff --git a/licenses/HPND b/licenses/HPND
100 new file mode 100644
101 index 0000000..5241fb6
102 --- /dev/null
103 +++ b/licenses/HPND
104 @@ -0,0 +1,28 @@
105 +Open Source Initiative OSI - Historical Permission Notice and
106 +Disclaimer (HPND) [OSI Approved License]
107 +
108 +Historical Permission Notice and Disclaimer (HPND) This License has
109 +been voluntarily deprecated by its author.
110 +
111 +<copyright notice>
112 +
113 +Permission to use, copy, modify and distribute this software and
114 +its documentation for any purpose and without fee is hereby
115 +granted, provided that the above copyright notice appear in all
116 +copies[,] [and] that both [that] [the] copyright notice and this
117 +permission notice appear in supporting documentation[, and that the
118 +name [of] <copyright holder> [or <related entities>] not be used in
119 +advertising or publicity pertaining to distribution of the software
120 +without specific, written prior permission]. [<copyright holder>
121 +makes no representations about the suitability of this software for
122 +any purpose. It is provided "as is" without express or implied
123 +warranty.]
124 +
125 +[<copyright holder> DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
126 +SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
127 +FITNESS[,][.] IN NO EVENT SHALL <copyright holder> BE LIABLE FOR
128 +ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
129 +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
130 +AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
131 +OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
132 +SOFTWARE.]