From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/fruit/, games-board/fruit/files/
Date: Mon, 28 Jun 2021 16:49:26 +0000 (UTC) [thread overview]
Message-ID: <1624898559.e2d347fd03422da521dd933def9982f63b5b889f.ionen@gentoo> (raw)
commit: e2d347fd03422da521dd933def9982f63b5b889f
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 28 14:12:02 2021 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Jun 28 16:42:39 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2d347fd
games-board/fruit: EAPI 6->8, versionator--, prefix/cxx fix
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
games-board/fruit/files/fruit-2.1-gentoo.patch | 11 -------
games-board/fruit/fruit-2.1-r1.ebuild | 43 ++++++++++++--------------
2 files changed, 20 insertions(+), 34 deletions(-)
diff --git a/games-board/fruit/files/fruit-2.1-gentoo.patch b/games-board/fruit/files/fruit-2.1-gentoo.patch
deleted file mode 100644
index 815b184d9dc..00000000000
--- a/games-board/fruit/files/fruit-2.1-gentoo.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/option.cpp.old 2007-02-07 23:32:25.000000000 +0100
-+++ b/option.cpp 2007-02-07 23:32:51.000000000 +0100
-@@ -29,7 +29,7 @@
- { "Ponder", true, "false", "check", "", NULL },
-
- { "OwnBook", true, "true", "check", "", NULL },
-- { "BookFile", true, "book_small.bin", "string", "", NULL },
-+ { "BookFile", true, "@GENTOO_DATADIR@/book_small.bin", "string", "", NULL },
-
- { "NullMove Pruning", true, "Fail High", "combo", "var Always var Fail High var Never", NULL },
- { "NullMove Reduction", true, "3", "spin", "min 1 max 3", NULL },
diff --git a/games-board/fruit/fruit-2.1-r1.ebuild b/games-board/fruit/fruit-2.1-r1.ebuild
index bb8f7635cf1..4794f6bf817 100644
--- a/games-board/fruit/fruit-2.1-r1.ebuild
+++ b/games-board/fruit/fruit-2.1-r1.ebuild
@@ -1,41 +1,38 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit versionator
+EAPI=8
-MY_PV="$(replace_all_version_separators '')"
-MY_P="${PN}_${MY_PV}_linux"
+inherit toolchain-funcs
+
+MY_P="${PN}_$(ver_rs 1- '')_linux"
DESCRIPTION="UCI-only chess engine"
-HOMEPAGE="http://arctrix.com/nas/fruit/"
-SRC_URI="http://arctrix.com/nas/${PN}/${MY_P}.zip"
+HOMEPAGE="https://arctrix.com/nas/fruit/"
+SRC_URI="https://arctrix.com/nas/${PN}/${MY_P}.zip"
+S="${WORKDIR}/${MY_P}/src"
-LICENSE="GPL-2"
+LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
-RDEPEND=""
-DEPEND="app-arch/unzip"
-
-S="${WORKDIR}/${MY_P}/src"
+BDEPEND="app-arch/unzip"
src_prepare() {
default
- eapply "${FILESDIR}/${P}"-gentoo.patch
- sed -i \
- -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
- option.cpp || die
- sed -i \
- -e '/^CXX/d' \
- -e '/^LDFLAGS/d' \
- Makefile || die
+
+ sed -i "s|book_small|${EPREFIX}/usr/share/${PN}/book_small|" option.cpp || die
+}
+
+src_compile() {
+ emake CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_install() {
dobin ${PN}
- insinto "/usr/share/${PN}"
+
+ insinto /usr/share/${PN}
doins ../book_small.bin
- dodoc ../readme.txt ../technical_10.txt
+
+ dodoc ../{readme,technical_10}.txt
}
reply other threads:[~2021-06-28 16:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1624898559.e2d347fd03422da521dd933def9982f63b5b889f.ionen@gentoo \
--to=ionen@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