forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-arcade/stardork: EAPI6->8, fix build with clang16
Also pass cppflags bit of ncurses' pkg-config. Closes: https://bugs.gentoo.org/871498 Signed-off-by: Ionen Wolkens <[email protected]>
- Loading branch information
Showing
3 changed files
with
48 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
https://bugs.gentoo.org/871498 | ||
--- a/stardork.c | ||
+++ b/stardork.c | ||
@@ -376,3 +376,3 @@ | ||
|
||
-void plot_wormhole(y, x) { | ||
+void plot_wormhole(int y, int x) { | ||
int r1, r2, i, j; | ||
@@ -564,3 +564,3 @@ | ||
|
||
-void change_colors(color) { | ||
+void change_colors(int color) { | ||
if (has_colors() != FALSE) { |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit flag-o-matic toolchain-funcs | ||
|
||
DESCRIPTION="ncurses-based space shooter" | ||
HOMEPAGE="https://stardork.sourceforge.net/" | ||
SRC_URI="mirror://sourceforge/stardork/${P}.tar.gz" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~ppc64 ~x86" | ||
|
||
RDEPEND="sys-libs/ncurses:=" | ||
DEPEND="${RDEPEND}" | ||
BDEPEND="virtual/pkgconfig" | ||
|
||
PATCHES=( | ||
"${FILESDIR}"/${P}-clang16.patch | ||
) | ||
|
||
src_compile() { | ||
tc-export CC | ||
append-cppflags $($(tc-getPKG_CONFIG) ncurses --cflags || die) | ||
append-libs $($(tc-getPKG_CONFIG) ncurses --libs || die) | ||
|
||
emake -f /dev/null LDLIBS="${LIBS}" ${PN} | ||
} | ||
|
||
src_install() { | ||
dobin ${PN} | ||
einstalldocs | ||
} |