1 |
commit: dc70a5b1918c5cf435e1baf7987a0f848bffb037 |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Thu Apr 30 03:35:24 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Thu Apr 30 03:35:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dc70a5b1 |
7 |
|
8 |
media-gfx/azpainter: Bump to 2.1.6 |
9 |
|
10 |
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me> |
11 |
|
12 |
media-gfx/azpainter/Manifest | 1 + |
13 |
media-gfx/azpainter/azpainter-2.1.6.ebuild | 34 +++++ |
14 |
.../files/azpainter-2.1.6-fix_configure.patch | 83 +++++++++++ |
15 |
.../files/azpainter-2.1.6-signed_char.patch | 156 +++++++++++++++++++++ |
16 |
4 files changed, 274 insertions(+) |
17 |
|
18 |
diff --git a/media-gfx/azpainter/Manifest b/media-gfx/azpainter/Manifest |
19 |
index 351f1bb..bf31471 100644 |
20 |
--- a/media-gfx/azpainter/Manifest |
21 |
+++ b/media-gfx/azpainter/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST azpainter-2.1.5.tar.xz 825892 BLAKE2B c6430393bb7dc3fd4b38357f696ec1da567b2b5763ed5e51526fa7948bf8c7a25b8200771607ecd86ed927d3692c5b4a72c471d8e354a7da48aa952b934ea852 SHA512 9797a22d512a26cdf2d441f91c5b77e9a8221433d33359782486f2254fffdaa30daae04da77e899b4068e5988aa67dfda3b7bb915d41a807e3069f84c8d15a3a |
24 |
+DIST azpainter-2.1.6.tar.xz 747464 BLAKE2B a3d242cb3fa881c761711595686362924e55125f7b33def30949c321b6a23ccb2bed1b4d3df0b7e73ebd4a5f6a75e7c4b99c4116d5e6af62518d03fc92e6de81 SHA512 94ebe3ad8df7148d73a6f73fe383df2d8b9203aa67ef77ebcc68c8fa937ba134315ca757693c5ad33bdf79afd90915779a3086d24f5a81ab767eced50d4d97d9 |
25 |
|
26 |
diff --git a/media-gfx/azpainter/azpainter-2.1.6.ebuild b/media-gfx/azpainter/azpainter-2.1.6.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..1176940 |
29 |
--- /dev/null |
30 |
+++ b/media-gfx/azpainter/azpainter-2.1.6.ebuild |
31 |
@@ -0,0 +1,34 @@ |
32 |
+# Copyright 2018-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+DESCRIPTION="Full color painting software for Linux for illustration drawing" |
38 |
+HOMEPAGE="http://azsky2.html.xdomain.jp/linux/azpainter.html https://github.com/Symbian9/azpainter" |
39 |
+SRC_URI="https://github.com/Symbian9/azpainter/releases/download/v${PV}/${P}.tar.xz" |
40 |
+ |
41 |
+LICENSE="GPL-3" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="" |
45 |
+ |
46 |
+DEPEND=" |
47 |
+ x11-libs/libX11:= |
48 |
+ x11-libs/libXext:= |
49 |
+ x11-libs/libXi:= |
50 |
+ media-libs/freetype:= |
51 |
+ media-libs/fontconfig:= |
52 |
+ sys-libs/zlib:= |
53 |
+ media-libs/libpng:= |
54 |
+ media-libs/libjpeg-turbo:= |
55 |
+" |
56 |
+RDEPEND="${DEPEND}" |
57 |
+ |
58 |
+PATCHES=( |
59 |
+ "${FILESDIR}/${P}-fix_configure.patch" |
60 |
+ "${FILESDIR}/${P}-signed_char.patch" |
61 |
+) |
62 |
+ |
63 |
+src_configure() { |
64 |
+ sh ./configure --prefix=/usr CFLAGS="${CFLAGS:-02}" LDFLAGS="${LDFLAGS}" |
65 |
+} |
66 |
|
67 |
diff --git a/media-gfx/azpainter/files/azpainter-2.1.6-fix_configure.patch b/media-gfx/azpainter/files/azpainter-2.1.6-fix_configure.patch |
68 |
new file mode 100644 |
69 |
index 0000000..f8824dd |
70 |
--- /dev/null |
71 |
+++ b/media-gfx/azpainter/files/azpainter-2.1.6-fix_configure.patch |
72 |
@@ -0,0 +1,83 @@ |
73 |
+From 185bf21dd0040a11cbffddb6e4bcf7af46a5bef7 Mon Sep 17 00:00:00 2001 |
74 |
+From: app4soft <appsoft@××.fm> |
75 |
+Date: Sun, 26 Apr 2020 06:54:09 +0300 |
76 |
+Subject: [PATCH] Update configure |
77 |
+ |
78 |
+--- |
79 |
+ README | 2 +- |
80 |
+ README_ja | 2 +- |
81 |
+ configure | 11 ++++++----- |
82 |
+ 3 files changed, 8 insertions(+), 7 deletions(-) |
83 |
+ mode change 100755 => 100644 configure |
84 |
+ |
85 |
+diff --git a/README b/README |
86 |
+index ba5f2c8..610e423 100644 |
87 |
+--- a/README |
88 |
++++ b/README |
89 |
+@@ -90,7 +90,7 @@ $ gmake |
90 |
+ |
91 |
+ ## MacOS |
92 |
+ |
93 |
+-$ ./configure --prefix=/usr/X11 |
94 |
++$ ./configure --prefix=/opt/X11 |
95 |
+ $ make |
96 |
+ $ sudo make install |
97 |
+ |
98 |
+diff --git a/README_ja b/README_ja |
99 |
+index db190f2..997a499 100644 |
100 |
+--- a/README_ja |
101 |
++++ b/README_ja |
102 |
+@@ -102,7 +102,7 @@ $ gmake |
103 |
+ |
104 |
+ ## MacOS |
105 |
+ |
106 |
+-$ ./configure --prefix=/usr/X11 |
107 |
++$ ./configure --prefix=/opt/X11 |
108 |
+ $ make |
109 |
+ $ sudo make install |
110 |
+ |
111 |
+diff --git a/configure b/configure |
112 |
+old mode 100755 |
113 |
+new mode 100644 |
114 |
+index cb9a9f6..e98b20f |
115 |
+--- a/configure |
116 |
++++ b/configure |
117 |
+@@ -9,7 +9,7 @@ cat <<_ZYXW_ |
118 |
+ |
119 |
+ Options: |
120 |
+ --help display this help |
121 |
+- --debug create debug exe (CFLAGS += -g) |
122 |
++ --debug create debug exe (CFLAGS = -g) |
123 |
+ --arch=[ARCH] CFLAGS += "-march=ARCH" |
124 |
+ |
125 |
+ --prefix=[PREFIX] install dir |
126 |
+@@ -202,7 +202,8 @@ for opt;do |
127 |
+ --no-check-lib) |
128 |
+ cf_check_lib=no ;; |
129 |
+ *=*) |
130 |
+- eval "$opt" ;; |
131 |
++ tmp2=`expr "X$opt" : 'X\([^=]*\)=.*'` |
132 |
++ eval $tmp2=\'$tmp1\' ;; |
133 |
+ *) |
134 |
+ echo "unknown option: $opt" |
135 |
+ exit 1 ;; |
136 |
+@@ -226,8 +227,8 @@ tmp1=`uname` |
137 |
+ if test "$tmp1" = Linux;then cf_os=linux |
138 |
+ elif test "$tmp1" = Darwin;then |
139 |
+ cf_os=mac |
140 |
+- CFLAGS=`fc_add_string "$CFLAGS" "-I/usr/X11/include"` |
141 |
+- LDFLAGS=`fc_add_string "$LDFLAGS" "-L/usr/X11/lib"` |
142 |
++ CFLAGS=`fc_add_string "$CFLAGS" "-I/opt/X11/include"` |
143 |
++ LDFLAGS=`fc_add_string "$LDFLAGS" "-L/opt/X11/lib"` |
144 |
+ elif test "$tmp1" = FreeBSD;then |
145 |
+ cf_os=freebsd |
146 |
+ cf_make=gmake |
147 |
+@@ -311,7 +312,7 @@ fc_check_lib libjpeg "libjpeg" "" "-ljpeg" "stdio.h jpeglib.h" "libjpeg-dev or l |
148 |
+ fc_check_lib X11 "x11" "" "-lX11" "X11/Xlib.h" "libx11-dev or libX11-devel or libx11" |
149 |
+ fc_check_lib Xext "xext" "" "-lXext" "X11/Xlib.h X11/extensions/XShm.h" "libxext-dev or libXext-devel or libxext" |
150 |
+ fc_check_lib XInput "xi" "" "-lXi" "X11/Xlib.h X11/extensions/XInput2.h" "libxi-dev or libXi-devel or libxi" |
151 |
+-fc_check_lib fontconfig "fontconfig" "-I/usr/include/freetype2 -I/usr/X11/include/freetype2 -I/usr/local/include/freetype2" "-lfontconfig -lfreetype" "fontconfig/fontconfig.h" "libfontconfig1-dev or libfontconfig-devel or fontconfig" |
152 |
++fc_check_lib fontconfig "fontconfig" "-I/usr/include/freetype2 -I/opt/X11/include/freetype2 -I/usr/local/include/freetype2" "-lfontconfig -lfreetype" "fontconfig/fontconfig.h" "libfontconfig1-dev or libfontconfig-devel or fontconfig" |
153 |
+ fc_check_lib freetype2 "freetype2" "" "" "ft2build.h" "libfreetype6-dev or libfreetype6-devel or freetype2" |
154 |
+ |
155 |
+ #------------------ |
156 |
|
157 |
diff --git a/media-gfx/azpainter/files/azpainter-2.1.6-signed_char.patch b/media-gfx/azpainter/files/azpainter-2.1.6-signed_char.patch |
158 |
new file mode 100644 |
159 |
index 0000000..37ce20e |
160 |
--- /dev/null |
161 |
+++ b/media-gfx/azpainter/files/azpainter-2.1.6-signed_char.patch |
162 |
@@ -0,0 +1,156 @@ |
163 |
+From ae5f30e94afff11c2ba2bf87954465b99f015a32 Mon Sep 17 00:00:00 2001 |
164 |
+From: =?UTF-8?q?Charl=C3=A8ne?= <julianaito@××××××.jp> |
165 |
+Date: Fri, 24 Apr 2020 18:32:52 +0200 |
166 |
+Subject: [PATCH] Some architectures like powerpc and arm have unsigned char by |
167 |
+ default, unlike the others, and it causes runtime issues like |
168 |
+ https://github.com/Symbian9/azpainter/issues/6 |
169 |
+ |
170 |
+As such, use signed char when necessary. |
171 |
+--- |
172 |
+ mlib/include/mTextParam.h | 2 +- |
173 |
+ mlib/include/mUtilStr.h | 2 +- |
174 |
+ mlib/src/mStr.c | 3 ++- |
175 |
+ mlib/src/mTextParam.c | 2 +- |
176 |
+ mlib/src/mUtilStr.c | 2 +- |
177 |
+ src/configfile.c | 2 +- |
178 |
+ src/other/FillPolygon.c | 4 ++-- |
179 |
+ src/other/undo_compress.c | 4 ++-- |
180 |
+ src/widget/DockObject.c | 2 +- |
181 |
+ 9 files changed, 12 insertions(+), 11 deletions(-) |
182 |
+ |
183 |
+diff --git a/mlib/include/mTextParam.h b/mlib/include/mTextParam.h |
184 |
+index 7e177d4..449dc94 100755 |
185 |
+--- a/mlib/include/mTextParam.h |
186 |
++++ b/mlib/include/mTextParam.h |
187 |
+@@ -27,7 +27,7 @@ extern "C" { |
188 |
+ typedef struct _mTextParam mTextParam; |
189 |
+ |
190 |
+ void mTextParamFree(mTextParam *p); |
191 |
+-mTextParam *mTextParamCreate(const char *text,char split,char splitparam); |
192 |
++mTextParam *mTextParamCreate(const char *text,char split,signed char splitparam); |
193 |
+ |
194 |
+ mBool mTextParamGetInt(mTextParam *p,const char *key,int *dst); |
195 |
+ mBool mTextParamGetInt_range(mTextParam *p,const char *key,int *dst,int min,int max); |
196 |
+diff --git a/mlib/include/mUtilStr.h b/mlib/include/mUtilStr.h |
197 |
+index aacb043..40bdcdf 100755 |
198 |
+--- a/mlib/include/mUtilStr.h |
199 |
++++ b/mlib/include/mUtilStr.h |
200 |
+@@ -55,7 +55,7 @@ mBool mIsMatchString(const char *text,const char *pattern,mBool bNoCase); |
201 |
+ mBool mIsMatchStringSum(const char *text,const char *pattern,char split,mBool bNoCase); |
202 |
+ int mGetEqStringIndex(const char *text,const char *enumtext,char split,mBool bNoCase); |
203 |
+ |
204 |
+-char *mGetFormatStrParam(const char *text,const char *key,char split,char paramsplit,mBool bNoCase); |
205 |
++char *mGetFormatStrParam(const char *text,const char *key,signed char split,signed char paramsplit,mBool bNoCase); |
206 |
+ |
207 |
+ #ifdef __cplusplus |
208 |
+ } |
209 |
+diff --git a/mlib/src/mStr.c b/mlib/src/mStr.c |
210 |
+index 55f0819..a657a4e 100755 |
211 |
+--- a/mlib/src/mStr.c |
212 |
++++ b/mlib/src/mStr.c |
213 |
+@@ -793,7 +793,8 @@ int mStrSetURIList(mStr *str,const char *uri,mBool localfile) |
214 |
+ |
215 |
+ void mStrSetURLEncode(mStr *str,const char *text) |
216 |
+ { |
217 |
+- char c,flag,m[6]; |
218 |
++ char flag,m[6]; |
219 |
++ signed char c; |
220 |
+ |
221 |
+ mStrEmpty(str); |
222 |
+ |
223 |
+diff --git a/mlib/src/mTextParam.c b/mlib/src/mTextParam.c |
224 |
+index e88f8be..3696ec7 100755 |
225 |
+--- a/mlib/src/mTextParam.c |
226 |
++++ b/mlib/src/mTextParam.c |
227 |
+@@ -185,7 +185,7 @@ void mTextParamFree(mTextParam *p) |
228 |
+ * @param split ';' など、各値を区切る文字 |
229 |
+ * @param splitparam '=' など、キーと値を区切る文字 (-1 で '=') */ |
230 |
+ |
231 |
+-mTextParam *mTextParamCreate(const char *text,char split,char splitparam) |
232 |
++mTextParam *mTextParamCreate(const char *text,char split,signed char splitparam) |
233 |
+ { |
234 |
+ mTextParam *p; |
235 |
+ |
236 |
+diff --git a/mlib/src/mUtilStr.c b/mlib/src/mUtilStr.c |
237 |
+index d82abed..5f0c993 100755 |
238 |
+--- a/mlib/src/mUtilStr.c |
239 |
++++ b/mlib/src/mUtilStr.c |
240 |
+@@ -655,7 +655,7 @@ int mGetEqStringIndex(const char *text,const char *enumtext,char split,mBool bNo |
241 |
+ * @return 確保された文字列。NULL でなし */ |
242 |
+ |
243 |
+ char *mGetFormatStrParam(const char *text,const char *key, |
244 |
+- char split,char paramsplit,mBool bNoCase) |
245 |
++ signed char split,signed char paramsplit,mBool bNoCase) |
246 |
+ { |
247 |
+ const char *pc,*pend,*pkeyend; |
248 |
+ int ret; |
249 |
+diff --git a/src/configfile.c b/src/configfile.c |
250 |
+index a54be5f..ce77aad 100755 |
251 |
+--- a/src/configfile.c |
252 |
++++ b/src/configfile.c |
253 |
+@@ -166,7 +166,7 @@ static void _load_draw_rule_record(mIniRead *ini) |
254 |
+ static void _normalize_panel_layout(ConfigData *cf) |
255 |
+ { |
256 |
+ char *pc; |
257 |
+- char buf[4]; |
258 |
++ signed char buf[4]; |
259 |
+ int i,no,pos; |
260 |
+ |
261 |
+ //----- ペイン |
262 |
+diff --git a/src/other/FillPolygon.c b/src/other/FillPolygon.c |
263 |
+index 7bf91e6..8265a8e 100755 |
264 |
+--- a/src/other/FillPolygon.c |
265 |
++++ b/src/other/FillPolygon.c |
266 |
+@@ -317,7 +317,7 @@ mBool FillPolygon_getIntersection_noAA(FillPolygon *p,int yy) |
267 |
+ { |
268 |
+ int i,x; |
269 |
+ mDoublePoint *ptbuf,*pt1,*pt2; |
270 |
+- char dir; |
271 |
++ signed char dir; |
272 |
+ double y; |
273 |
+ |
274 |
+ //交点クリア |
275 |
+@@ -413,7 +413,7 @@ static mBool _get_intersection_aa(FillPolygon *p,double y) |
276 |
+ { |
277 |
+ mDoublePoint *ptbuf,pt1,pt2,pttmp; |
278 |
+ int i,x; |
279 |
+- char dir; |
280 |
++ signed char dir; |
281 |
+ |
282 |
+ //交点クリア |
283 |
+ |
284 |
+diff --git a/src/other/undo_compress.c b/src/other/undo_compress.c |
285 |
+index 171692c..a86fd61 100755 |
286 |
+--- a/src/other/undo_compress.c |
287 |
++++ b/src/other/undo_compress.c |
288 |
+@@ -91,7 +91,7 @@ void UndoByteDecode(uint8_t *dst,uint8_t *src,int srcsize) |
289 |
+ { |
290 |
+ uint8_t *ps,*psend; |
291 |
+ int len; |
292 |
+- char lenb; |
293 |
++ signed char lenb; |
294 |
+ |
295 |
+ ps = src; |
296 |
+ psend = src + srcsize; |
297 |
+@@ -193,7 +193,7 @@ int UndoWordDecode(uint8_t *dst,uint8_t *src,int srcsize) |
298 |
+ uint8_t *ps,*psend; |
299 |
+ uint16_t *pd,val; |
300 |
+ int len,size; |
301 |
+- char lenb; |
302 |
++ signed char lenb; |
303 |
+ |
304 |
+ pd = (uint16_t *)dst; |
305 |
+ ps = src; |
306 |
+diff --git a/src/widget/DockObject.c b/src/widget/DockObject.c |
307 |
+index 733b158..35aefd2 100755 |
308 |
+--- a/src/widget/DockObject.c |
309 |
++++ b/src/widget/DockObject.c |
310 |
+@@ -313,7 +313,7 @@ void DockObjects_all_windowMode(int type) |
311 |
+ |
312 |
+ void DockObject_normalize_layout_config() |
313 |
+ { |
314 |
+- char buf[DOCKWIDGET_NUM + 2]; |
315 |
++ signed char buf[DOCKWIDGET_NUM + 2]; |
316 |
+ int i,pos,paneno,no; |
317 |
+ char *pc; |
318 |
+ |