summaryrefslogtreecommitdiff
path: root/media-gfx/aewan
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/aewan')
-rw-r--r--media-gfx/aewan/Manifest3
-rw-r--r--media-gfx/aewan/aewan-1.0.01-r2.ebuild33
-rw-r--r--media-gfx/aewan/files/aewan-1.0.01-fix-incompatible-function-pointer-types.patch35
-rw-r--r--media-gfx/aewan/files/aewan-1.0.01-fix-warnings.patch49
4 files changed, 120 insertions, 0 deletions
diff --git a/media-gfx/aewan/Manifest b/media-gfx/aewan/Manifest
index eedc57b28ee5..21e65d9ac3aa 100644
--- a/media-gfx/aewan/Manifest
+++ b/media-gfx/aewan/Manifest
@@ -1,5 +1,8 @@
AUX aewan-1.0.01-debug_aewl-warnings.patch 195 BLAKE2B cc28ceeb081f2feb06082ba7649ad7dd0ef69606ff11f9946f863edf74bc212593e38bdbce84d3aac93ce170bc4729b41cb668148419d7febaef24091d7b5665 SHA512 2693a0a64f458ae93b6edaaa0c930ac8a09e3af8d193e4d84577eb0ef542c01e376ea6972e411f45e1599581d225952db7f02a4ff787018f9df1bab42bf9462e
+AUX aewan-1.0.01-fix-incompatible-function-pointer-types.patch 1236 BLAKE2B 6222b0f56635e538ffb7a08c758951638470250611815d29966fb5301acc3583a227ec7730f307d3581fc8c121c9fcc132c27df59ab13695f297e37996f802d7 SHA512 cda325a81967a376e39163a84b9cbcdbaa05b8e07e9eef31844d487c1fecb5f9298a391ec01a22bd2451ad65bcb1daf568875f4862799f32996ab1a6237913de
+AUX aewan-1.0.01-fix-warnings.patch 1131 BLAKE2B a944dbfe8d1a2115ec51d00fa5570fcc4f7b639b7d22e26c1cfcd383e277b1b347a5c78cec8d26914c42c7df818332c4f32a83b08f59daad6cc59dd2af3f9990 SHA512 49cdc45e6d91f8d03b7039240de7ab908ec170acccb36972a50393c3906827a004e7ab5af60013a2aade7658912eb1661885a848711498deb9b1601016bc1b69
AUX aewan-1.0.01-tinfo.patch 546 BLAKE2B 5b2ff040df207cc9b9810ea0e733d4e4113acba1473a68a4c01eb0dca15fe7125dc8bfafb36af56c20260d41060d4450127df9c27415babe94f1ff3cc29988e0 SHA512 226780e4176490798f82e8f8184c0d8a44df8958c793925bbd7ccc87a4640e8ea1a09f47a7bdb90f7b94ef6abdda55d8ec4ad2623da26c4ac6cab11838e93277
DIST aewan-1.0.01.tar.gz 122880 BLAKE2B 396b7d6111e889ac30140b5bf7097c8d83b05c956a86fdf50651800371356862ab580e7afb1b68cc9f119339b68c786e81666cdd04f8cfc0bf02866dcaef9560 SHA512 8c7e81ed3e2c4d0848e36ed60922c920471c7bc46a7127f529be3f5a9c3c66a6e0dff06bca7b5cb21eb0a93d03ba31fd4ef07fc48e2e39f2224956801fe322f3
EBUILD aewan-1.0.01-r1.ebuild 552 BLAKE2B ad7724ea5054f9fb2f3dfb403917dcf44fe95d2dcd61829a515cbdfa2db3b6a05bab2e3741897b9900d1bbe7724334e756285a3db4fa7f47515436e6b7aef562 SHA512 3861273877fa8a859559b0d94eaa45e4cfefff1fd4848ad46aac8c49af2102e6658283a2044a7722cf03b7e5751291b0cbf157acafb2a854d2e9a3150be55d7f
+EBUILD aewan-1.0.01-r2.ebuild 662 BLAKE2B f43eb3103fcf5e6939d8e18a0362dab007e2ac915c8857c03a5aba01449b1f455d700846bcf44530b9100a7a58ee28d579d6f17ac0a3d67366f3a7c422f561e9 SHA512 3841cfdccde23451aabc0be24e79d8e392b9b9ffd7f02944e2352e6aba5d4795923decc908ac03788da8264cf60181e987972ed6b0a6b87b40c712d6c8798199
MISC metadata.xml 472 BLAKE2B 84df69cd7f2a501828a66fa5a66e8626ba1b6f7d3262b53fbda4ab8e392ec108aa3a7170f630571b28acbf3a6089c5f7e733923f13a1493340b81a2adac7ea59 SHA512 1ca859452592ed3f5d936ea418a99668eb7bdc84a8eeeebd4c644197368ecb36e0e9aa4fe0e2dbfa0c705b721213531bd89deb00e6a28b16b6e64f1f5be3c714
diff --git a/media-gfx/aewan/aewan-1.0.01-r2.ebuild b/media-gfx/aewan/aewan-1.0.01-r2.ebuild
new file mode 100644
index 000000000000..27b18f02d410
--- /dev/null
+++ b/media-gfx/aewan/aewan-1.0.01-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="A curses-based ascii-art editor"
+HOMEPAGE="http://aewan.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DOCS=( CHANGELOG README TODO )
+
+DEPEND="sys-libs/zlib
+ >=sys-libs/ncurses-5.0:0="
+
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-debug_aewl-warnings.patch"
+ "${FILESDIR}/${P}-tinfo.patch"
+ "${FILESDIR}/${P}-fix-incompatible-function-pointer-types.patch"
+ "${FILESDIR}/${P}-fix-warnings.patch"
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
diff --git a/media-gfx/aewan/files/aewan-1.0.01-fix-incompatible-function-pointer-types.patch b/media-gfx/aewan/files/aewan-1.0.01-fix-incompatible-function-pointer-types.patch
new file mode 100644
index 000000000000..f26a29998ca0
--- /dev/null
+++ b/media-gfx/aewan/files/aewan-1.0.01-fix-incompatible-function-pointer-types.patch
@@ -0,0 +1,35 @@
+Subject: [PATCH] Fix incompatible function pointer types
+
+Clang 16 (and likely GCC 14) will enforce strict C99 semantics
+ and break old K&R C declarations and require correct C89
+ function prototypes.
+
+Bug: https://bugs.gentoo.org/880809
+Clang: https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213/9
+
+Patch has been sent to upstream here: https://sourceforge.net/p/aewan/bugs/14/
+
+Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
+--- a/aeff.c
++++ b/aeff.c
+@@ -88,7 +88,7 @@ static bool read_parse_data_line(gzFile f, char **label, char **type,
+ autod_begin;
+ autod_register(line, free);
+
+- autod_assign( line, freadline_ex(f, gzgetc) );
++ autod_assign( line, freadline_ex(f, (void*)gzgetc) );
+
+ /* look for ':' field separators and note their locations */
+ field_start[0] = line;
+@@ -192,7 +192,7 @@ static bool aeff_read_mark(AeFile *f, const char *mark_name, char pref) {
+ autod_begin;
+ autod_register(line, free);
+
+- autod_assign(line, freadline_ex(f->f, gzgetc));
++ autod_assign(line, freadline_ex(f->f, (void*)gzgetc));
+
+ /* if EOF was reached before anything could be read, something is wrong */
+ if (!line) {
+--
+2.39.1
+
diff --git a/media-gfx/aewan/files/aewan-1.0.01-fix-warnings.patch b/media-gfx/aewan/files/aewan-1.0.01-fix-warnings.patch
new file mode 100644
index 000000000000..a797ae30aad3
--- /dev/null
+++ b/media-gfx/aewan/files/aewan-1.0.01-fix-warnings.patch
@@ -0,0 +1,49 @@
+Subject: [PATCH] fix warnings
+
+Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
+
+--- a/bores/kurses.c
++++ b/bores/kurses.c
+@@ -139,15 +139,11 @@ void kurses_color_at(int attr) {
+ }
+
+ int kurses_width() {
+- int maxy, maxx;
+- getmaxyx(stdscr, maxy, maxx);
+- return maxx;
++ return getmaxx(stdscr);
+ }
+
+ int kurses_height() {
+- int maxy, maxx;
+- getmaxyx(stdscr, maxy, maxx);
+- return maxy;
++ return getmaxy(stdscr);
+ }
+
+ int kurses_pos_valid(int x, int y) {
+--- a/vlayer.c
++++ b/vlayer.c
+@@ -9,7 +9,7 @@ static void _get_cell_LYR(Cell *r_cell, int x, int y, void *ud) {
+
+ /* callback that returns a cell from a document composite */
+ static void _get_cell_COMPOSITE(Cell *r_cell, int x, int y, void *ud) {
+- Document *doc = (Document*) doc;
++ Document *doc = (Document*) NULL;
+ *r_cell = document_calc_effective_cell(doc, x, y);
+ }
+
+--
+2.39.1
+
+--- a/helpdlg.h
++++ b/helpdlg.h
+@@ -33,7 +33,7 @@ programa, armazenada no arquivo COPYING).
+
+
+ #ifndef _btco_aewan_helpdlg_h
+-#define _btco_aewan_helprdlg_h
++#define _btco_aewan_helpdlg_h
+
+ /* invokes the "help" dialog */
+ void show_help_dlg(void);