[gentoo-commits] repo/gentoo:master commit in: games-arcade/stardork/, games-arcade/stardork/files/
commit: 2fc276966c91e9c0270ed31b1978d7bcff51721b Author: Ionen Wolkens gentoo org> AuthorDate: Thu Oct 13 07:41:13 2022 + Commit: Ionen Wolkens gentoo org> CommitDate: Thu Oct 13 09:06:07 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fc27696 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 gentoo.org> .../stardork/files/stardork-0.7-clang16.patch | 13 games-arcade/stardork/stardork-0.7-r1.ebuild | 34 - games-arcade/stardork/stardork-0.7-r2.ebuild | 35 ++ 3 files changed, 48 insertions(+), 34 deletions(-) diff --git a/games-arcade/stardork/files/stardork-0.7-clang16.patch b/games-arcade/stardork/files/stardork-0.7-clang16.patch new file mode 100644 index ..c815fcd281fb --- /dev/null +++ b/games-arcade/stardork/files/stardork-0.7-clang16.patch @@ -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) { diff --git a/games-arcade/stardork/stardork-0.7-r1.ebuild b/games-arcade/stardork/stardork-0.7-r1.ebuild deleted file mode 100644 index d2b7e070c095.. --- a/games-arcade/stardork/stardork-0.7-r1.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit toolchain-funcs - -DESCRIPTION="An ncurses-based space shooter" -HOMEPAGE="http://stardork.sourceforge.net/"; -SRC_URI="mirror://sourceforge/stardork/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc64 ~x86" -IUSE="" - -RDEPEND="sys-libs/ncurses:0=" -DEPEND="${RDEPEND} - virtual/pkgconfig -" - -src_prepare() { - default - rm -f Makefile -} - -src_compile() { - emake CC="$(tc-getCC)" LDLIBS="$($(tc-getPKG_CONFIG) ncurses --libs)" ${PN} -} - -src_install() { - dobin ${PN} - einstalldocs -} diff --git a/games-arcade/stardork/stardork-0.7-r2.ebuild b/games-arcade/stardork/stardork-0.7-r2.ebuild new file mode 100644 index ..f6b1fece5104 --- /dev/null +++ b/games-arcade/stardork/stardork-0.7-r2.ebuild @@ -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 +}
[gentoo-commits] repo/gentoo:master commit in: games-arcade/stardork/
commit: 204bfc7dc4be05334957e6ccc4041aa562b6fc5b Author: Sam James gentoo org> AuthorDate: Wed Apr 7 05:12:16 2021 + Commit: Sam James gentoo org> CommitDate: Tue Apr 13 00:26:11 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=204bfc7d games-arcade/stardork: call pkg-config via toolchain-funcs.eclass helper This ensures we call the correct pkg-config in e.g. cross. Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> games-arcade/stardork/stardork-0.7-r1.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/games-arcade/stardork/stardork-0.7-r1.ebuild b/games-arcade/stardork/stardork-0.7-r1.ebuild index d2458f6571f..d2b7e070c09 100644 --- a/games-arcade/stardork/stardork-0.7-r1.ebuild +++ b/games-arcade/stardork/stardork-0.7-r1.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 + inherit toolchain-funcs DESCRIPTION="An ncurses-based space shooter" @@ -24,7 +25,7 @@ src_prepare() { } src_compile() { - emake CC="$(tc-getCC)" LDLIBS="$(pkg-config ncurses --libs)" ${PN} + emake CC="$(tc-getCC)" LDLIBS="$($(tc-getPKG_CONFIG) ncurses --libs)" ${PN} } src_install() {
[gentoo-commits] repo/gentoo:master commit in: games-arcade/stardork/
commit: b8e5138942d77e02eea5ad07a7aca15a59872786 Author: Pacho Ramos gentoo org> AuthorDate: Tue Apr 24 18:19:12 2018 + Commit: Pacho Ramos gentoo org> CommitDate: Tue Apr 24 19:26:15 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8e51389 games-arcade/stardork: Stop using games.eclass Package-Manager: Portage-2.3.31, Repoman-2.3.9 games-arcade/stardork/stardork-0.7-r1.ebuild | 33 1 file changed, 33 insertions(+) diff --git a/games-arcade/stardork/stardork-0.7-r1.ebuild b/games-arcade/stardork/stardork-0.7-r1.ebuild new file mode 100644 index 000..d2458f6571f --- /dev/null +++ b/games-arcade/stardork/stardork-0.7-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit toolchain-funcs + +DESCRIPTION="An ncurses-based space shooter" +HOMEPAGE="http://stardork.sourceforge.net/"; +SRC_URI="mirror://sourceforge/stardork/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="" + +RDEPEND="sys-libs/ncurses:0=" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +src_prepare() { + default + rm -f Makefile +} + +src_compile() { + emake CC="$(tc-getCC)" LDLIBS="$(pkg-config ncurses --libs)" ${PN} +} + +src_install() { + dobin ${PN} + einstalldocs +}
[gentoo-commits] repo/gentoo:master commit in: games-arcade/stardork/
commit: 0ba0a1875517eac96157f42e0ba2223122b11e70 Author: Pacho Ramos gentoo org> AuthorDate: Tue Apr 24 18:19:29 2018 + Commit: Pacho Ramos gentoo org> CommitDate: Tue Apr 24 19:26:16 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ba0a187 games-arcade/stardork: Drop old Package-Manager: Portage-2.3.31, Repoman-2.3.9 games-arcade/stardork/stardork-0.7.ebuild | 32 --- 1 file changed, 32 deletions(-) diff --git a/games-arcade/stardork/stardork-0.7.ebuild b/games-arcade/stardork/stardork-0.7.ebuild deleted file mode 100644 index 05aea19da66..000 --- a/games-arcade/stardork/stardork-0.7.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit toolchain-funcs games - -DESCRIPTION="An ncurses-based space shooter" -HOMEPAGE="http://stardork.sourceforge.net/"; -SRC_URI="mirror://sourceforge/stardork/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc64 ~x86" -IUSE="" - -RDEPEND="sys-libs/ncurses:0" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -src_prepare() { - rm -f Makefile -} - -src_compile() { - emake CC="$(tc-getCC)" LDLIBS="$(pkg-config ncurses --libs)" ${PN} -} - -src_install() { - dogamesbin ${PN} - dodoc README - prepgamesdirs -}