commit:     b9f9ca435162f63f34f7b41c9d78ece4f8c71e49
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 13 02:55:28 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Aug 13 09:00:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9f9ca43

games-arcade/gnake: EAPI6->8, dead homepage, pass .pc --cflags too

Homepage been dead for a few years, formerly 404 and now is a
non-404 blank page that made it seem still up.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 games-arcade/gnake/gnake-0.94b-r2.ebuild | 31 ------------------------------
 games-arcade/gnake/gnake-0.94b-r3.ebuild | 33 ++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 31 deletions(-)

diff --git a/games-arcade/gnake/gnake-0.94b-r2.ebuild 
b/games-arcade/gnake/gnake-0.94b-r2.ebuild
deleted file mode 100644
index 565824fbdade..000000000000
--- a/games-arcade/gnake/gnake-0.94b-r2.ebuild
+++ /dev/null
@@ -1,31 +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 Nibbles clone"
-HOMEPAGE="http://lightless.org/gnake";
-SRC_URI="mirror://gentoo/Gnake.${PV}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-RDEPEND="sys-libs/ncurses:0="
-DEPEND="${RDEPEND}
-       virtual/pkgconfig
-"
-
-S="${WORKDIR}/${PN}"
-
-src_compile() {
-       emake LDLIBS="$($(tc-getPKG_CONFIG) ncurses --libs)" gnake
-}
-
-src_install() {
-       dobin gnake
-       einstalldocs
-}

diff --git a/games-arcade/gnake/gnake-0.94b-r3.ebuild 
b/games-arcade/gnake/gnake-0.94b-r3.ebuild
new file mode 100644
index 000000000000..2ebe161e455a
--- /dev/null
+++ b/games-arcade/gnake/gnake-0.94b-r3.ebuild
@@ -0,0 +1,33 @@
+# 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 Nibbles clone"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage";
+SRC_URI="mirror://gentoo/${PN^}.${PV}.tar.gz"
+S="${WORKDIR}/${PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="sys-libs/ncurses:="
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+src_compile() {
+       tc-export CC
+
+       append-cppflags $($(tc-getPKG_CONFIG) --cflags ncurses || die)
+       append-libs $($(tc-getPKG_CONFIG) --libs ncurses || die)
+
+       emake LDLIBS="${LIBS}" gnake
+}
+
+src_install() {
+       dobin gnake
+       einstalldocs
+}

Reply via email to