diff --git a/.github/autobump.txt b/.github/autobump.txt index 7cf035074fa40..032e396c8e1f4 100644 --- a/.github/autobump.txt +++ b/.github/autobump.txt @@ -1148,6 +1148,7 @@ gnmic gnome-autoar gnu-apl gnu-getopt +gnu-typist gnu-units gnumeric gnunet diff --git a/Formula/g/gnu-typist.rb b/Formula/g/gnu-typist.rb index 1362eec708bd9..b986a5919de2b 100644 --- a/Formula/g/gnu-typist.rb +++ b/Formula/g/gnu-typist.rb @@ -1,11 +1,10 @@ class GnuTypist < Formula desc "GNU typing tutor" homepage "https://www.gnu.org/software/gtypist/" - url "https://ftp.gnu.org/gnu/gtypist/gtypist-2.9.5.tar.xz" - mirror "https://ftpmirror.gnu.org/gtypist/gtypist-2.9.5.tar.xz" - sha256 "c13af40b12479f8219ffa6c66020618c0ce305ad305590fde02d2c20eb9cf977" + url "https://ftp.gnu.org/gnu/gtypist/gtypist-2.10.tar.xz" + mirror "https://ftpmirror.gnu.org/gtypist/gtypist-2.10.tar.xz" + sha256 "01cca6251f1bcd772adccd2893fe1ebafe95cd3031f02751586f315104dd1b6b" license "GPL-3.0-or-later" - revision 2 bottle do rebuild 1 @@ -23,11 +22,6 @@ class GnuTypist < Formula uses_from_macos "ncurses" - # patch based on upstream master to fix implicit declaration errors - # we cannot use the commit directly since it doesn't apply cleanly on 2.9.5 - # https://git.savannah.gnu.org/cgit/gtypist.git/patch/?id=05639625b68131e648dfe2aec4dcc82ea6b95c6e - patch :DATA - # Use Apple's ncurses instead of ncursesw. # TODO: use an IFDEF for apple and submit upstream patch do @@ -54,111 +48,3 @@ def install Process.kill("TERM", session) end end - -__END__ -diff --git a/src/cursmenu.c b/src/cursmenu.c -index b52128b..f259f58 100644 ---- a/src/cursmenu.c -+++ b/src/cursmenu.c -@@ -20,6 +20,7 @@ - #include "config.h" - #include "cursmenu.h" - #include "script.h" -+#include "utf8.h" - - #if defined(HAVE_PDCURSES) || defined(OS_BSD) - #include -diff --git a/src/script.c b/src/script.c -index b2c29e5..540223b 100644 ---- a/src/script.c -+++ b/src/script.c -@@ -18,6 +18,7 @@ - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -+ - #include "config.h" - #include "script.h" - -@@ -227,15 +228,15 @@ void get_script_line( FILE *script, char *line ) - if (numChars == -1) - fatal_error( _("Invalid multibyte sequence (wrong encoding?)"), line); - if ( numChars < MIN_SCR_LINE ) -- fatal_error( _("data shortage"), line ); -+ fatal_error( _("data shortage"), line ); - if ( SCR_SEP( line ) != C_SEP ) -- fatal_error( _("missing ':'"), line ); -+ fatal_error( _("missing ':'"), line ); - if ( SCR_COMMAND( line ) != C_LABEL -- && SCR_COMMAND( line ) != C_GOTO -- && SCR_COMMAND( line ) != C_YGOTO -- && SCR_COMMAND( line ) != C_NGOTO -+ && SCR_COMMAND( line ) != C_GOTO -+ && SCR_COMMAND( line ) != C_YGOTO -+ && SCR_COMMAND( line ) != C_NGOTO - && utf8len(SCR_DATA( line )) > COLS ) -- fatal_error( _("line too long for screen"), line ); -+ fatal_error( _("line too long for screen"), line ); - } - } - -diff --git a/src/script.h b/src/script.h -index 7db0eda..580b7ff 100644 ---- a/src/script.h -+++ b/src/script.h -@@ -19,22 +19,23 @@ - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -+ - #ifndef SCRIPT_H - #define SCRIPT_H - - #include - - /* things to help parse the input file */ --#define SCR_COMMAND(X) (X[0]) -+#define SCR_COMMAND(X) (X[0]) - #define SCR_SEP(X) (X[1]) - #define SCR_DATA(X) (&X[2]) - #define C_COMMENT '#' --#define C_ALT_COMMENT '!' -+#define C_ALT_COMMENT '!' - #define C_SEP ':' - #define C_CONT ' ' - #define C_LABEL '*' - #define C_TUTORIAL 'T' --#define C_INSTRUCTION 'I' -+#define C_INSTRUCTION 'I' - #define C_CLEAR 'B' - #define C_GOTO 'G' - #define C_EXIT 'X' -@@ -73,7 +74,7 @@ extern char *__last_label; - void __update_last_label (const char *); - - /* a global area for label indexing - singly linked lists, hashed */ --#define NLHASH 32 /* num hash lists */ -+#define NLHASH 32 /* num hash lists */ - struct label_entry { - char *label; /* label string */ - long offset; /* offset into file */ -@@ -89,6 +90,7 @@ extern char *buffer_command( FILE *script, char *line ); - 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 -diff --git a/src/utf8.c b/src/utf8.c -index e7c14c8..a9f355b 100644 ---- a/src/utf8.c -+++ b/src/utf8.c -@@ -19,6 +19,7 @@ - - #include "config.h" - #include "utf8.h" -+#include "error.h" - - #if defined(HAVE_PDCURSES) || defined(OS_BSD) - #include