<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d7c993172cfb33e0d4759492ae2f3e58e573fc9d">https://github.com/macports/macports-ports/commit/d7c993172cfb33e0d4759492ae2f3e58e573fc9d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit d7c993172cfb33e0d4759492ae2f3e58e573fc9d
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Wed Mar 30 21:12:02 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> gti: Update to 1.7.0
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/62436
</span>---
games/gti/Portfile | 27 ++++++++++++---------------
games/gti/files/Makefile.diff | 18 +++++++++++++-----
games/gti/files/implicit.patch | 14 ++++++++++++++
3 files changed, 39 insertions(+), 20 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/gti/Portfile b/games/gti/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8346b874759..d745c61a1ca 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/games/gti/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/gti/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,29 +2,26 @@
</span>
PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup makefile 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup rwos gti 1.7.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 0521d929e6008773a021caee534f72d809efe882 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 cea8baf25ac5e6272f9031bd5e36a17a4b55038830b108f4f24e7f55690198f7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 4897
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup rwos gti 1.6.1 v
</span> categories games
maintainers nomaintainer
license MIT
description Just a silly git launcher, basically. Inspired by sl.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description ${description}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 6fa2add9cbfbe09232d497445d85a0e923085cc0 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 7a91001a5bc6ea7b30786007da2bacb6478fa20b6f6146431bbfb3f76f573b43
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span>
build.target
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles Makefile.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant universal {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# Ensure we are UsingTheRightCompiler
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build.args-append CC="${configure.cc} [get_canonical_archflags cc]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles implicit.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Makefile.diff
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.args-append PREFIX=${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+makefile.override-append ${makefile.prefix_name}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/gti/files/Makefile.diff b/games/gti/files/Makefile.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 2d09a3c5be7..4a6d3a7e280 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/games/gti/files/Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/gti/files/Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,6 +1,14 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- Makefile.old 2012-08-19 08:26:25.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ Makefile 2012-08-19 08:26:44.000000000 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -7,9 +7,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+1. Don't use -D flag to install which is a GNU extension not available
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ with BSD install. https://github.com/rwos/gti/pull/58
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2. Allow prefix to be set via variable. Upstream has taken a different
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ approach after 1.7.0 which is wrong and will need to be corrected /
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reverted.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile.orig 2020-02-09 07:59:44.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile 2022-03-30 20:49:47.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -3,11 +3,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CC=cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CFLAGS+=-O2 -std=c89 -Wpedantic -Wall -Wextra -Wunused -Wshadow -Wdouble-promotion -Wstrict-overflow=5
</span>
-INSTALL=install -D
+INSTALL=install
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,5 +20,5 @@
</span> +BINDIR=$(DESTDIR)$(PREFIX)/bin
+MANDIR=$(DESTDIR)$(PREFIX)/share/man/man6
<span style='display:block; white-space:pre;background:#ffe0e0;'>- PROG=gti
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- MANPAGE=gti.6.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ STRIP=strip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ifeq ($(OS),Windows_NT)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/games/gti/files/implicit.patch b/games/gti/files/implicit.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e41674c3a68
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/games/gti/files/implicit.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+error: implicit declaration of function 'usleep' [-Werror,-Wimplicit-function-declaration]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/rwos/gti/pull/59
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- gti.c.orig 2020-02-09 07:59:44.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ gti.c 2022-03-30 21:03:57.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -16,7 +16,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define WIN32
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* fileno() */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# define _POSIX_C_SOURCE 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define _POSIX_C_SOURCE 199506L
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* usleep() */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # define _DEFAULT_SOURCE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span></pre><pre style='margin:0'>
</pre>