You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
gtypist: update to 2.10.1
This commit is contained in:
+4
-16
@@ -3,11 +3,11 @@
|
||||
PortSystem 1.0
|
||||
|
||||
name gtypist
|
||||
version 2.9.5
|
||||
version 2.10.1
|
||||
revision 0
|
||||
checksums rmd160 d57eb0f20549ef0b75057068196f172b3ebce2e2 \
|
||||
sha256 c13af40b12479f8219ffa6c66020618c0ce305ad305590fde02d2c20eb9cf977 \
|
||||
size 929356
|
||||
checksums rmd160 71bb874c2fe617dde6b94de610b4f9f8cda3ca94 \
|
||||
sha256 ca618054e91f1ed5ef043fcc43500bbad701c959c31844d4688ff22849ac252d \
|
||||
size 820488
|
||||
|
||||
categories games
|
||||
maintainers nomaintainer
|
||||
@@ -24,18 +24,6 @@ use_xz yes
|
||||
|
||||
depends_lib port:ncurses port:gettext port:libiconv
|
||||
|
||||
patchfiles-append \
|
||||
implicit.patch
|
||||
|
||||
post-patch {
|
||||
#Fix ncursesw dependency, wide char support is included in ncurses now.
|
||||
foreach f {cursmenu.c error.c gtypist.c script.c utf8.c} {
|
||||
reinplace "s|ncursesw/ncurses.h|ncurses.h|" ${worksrcpath}/src/$f
|
||||
}
|
||||
reinplace "s|ncursesw/ncurses.h|ncurses.h|" ${worksrcpath}/configure
|
||||
reinplace "s|-lncursesw|-lncurses|" ${worksrcpath}/configure
|
||||
}
|
||||
|
||||
livecheck.type regex
|
||||
livecheck.url https://ftp.gnu.org/gnu/gtypist/?C=M&O=D
|
||||
livecheck.regex ${name}-(\\d+(?:\\.\\d+)+)\\.tar
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
Fix:
|
||||
error: implicit declaration of function 'utf8len' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
|
||||
error: implicit declaration of function 'mvwideaddstr' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
|
||||
error: implicit declaration of function 'get_widech' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
|
||||
error: implicit declaration of function 'check_script_file_with_current_encoding' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
|
||||
error: implicit declaration of function 'fatal_error' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
|
||||
https://git.savannah.gnu.org/cgit/gtypist.git/patch/?id=05639625b68131e648dfe2aec4dcc82ea6b95c6e
|
||||
--- src/cursmenu.c.orig 2013-08-18 09:36:14.000000000 -0500
|
||||
+++ src/cursmenu.c 2022-04-18 11:17:30.000000000 -0500
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "config.h"
|
||||
#include "cursmenu.h"
|
||||
#include "script.h"
|
||||
+#include "utf8.h"
|
||||
|
||||
#ifdef HAVE_PDCURSES
|
||||
#include <curses.h>
|
||||
--- src/gtypist.c.orig 2014-08-12 01:29:13.000000000 -0500
|
||||
+++ src/gtypist.c 2022-04-18 11:17:30.000000000 -0500
|
||||
@@ -51,6 +51,7 @@
|
||||
#include "error.h"
|
||||
#include "gtypist.h"
|
||||
#include "utf8.h"
|
||||
+#include "script.h"
|
||||
|
||||
#include "gettext.h"
|
||||
#define _(String) gettext (String)
|
||||
--- src/script.h.orig 2013-08-18 09:36:14.000000000 -0500
|
||||
+++ src/script.h 2022-04-18 11:17:30.000000000 -0500
|
||||
@@ -89,6 +89,7 @@
|
||||
extern void seek_label( FILE *script, char *label, char *ref_line );
|
||||
extern int hash_label( char *label );
|
||||
extern void do_exit( FILE *script );
|
||||
+void check_script_file_with_current_encoding( FILE *script );
|
||||
|
||||
|
||||
extern void bind_F12 (const char *); // Defined in gtypist.c
|
||||
--- src/utf8.c.orig 2013-08-18 09:36:14.000000000 -0500
|
||||
+++ src/utf8.c 2022-04-18 11:17:30.000000000 -0500
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "utf8.h"
|
||||
+#include "error.h"
|
||||
|
||||
#ifdef HAVE_PDCURSES
|
||||
#include <curses.h>
|
||||
Reference in New Issue
Block a user