public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/dev/ulm:master commit in: games-board/tablebase-nalimov/
Date: Thu, 16 Jun 2022 13:39:48 +0000 (UTC)	[thread overview]
Message-ID: <1655386718.ed6c23d051f83bbff9b89fc576c86c6fb7159407.ulm@gentoo> (raw)

commit:     ed6c23d051f83bbff9b89fc576c86c6fb7159407
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 16 13:38:38 2022 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Jun 16 13:38:38 2022 +0000
URL:        https://gitweb.gentoo.org/repo/dev/ulm.git/commit/?id=ed6c23d0

games-board/tablebase-nalimov: EAPI 8 and simplify

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 games-board/tablebase-nalimov/metadata.xml         |  2 +-
 ...d => tablebase-nalimov-0_pre20131213-r1.ebuild} | 33 ++++++++--------
 .../tablebase-nalimov-0_pre20131213-r100.ebuild    | 44 ----------------------
 3 files changed, 18 insertions(+), 61 deletions(-)

diff --git a/games-board/tablebase-nalimov/metadata.xml b/games-board/tablebase-nalimov/metadata.xml
index c97efbb..71231d9 100644
--- a/games-board/tablebase-nalimov/metadata.xml
+++ b/games-board/tablebase-nalimov/metadata.xml
@@ -4,8 +4,8 @@
 <maintainer type="person">
   <email>ulm@gentoo.org</email>
 </maintainer>
+<stabilize-allarches/>
 <use>
-  <flag name='5-pieces'>Install tablebases for 5 pieces</flag>
   <flag name='6-pieces'>Install tablebases for 6 pieces (huge!)</flag>
 </use>
 </pkgmetadata>

diff --git a/games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213.ebuild b/games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213-r1.ebuild
similarity index 83%
rename from games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213.ebuild
rename to games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213-r1.ebuild
index 0fec05e..eed72fa 100644
--- a/games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213.ebuild
+++ b/games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213-r1.ebuild
@@ -1,21 +1,23 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 inherit check-reqs
 
 DESCRIPTION="Nalimov chess endgame tablebases for up to 6 pieces"
 HOMEPAGE="http://tablebase.sesse.net/
-	http://kirill-kryukov.com/chess/tablebases-online/"
+	https://kirill-kryukov.com/chess/tablebases-online/"
 
-tb5=()
+tb345=()
 tb6=()
 m=(p n b r q k)
 for ((i=4; i>=0; i--)); do
+	tb345+=(k${m[i]}k.nb{w,b}) # 2+1
 	for ((j=i; j>=0; j--)); do
+		tb345+=(k${m[i]}k${m[j]}.nb{w,b} k${m[i]}${m[j]}k.nb{w,b}) # 2+2, 3+1
 		for ((k=4; k>=0; k--)); do
-			tb5+=(k${m[i]}${m[j]}k${m[k]}.nb{w,b}) # 3+2
+			tb345+=(k${m[i]}${m[j]}k${m[k]}.nb{w,b}) # 3+2
 			((k<=i)) || continue
 			for ((l=k; l>=0; l--)); do
 				((k<i || l<=j)) || continue
@@ -23,7 +25,7 @@ for ((i=4; i>=0; i--)); do
 				((k!=i || l!=j)) && tb6+=(k${m[i]}${m[j]}k${m[k]}${m[l]}.nbb)
 			done
 			((k<=j)) || continue
-			tb5+=(k${m[i]}${m[j]}${m[k]}k.nb{w,b}) # 4+1
+			tb345+=(k${m[i]}${m[j]}${m[k]}k.nb{w,b}) # 4+1
 			for ((l=4; l>=0; l--)); do
 				tb6+=(k${m[i]}${m[j]}${m[k]}k${m[l]}.nb{w,b}) # 4+2
 			done
@@ -59,27 +61,26 @@ for ((i=0; i<${#tb6[@]}; i++)); do
 	fi
 done
 
-SRC_URI="${tb5[@]/%/.emd} 6-pieces? ( ${tb6n[@]/%/.emd} )"
-unset i j k l m nfiles s tb5 tb6 tb6n
+SRC_URI="${tb345[@]/%/.emd}
+	6-pieces? ( ${tb6n[@]/%/.emd} )"
+unset i j k l m nfiles s tb345 tb6 tb6n
+
+S="${WORKDIR}"
 
 LICENSE="public-domain" # machine-generated tables
-SLOT="nofetch"
+SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="6-pieces"
 RESTRICT="fetch"
 
-RDEPEND="~${CATEGORY}/${P}:0"
-
-S="${WORKDIR}"
-
 pkg_pretend() {
-	CHECKREQS_DISK_USR=$(usex 6-pieces "1155G" "7200M")
+	CHECKREQS_DISK_USR="$(usex 6-pieces 1155G 7230M)"
 	CHECKREQS_DISK_BUILD="${CHECKREQS_DISK_USR}"
 	check-reqs_pkg_pretend
 }
 
 pkg_setup() {
-	CHECKREQS_DISK_USR=$(usex 6-pieces "1155G" "7200M")
+	CHECKREQS_DISK_USR="$(usex 6-pieces 1155G 7230M)"
 	CHECKREQS_DISK_BUILD="${CHECKREQS_DISK_USR}"
 	check-reqs_pkg_setup
 }
@@ -103,6 +104,6 @@ src_install() {
 	local f
 	insinto /usr/share/${PN}
 	for f in ${A}; do
-		[[ ${f} = *.emd ]] && echo "${DISTDIR}"/${f}
+		[[ ${f} == *.emd ]] && echo "${DISTDIR}"/${f}
 	done | xargs doins
 }

diff --git a/games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213-r100.ebuild b/games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213-r100.ebuild
deleted file mode 100644
index 8aecd0e..0000000
--- a/games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213-r100.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-DESCRIPTION="Nalimov chess endgame tablebases for up to 6 pieces"
-HOMEPAGE="http://tablebase.sesse.net/
-	http://kirill-kryukov.com/chess/tablebases-online/"
-
-tb34=()
-m=(p n b r q k)
-for ((i=4; i>=0; i--)); do
-	tb34+=(k${m[i]}k.nb{w,b}) # 2+1
-	for ((j=i; j>=0; j--)); do
-		tb34+=(k${m[i]}k${m[j]}.nb{w,b} k${m[i]}${m[j]}k.nb{w,b}) # 2+2, 3+1
-	done
-done
-
-SRC_URI=""
-for i in "${tb34[@]}"; do
-	SRC_URI+="http://tablebase.sesse.net/3-4-5/${i}.emd "
-done
-unset i j m tb34
-
-LICENSE="public-domain" # machine-generated tables
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="5-pieces 6-pieces"
-RESTRICT="mirror"				# not on Gentoo mirrors
-
-PDEPEND="5-pieces? ( ~${CATEGORY}/${P}:nofetch )
-	6-pieces? ( ~${CATEGORY}/${P}:nofetch[6-pieces] )"
-
-S="${WORKDIR}"
-
-src_unpack() { :; }
-
-src_install() {
-	local f
-	insinto /usr/share/${PN}
-	for f in ${A}; do
-		[[ ${f} = *.emd ]] && echo "${DISTDIR}"/${f}
-	done | xargs doins
-}


             reply	other threads:[~2022-06-16 13:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-16 13:39 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-16 13:43 [gentoo-commits] repo/dev/ulm:master commit in: games-board/tablebase-nalimov/ Ulrich Müller
2018-02-21  0:04 Ulrich Müller

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=1655386718.ed6c23d051f83bbff9b89fc576c86c6fb7159407.ulm@gentoo \
    --to=ulm@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