From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C86D1158089 for ; Mon, 9 Oct 2023 20:40:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 148072BC01E; Mon, 9 Oct 2023 20:40:01 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D590E2BC01E for ; Mon, 9 Oct 2023 20:40:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C0149335C52 for ; Mon, 9 Oct 2023 20:39:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6069E992 for ; Mon, 9 Oct 2023 20:39:58 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1696883877.8d0922f67eb64603d744c26f994027b4662325b4.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-puzzle/galaxis/files/, games-puzzle/galaxis/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-puzzle/galaxis/files/galaxis-1.10-clang16-build-fix.patch games-puzzle/galaxis/galaxis-1.10-r1.ebuild X-VCS-Directories: games-puzzle/galaxis/files/ games-puzzle/galaxis/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 8d0922f67eb64603d744c26f994027b4662325b4 X-VCS-Branch: master Date: Mon, 9 Oct 2023 20:39:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dde6f96c-9a16-460f-ab65-82615781aff8 X-Archives-Hash: da397c26191bb8f8566fdbd56c409e7c commit: 8d0922f67eb64603d744c26f994027b4662325b4 Author: Brahmajit Das gmail com> AuthorDate: Tue Oct 3 18:49:38 2023 +0000 Commit: James Le Cuirot gentoo 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 gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33170 Signed-off-by: James Le Cuirot 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 + #include 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 +}