Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/fr0st/, media-gfx/fr0st/files/
Date: Mon, 29 Feb 2016 19:20:08
Message-Id: 1456773521.52f1685f3f43b07195dc89da548aed2fe1d639c0.pacho@gentoo
1 commit: 52f1685f3f43b07195dc89da548aed2fe1d639c0
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 29 19:18:41 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 29 19:18:41 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52f1685f
7
8 media-gfx/fr0st: Fix problems at runtime (#564106, thanks a lot to Malcolm Lashley for finding the fix), port to new python eclasses, use wxGTK3.
9
10 Package-Manager: portage-2.2.27
11
12 media-gfx/fr0st/files/fr0st-1.4-colour.patch | 9 +++++
13 media-gfx/fr0st/fr0st-1.4-r2.ebuild | 58 ++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/media-gfx/fr0st/files/fr0st-1.4-colour.patch b/media-gfx/fr0st/files/fr0st-1.4-colour.patch
17 new file mode 100644
18 index 0000000..9fb17aa
19 --- /dev/null
20 +++ b/media-gfx/fr0st/files/fr0st-1.4-colour.patch
21 @@ -0,0 +1,9 @@
22 +--- fr0stlib/gui/canvas.py~ 2011-05-14 19:58:25.000000000 +0200
23 ++++ fr0stlib/gui/canvas.py 2016-02-20 17:47:25.853322560 +0100
24 +@@ -79,7 +79,7 @@
25 +
26 + def SetBrush(self, FillColor, FillStyle):
27 + r,g,b = FillColor
28 +- c = wx.Color(r,g,b, self.Opacity)
29 ++ c = wx.Colour(r,g,b, self.Opacity)
30 + self.Brush = wx.Brush(c)
31
32 diff --git a/media-gfx/fr0st/fr0st-1.4-r2.ebuild b/media-gfx/fr0st/fr0st-1.4-r2.ebuild
33 new file mode 100644
34 index 0000000..b1da6b5
35 --- /dev/null
36 +++ b/media-gfx/fr0st/fr0st-1.4-r2.ebuild
37 @@ -0,0 +1,58 @@
38 +# Copyright 1999-2011 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +# $Id$
41 +
42 +EAPI=5
43 +WX_GTK_VER="3.0"
44 +PYTHON_COMPAT=( python2_7 )
45 +
46 +inherit eutils multilib python-single-r1 wxwidgets
47 +
48 +DESCRIPTION="A fractal flame editor"
49 +HOMEPAGE="http://fr0st.wordpress.com/"
50 +SRC_URI="https://launchpad.net/${PN}/trunk/${PV}.0/+download/${P}-src.tgz"
51 +
52 +LICENSE="GPL-3"
53 +SLOT="0"
54 +KEYWORDS="~amd64 ~x86"
55 +IUSE=""
56 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
57 +
58 +RDEPEND="${PYTHON_DEPS}
59 + dev-python/wxpython:${WX_GTK_VER}
60 + >=media-gfx/flam3-3.0.1
61 +"
62 +DEPEND="${RDEPEND}"
63 +
64 +S="${WORKDIR}/${P}-src"
65 +
66 +pkg_setup() {
67 + fr0st_libdir="/usr/$(get_libdir)/fr0st"
68 + fr0st_sharedir="/usr/share/fr0st"
69 +
70 + python-single-r1_pkg_setup
71 +}
72 +
73 +src_prepare() {
74 + epatch "${FILESDIR}"/${P}-colour.patch #564106
75 + python_fix_shebang .
76 + need-wxwidgets unicode
77 +}
78 +
79 +src_install() {
80 + insinto "${fr0st_sharedir}"
81 + doins -r icons samples
82 +
83 + insinto "${fr0st_libdir}"
84 + doins -r fr0stlib
85 +
86 + exeinto "${fr0st_libdir}"
87 + doexe fr0st.py
88 +
89 + dosym "${fr0st_libdir}"/fr0st.py /usr/bin/fr0st
90 + dosym "${fr0st_sharedir}"/icons/fr0st.png /usr/share/pixmaps/fr0st.png
91 +
92 + make_desktop_entry fr0st fr0st
93 +
94 + dodoc changelog.txt
95 +}