Gentoo Archives: gentoo-commits

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/cropgui/files/, media-gfx/cropgui/
Date: Thu, 28 Jan 2016 10:30:44
Message-Id: 1453977033.77ac2746662fcb33b9fd9f1dbe8a2b3c4d103316.pinkbyte@gentoo
1 commit: 77ac2746662fcb33b9fd9f1dbe8a2b3c4d103316
2 Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 28 10:29:59 2016 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 28 10:30:33 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77ac2746
7
8 media-gfx/cropgui: version bump
9
10 Gentoo-Bug: 569654
11
12 Package-Manager: portage-2.2.26
13
14 media-gfx/cropgui/Manifest | 1 +
15 media-gfx/cropgui/cropgui-0.2.ebuild | 52 +++++++++++++++++++++++++++
16 media-gfx/cropgui/cropgui-9999.ebuild | 50 ++++++++++++++++++++++++++
17 media-gfx/cropgui/files/cropgui-0.2-PIL.patch | 26 ++++++++++++++
18 4 files changed, 129 insertions(+)
19
20 diff --git a/media-gfx/cropgui/Manifest b/media-gfx/cropgui/Manifest
21 index 1689149..5ec16d3 100644
22 --- a/media-gfx/cropgui/Manifest
23 +++ b/media-gfx/cropgui/Manifest
24 @@ -1 +1,2 @@
25 +DIST cropgui-0.2.tar.gz 842734 SHA256 9b0fcbc7a8f656979ad8ffcd09b08cec9f8ad20cd617402bae0b64526b5302fc SHA512 d6a9feea8c5de57455d0f7247465108d5a931f773f4df0c91629400bcc2c958c76559a84b6cde45709bcc8936ff7f5e2b3553897a14fbec14a9f032065ce83ba WHIRLPOOL 55e54c3adbf8992acb78c27f159874797cb4d54538b5c33b5350d0781ad1204d72e8db8c3d734922fe2893ea5d57b5a16ee2f7b8dad4db71f469462ecadfd1b1
26 DIST cropgui_0.1.1.tar.gz 13142 SHA256 d2bab11c2bafdbcbe9c8cac7827a7e25b909b2962cef29e1ce7181ccb2834a75 SHA512 abfe8dfd46a316e970b0355f6b05e2d2a4a54243e201dfc8434ee09f31c8715471dd1f00bd0c6cda646406e6398e5b43da3269bf74d1f2d9d436d5931d2b968f WHIRLPOOL 1e4f9fca887d2d988c6d944f85cae6125472ea08118e84b5601123e2af603b16d49ed54385f9552f1cd819f447b2ceace742ee4fd1e95f5d0461f4c173a1ef7e
27
28 diff --git a/media-gfx/cropgui/cropgui-0.2.ebuild b/media-gfx/cropgui/cropgui-0.2.ebuild
29 new file mode 100644
30 index 0000000..912767d
31 --- /dev/null
32 +++ b/media-gfx/cropgui/cropgui-0.2.ebuild
33 @@ -0,0 +1,52 @@
34 +# Copyright 1999-2016 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Id$
37 +
38 +EAPI=6
39 +
40 +PYTHON_COMPAT=( python2_7 )
41 +inherit eutils python-r1
42 +
43 +DESCRIPTION="GUI for lossless cropping of jpeg images"
44 +HOMEPAGE="http://emergent.unpythonic.net/01248401946"
45 +SRC_URI="https://github.com/jepler/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="GPL-2"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +
53 +DEPEND="${PYTHON_DEPS}"
54 +RDEPEND="${PYTHON_DEPS}
55 + dev-python/pillow[${PYTHON_USEDEP}]
56 + dev-python/pygobject:2[${PYTHON_USEDEP}]
57 + dev-python/pygtk:2[${PYTHON_USEDEP}]
58 +"
59 +
60 +src_prepare() {
61 + sed -i -e '/Encoding/d' \
62 + -e '/Version/d' \
63 + -e '/MimeType/s/$/&;/' \
64 + -e '/Categories/s/Application;//' \
65 + cropgui.desktop || die 'sed on cropgui.desktop failed'
66 + # bug 471530
67 + eapply "${FILESDIR}/${P}-PIL.patch"
68 +
69 + eapply_user
70 +}
71 +
72 +install_cropgui_wrapper() {
73 + python_domodule cropgtk.py cropgui_common.py filechooser.py cropgui.glade
74 + make_wrapper "${PN}.tmp" "${PYTHON} $(python_get_sitedir)/${PN}/cropgtk.py"
75 + python_newexe "${ED%/}/usr/bin/${PN}.tmp" "${PN}"
76 + rm "${ED%/}/usr/bin/${PN}.tmp" || die
77 +}
78 +
79 +src_install() {
80 + local python_moduleroot="${PN}"
81 + python_foreach_impl install_cropgui_wrapper
82 +
83 + domenu "${PN}.desktop"
84 + doicon "${PN}.png"
85 +}
86
87 diff --git a/media-gfx/cropgui/cropgui-9999.ebuild b/media-gfx/cropgui/cropgui-9999.ebuild
88 new file mode 100644
89 index 0000000..ac8de05
90 --- /dev/null
91 +++ b/media-gfx/cropgui/cropgui-9999.ebuild
92 @@ -0,0 +1,50 @@
93 +# Copyright 1999-2016 Gentoo Foundation
94 +# Distributed under the terms of the GNU General Public License v2
95 +# $Id$
96 +
97 +EAPI=6
98 +
99 +EGIT_REPO_URI="https://github.com/jepler/cropgui.git"
100 +PYTHON_COMPAT=( python2_7 )
101 +inherit eutils git-r3 python-r1
102 +
103 +DESCRIPTION="GUI for lossless cropping of jpeg images"
104 +HOMEPAGE="http://emergent.unpythonic.net/01248401946"
105 +
106 +LICENSE="GPL-2"
107 +SLOT="0"
108 +KEYWORDS=""
109 +
110 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
111 +
112 +DEPEND="${PYTHON_DEPS}"
113 +RDEPEND="${PYTHON_DEPS}
114 + dev-python/pillow[${PYTHON_USEDEP}]
115 + dev-python/pygobject:2[${PYTHON_USEDEP}]
116 + dev-python/pygtk:2[${PYTHON_USEDEP}]
117 +"
118 +
119 +src_prepare() {
120 + sed -i -e '/Encoding/d' \
121 + -e '/Version/d' \
122 + -e '/MimeType/s/$/&;/' \
123 + -e '/Categories/s/Application;//' \
124 + cropgui.desktop || die 'sed on cropgui.desktop failed'
125 +
126 + eapply_user
127 +}
128 +
129 +install_cropgui_wrapper() {
130 + python_domodule cropgtk.py cropgui_common.py filechooser.py cropgui.glade
131 + make_wrapper "${PN}.tmp" "${PYTHON} $(python_get_sitedir)/${PN}/cropgtk.py"
132 + python_newexe "${ED%/}/usr/bin/${PN}.tmp" "${PN}"
133 + rm "${ED%/}/usr/bin/${PN}.tmp" || die
134 +}
135 +
136 +src_install() {
137 + local python_moduleroot="${PN}"
138 + python_foreach_impl install_cropgui_wrapper
139 +
140 + domenu "${PN}.desktop"
141 + doicon "${PN}.png"
142 +}
143
144 diff --git a/media-gfx/cropgui/files/cropgui-0.2-PIL.patch b/media-gfx/cropgui/files/cropgui-0.2-PIL.patch
145 new file mode 100644
146 index 0000000..3c1e918
147 --- /dev/null
148 +++ b/media-gfx/cropgui/files/cropgui-0.2-PIL.patch
149 @@ -0,0 +1,26 @@
150 +--- cropgui.orig/cropgui_common.py 2016-01-28 12:54:47.424636620 +0300
151 ++++ cropgui/cropgui_common.py 2016-01-28 12:55:15.176635735 +0300
152 +@@ -13,9 +13,9 @@
153 + # You should have received a copy of the GNU General Public License
154 + # along with this program; if not, write to the Free Software
155 + # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
156 +-import Image
157 +-import ImageFilter
158 +-import ImageDraw
159 ++from PIL import Image
160 ++from PIL import ImageFilter
161 ++from PIL import ImageDraw
162 + import subprocess
163 + import threading
164 + import Queue
165 +--- cropgui.orig/filechooser.py 2016-01-28 12:55:26.505635374 +0300
166 ++++ cropgui/filechooser.py 2016-01-28 12:55:32.649635178 +0300
167 +@@ -8,7 +8,7 @@
168 + import gobject
169 +
170 + import os
171 +-import Image
172 ++from PIL import Image
173 + import cropgui_common
174 +
175 + def apply_rotation(rotation, image):