mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
media-gfx/azpainter: Bump to 2.1.6
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST azpainter-2.1.5.tar.xz 825892 BLAKE2B c6430393bb7dc3fd4b38357f696ec1da567b2b5763ed5e51526fa7948bf8c7a25b8200771607ecd86ed927d3692c5b4a72c471d8e354a7da48aa952b934ea852 SHA512 9797a22d512a26cdf2d441f91c5b77e9a8221433d33359782486f2254fffdaa30daae04da77e899b4068e5988aa67dfda3b7bb915d41a807e3069f84c8d15a3a
|
||||
DIST azpainter-2.1.6.tar.xz 747464 BLAKE2B a3d242cb3fa881c761711595686362924e55125f7b33def30949c321b6a23ccb2bed1b4d3df0b7e73ebd4a5f6a75e7c4b99c4116d5e6af62518d03fc92e6de81 SHA512 94ebe3ad8df7148d73a6f73fe383df2d8b9203aa67ef77ebcc68c8fa937ba134315ca757693c5ad33bdf79afd90915779a3086d24f5a81ab767eced50d4d97d9
|
||||
|
||||
34
media-gfx/azpainter/azpainter-2.1.6.ebuild
Normal file
34
media-gfx/azpainter/azpainter-2.1.6.ebuild
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 2018-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Full color painting software for Linux for illustration drawing"
|
||||
HOMEPAGE="http://azsky2.html.xdomain.jp/linux/azpainter.html https://github.com/Symbian9/azpainter"
|
||||
SRC_URI="https://github.com/Symbian9/azpainter/releases/download/v${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
x11-libs/libX11:=
|
||||
x11-libs/libXext:=
|
||||
x11-libs/libXi:=
|
||||
media-libs/freetype:=
|
||||
media-libs/fontconfig:=
|
||||
sys-libs/zlib:=
|
||||
media-libs/libpng:=
|
||||
media-libs/libjpeg-turbo:=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-fix_configure.patch"
|
||||
"${FILESDIR}/${P}-signed_char.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
sh ./configure --prefix=/usr CFLAGS="${CFLAGS:-02}" LDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
From 185bf21dd0040a11cbffddb6e4bcf7af46a5bef7 Mon Sep 17 00:00:00 2001
|
||||
From: app4soft <appsoft@ua.fm>
|
||||
Date: Sun, 26 Apr 2020 06:54:09 +0300
|
||||
Subject: [PATCH] Update configure
|
||||
|
||||
---
|
||||
README | 2 +-
|
||||
README_ja | 2 +-
|
||||
configure | 11 ++++++-----
|
||||
3 files changed, 8 insertions(+), 7 deletions(-)
|
||||
mode change 100755 => 100644 configure
|
||||
|
||||
diff --git a/README b/README
|
||||
index ba5f2c8..610e423 100644
|
||||
--- a/README
|
||||
+++ b/README
|
||||
@@ -90,7 +90,7 @@ $ gmake
|
||||
|
||||
## MacOS
|
||||
|
||||
-$ ./configure --prefix=/usr/X11
|
||||
+$ ./configure --prefix=/opt/X11
|
||||
$ make
|
||||
$ sudo make install
|
||||
|
||||
diff --git a/README_ja b/README_ja
|
||||
index db190f2..997a499 100644
|
||||
--- a/README_ja
|
||||
+++ b/README_ja
|
||||
@@ -102,7 +102,7 @@ $ gmake
|
||||
|
||||
## MacOS
|
||||
|
||||
-$ ./configure --prefix=/usr/X11
|
||||
+$ ./configure --prefix=/opt/X11
|
||||
$ make
|
||||
$ sudo make install
|
||||
|
||||
diff --git a/configure b/configure
|
||||
old mode 100755
|
||||
new mode 100644
|
||||
index cb9a9f6..e98b20f
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -9,7 +9,7 @@ cat <<_ZYXW_
|
||||
|
||||
Options:
|
||||
--help display this help
|
||||
- --debug create debug exe (CFLAGS += -g)
|
||||
+ --debug create debug exe (CFLAGS = -g)
|
||||
--arch=[ARCH] CFLAGS += "-march=ARCH"
|
||||
|
||||
--prefix=[PREFIX] install dir
|
||||
@@ -202,7 +202,8 @@ for opt;do
|
||||
--no-check-lib)
|
||||
cf_check_lib=no ;;
|
||||
*=*)
|
||||
- eval "$opt" ;;
|
||||
+ tmp2=`expr "X$opt" : 'X\([^=]*\)=.*'`
|
||||
+ eval $tmp2=\'$tmp1\' ;;
|
||||
*)
|
||||
echo "unknown option: $opt"
|
||||
exit 1 ;;
|
||||
@@ -226,8 +227,8 @@ tmp1=`uname`
|
||||
if test "$tmp1" = Linux;then cf_os=linux
|
||||
elif test "$tmp1" = Darwin;then
|
||||
cf_os=mac
|
||||
- CFLAGS=`fc_add_string "$CFLAGS" "-I/usr/X11/include"`
|
||||
- LDFLAGS=`fc_add_string "$LDFLAGS" "-L/usr/X11/lib"`
|
||||
+ CFLAGS=`fc_add_string "$CFLAGS" "-I/opt/X11/include"`
|
||||
+ LDFLAGS=`fc_add_string "$LDFLAGS" "-L/opt/X11/lib"`
|
||||
elif test "$tmp1" = FreeBSD;then
|
||||
cf_os=freebsd
|
||||
cf_make=gmake
|
||||
@@ -311,7 +312,7 @@ fc_check_lib libjpeg "libjpeg" "" "-ljpeg" "stdio.h jpeglib.h" "libjpeg-dev or l
|
||||
fc_check_lib X11 "x11" "" "-lX11" "X11/Xlib.h" "libx11-dev or libX11-devel or libx11"
|
||||
fc_check_lib Xext "xext" "" "-lXext" "X11/Xlib.h X11/extensions/XShm.h" "libxext-dev or libXext-devel or libxext"
|
||||
fc_check_lib XInput "xi" "" "-lXi" "X11/Xlib.h X11/extensions/XInput2.h" "libxi-dev or libXi-devel or libxi"
|
||||
-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"
|
||||
+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"
|
||||
fc_check_lib freetype2 "freetype2" "" "" "ft2build.h" "libfreetype6-dev or libfreetype6-devel or freetype2"
|
||||
|
||||
#------------------
|
||||
156
media-gfx/azpainter/files/azpainter-2.1.6-signed_char.patch
Normal file
156
media-gfx/azpainter/files/azpainter-2.1.6-signed_char.patch
Normal file
@@ -0,0 +1,156 @@
|
||||
From ae5f30e94afff11c2ba2bf87954465b99f015a32 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Charl=C3=A8ne?= <julianaito@posteo.jp>
|
||||
Date: Fri, 24 Apr 2020 18:32:52 +0200
|
||||
Subject: [PATCH] Some architectures like powerpc and arm have unsigned char by
|
||||
default, unlike the others, and it causes runtime issues like
|
||||
https://github.com/Symbian9/azpainter/issues/6
|
||||
|
||||
As such, use signed char when necessary.
|
||||
---
|
||||
mlib/include/mTextParam.h | 2 +-
|
||||
mlib/include/mUtilStr.h | 2 +-
|
||||
mlib/src/mStr.c | 3 ++-
|
||||
mlib/src/mTextParam.c | 2 +-
|
||||
mlib/src/mUtilStr.c | 2 +-
|
||||
src/configfile.c | 2 +-
|
||||
src/other/FillPolygon.c | 4 ++--
|
||||
src/other/undo_compress.c | 4 ++--
|
||||
src/widget/DockObject.c | 2 +-
|
||||
9 files changed, 12 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/mlib/include/mTextParam.h b/mlib/include/mTextParam.h
|
||||
index 7e177d4..449dc94 100755
|
||||
--- a/mlib/include/mTextParam.h
|
||||
+++ b/mlib/include/mTextParam.h
|
||||
@@ -27,7 +27,7 @@ extern "C" {
|
||||
typedef struct _mTextParam mTextParam;
|
||||
|
||||
void mTextParamFree(mTextParam *p);
|
||||
-mTextParam *mTextParamCreate(const char *text,char split,char splitparam);
|
||||
+mTextParam *mTextParamCreate(const char *text,char split,signed char splitparam);
|
||||
|
||||
mBool mTextParamGetInt(mTextParam *p,const char *key,int *dst);
|
||||
mBool mTextParamGetInt_range(mTextParam *p,const char *key,int *dst,int min,int max);
|
||||
diff --git a/mlib/include/mUtilStr.h b/mlib/include/mUtilStr.h
|
||||
index aacb043..40bdcdf 100755
|
||||
--- a/mlib/include/mUtilStr.h
|
||||
+++ b/mlib/include/mUtilStr.h
|
||||
@@ -55,7 +55,7 @@ mBool mIsMatchString(const char *text,const char *pattern,mBool bNoCase);
|
||||
mBool mIsMatchStringSum(const char *text,const char *pattern,char split,mBool bNoCase);
|
||||
int mGetEqStringIndex(const char *text,const char *enumtext,char split,mBool bNoCase);
|
||||
|
||||
-char *mGetFormatStrParam(const char *text,const char *key,char split,char paramsplit,mBool bNoCase);
|
||||
+char *mGetFormatStrParam(const char *text,const char *key,signed char split,signed char paramsplit,mBool bNoCase);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
diff --git a/mlib/src/mStr.c b/mlib/src/mStr.c
|
||||
index 55f0819..a657a4e 100755
|
||||
--- a/mlib/src/mStr.c
|
||||
+++ b/mlib/src/mStr.c
|
||||
@@ -793,7 +793,8 @@ int mStrSetURIList(mStr *str,const char *uri,mBool localfile)
|
||||
|
||||
void mStrSetURLEncode(mStr *str,const char *text)
|
||||
{
|
||||
- char c,flag,m[6];
|
||||
+ char flag,m[6];
|
||||
+ signed char c;
|
||||
|
||||
mStrEmpty(str);
|
||||
|
||||
diff --git a/mlib/src/mTextParam.c b/mlib/src/mTextParam.c
|
||||
index e88f8be..3696ec7 100755
|
||||
--- a/mlib/src/mTextParam.c
|
||||
+++ b/mlib/src/mTextParam.c
|
||||
@@ -185,7 +185,7 @@ void mTextParamFree(mTextParam *p)
|
||||
* @param split ';' など、各値を区切る文字
|
||||
* @param splitparam '=' など、キーと値を区切る文字 (-1 で '=') */
|
||||
|
||||
-mTextParam *mTextParamCreate(const char *text,char split,char splitparam)
|
||||
+mTextParam *mTextParamCreate(const char *text,char split,signed char splitparam)
|
||||
{
|
||||
mTextParam *p;
|
||||
|
||||
diff --git a/mlib/src/mUtilStr.c b/mlib/src/mUtilStr.c
|
||||
index d82abed..5f0c993 100755
|
||||
--- a/mlib/src/mUtilStr.c
|
||||
+++ b/mlib/src/mUtilStr.c
|
||||
@@ -655,7 +655,7 @@ int mGetEqStringIndex(const char *text,const char *enumtext,char split,mBool bNo
|
||||
* @return 確保された文字列。NULL でなし */
|
||||
|
||||
char *mGetFormatStrParam(const char *text,const char *key,
|
||||
- char split,char paramsplit,mBool bNoCase)
|
||||
+ signed char split,signed char paramsplit,mBool bNoCase)
|
||||
{
|
||||
const char *pc,*pend,*pkeyend;
|
||||
int ret;
|
||||
diff --git a/src/configfile.c b/src/configfile.c
|
||||
index a54be5f..ce77aad 100755
|
||||
--- a/src/configfile.c
|
||||
+++ b/src/configfile.c
|
||||
@@ -166,7 +166,7 @@ static void _load_draw_rule_record(mIniRead *ini)
|
||||
static void _normalize_panel_layout(ConfigData *cf)
|
||||
{
|
||||
char *pc;
|
||||
- char buf[4];
|
||||
+ signed char buf[4];
|
||||
int i,no,pos;
|
||||
|
||||
//----- ペイン
|
||||
diff --git a/src/other/FillPolygon.c b/src/other/FillPolygon.c
|
||||
index 7bf91e6..8265a8e 100755
|
||||
--- a/src/other/FillPolygon.c
|
||||
+++ b/src/other/FillPolygon.c
|
||||
@@ -317,7 +317,7 @@ mBool FillPolygon_getIntersection_noAA(FillPolygon *p,int yy)
|
||||
{
|
||||
int i,x;
|
||||
mDoublePoint *ptbuf,*pt1,*pt2;
|
||||
- char dir;
|
||||
+ signed char dir;
|
||||
double y;
|
||||
|
||||
//交点クリア
|
||||
@@ -413,7 +413,7 @@ static mBool _get_intersection_aa(FillPolygon *p,double y)
|
||||
{
|
||||
mDoublePoint *ptbuf,pt1,pt2,pttmp;
|
||||
int i,x;
|
||||
- char dir;
|
||||
+ signed char dir;
|
||||
|
||||
//交点クリア
|
||||
|
||||
diff --git a/src/other/undo_compress.c b/src/other/undo_compress.c
|
||||
index 171692c..a86fd61 100755
|
||||
--- a/src/other/undo_compress.c
|
||||
+++ b/src/other/undo_compress.c
|
||||
@@ -91,7 +91,7 @@ void UndoByteDecode(uint8_t *dst,uint8_t *src,int srcsize)
|
||||
{
|
||||
uint8_t *ps,*psend;
|
||||
int len;
|
||||
- char lenb;
|
||||
+ signed char lenb;
|
||||
|
||||
ps = src;
|
||||
psend = src + srcsize;
|
||||
@@ -193,7 +193,7 @@ int UndoWordDecode(uint8_t *dst,uint8_t *src,int srcsize)
|
||||
uint8_t *ps,*psend;
|
||||
uint16_t *pd,val;
|
||||
int len,size;
|
||||
- char lenb;
|
||||
+ signed char lenb;
|
||||
|
||||
pd = (uint16_t *)dst;
|
||||
ps = src;
|
||||
diff --git a/src/widget/DockObject.c b/src/widget/DockObject.c
|
||||
index 733b158..35aefd2 100755
|
||||
--- a/src/widget/DockObject.c
|
||||
+++ b/src/widget/DockObject.c
|
||||
@@ -313,7 +313,7 @@ void DockObjects_all_windowMode(int type)
|
||||
|
||||
void DockObject_normalize_layout_config()
|
||||
{
|
||||
- char buf[DOCKWIDGET_NUM + 2];
|
||||
+ signed char buf[DOCKWIDGET_NUM + 2];
|
||||
int i,pos,paneno,no;
|
||||
char *pc;
|
||||
|
||||
Reference in New Issue
Block a user