From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/galaxis/files/, games-puzzle/galaxis/
Date: Mon, 9 Oct 2023 20:39:58 +0000 (UTC) [thread overview]
Message-ID: <1696883877.8d0922f67eb64603d744c26f994027b4662325b4.chewi@gentoo> (raw)
commit: 8d0922f67eb64603d744c26f994027b4662325b4
Author: Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Tue Oct 3 18:49:38 2023 +0000
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Oct 9 20:37:57 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d0922f6
games-puzzle/galaxis: Fix call to undeclared library function bzero
Closes: https://bugs.gentoo.org/895986
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33170
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
.../files/galaxis-1.10-clang16-build-fix.patch | 11 ++++++
games-puzzle/galaxis/galaxis-1.10-r1.ebuild | 39 ++++++++++++++++++++++
2 files changed, 50 insertions(+)
diff --git a/games-puzzle/galaxis/files/galaxis-1.10-clang16-build-fix.patch b/games-puzzle/galaxis/files/galaxis-1.10-clang16-build-fix.patch
new file mode 100644
index 000000000000..43d2862cd640
--- /dev/null
+++ b/games-puzzle/galaxis/files/galaxis-1.10-clang16-build-fix.patch
@@ -0,0 +1,11 @@
+Bug: https://bugs.gentoo.org/895986
+--- a/galaxis.c
++++ b/galaxis.c
+@@ -6,6 +6,7 @@
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+ #define _POSIX_SOURCE
++#define _GNU_SOURCE
+
+ #include <stdio.h>
+ #include <termios.h>
diff --git a/games-puzzle/galaxis/galaxis-1.10-r1.ebuild b/games-puzzle/galaxis/galaxis-1.10-r1.ebuild
new file mode 100644
index 000000000000..13029dc32afd
--- /dev/null
+++ b/games-puzzle/galaxis/galaxis-1.10-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop flag-o-matic toolchain-funcs
+
+DESCRIPTION="Curses-based clone of the nifty little Macintosh freeware game Galaxis"
+HOMEPAGE="http://www.catb.org/~esr/galaxis/"
+SRC_URI="http://www.catb.org/~esr/galaxis/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+
+DEPEND="sys-libs/ncurses:="
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-c2x.patch
+ "${FILESDIR}"/${P}-clang16-build-fix.patch
+)
+
+src_compile() {
+ append-cppflags $($(tc-getPKG_CONFIG) --cflags ncurses || die) -DNDEBUG
+ append-libs $($(tc-getPKG_CONFIG) --libs ncurses || die)
+
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" TERMLIB="${LIBS}"
+}
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.6
+ einstalldocs
+
+ doicon ${PN}.png
+ domenu ${PN}.desktop
+}
next reply other threads:[~2023-10-09 20:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-09 20:39 James Le Cuirot [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-10-15 20:07 [gentoo-commits] repo/gentoo:master commit in: games-puzzle/galaxis/files/, games-puzzle/galaxis/ Ionen Wolkens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1696883877.8d0922f67eb64603d744c26f994027b4662325b4.chewi@gentoo \
--to=chewi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox