From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 86A1C158091 for ; Thu, 16 Jun 2022 13:43:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D042E077A; Thu, 16 Jun 2022 13:43:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 47610E077A for ; Thu, 16 Jun 2022 13:43:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 36804342019 for ; Thu, 16 Jun 2022 13:43:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A5F1D4E3 for ; Thu, 16 Jun 2022 13:43:10 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1655386965.ff1f336ee9eca341588d9a65f137d46c72be3db4.ulm@gentoo> Subject: [gentoo-commits] repo/dev/ulm:master commit in: games-board/tablebase-nalimov/ X-VCS-Repository: repo/dev/ulm X-VCS-Files: games-board/tablebase-nalimov/metadata.xml games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213-r100.ebuild games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213-r101.ebuild games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213.ebuild X-VCS-Directories: games-board/tablebase-nalimov/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: ff1f336ee9eca341588d9a65f137d46c72be3db4 X-VCS-Branch: master Date: Thu, 16 Jun 2022 13:43:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0e711292-d9f4-40e0-9205-f956e518cb23 X-Archives-Hash: 70c2d75db4095ede15e189e4a02b19b1 commit: ff1f336ee9eca341588d9a65f137d46c72be3db4 Author: Ulrich Müller gentoo org> AuthorDate: Thu Jun 16 13:38:38 2022 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Thu Jun 16 13:42:45 2022 +0000 URL: https://gitweb.gentoo.org/repo/dev/ulm.git/commit/?id=ff1f336e games-board/tablebase-nalimov: EAPI 8 and simplify Signed-off-by: Ulrich Müller gentoo.org> games-board/tablebase-nalimov/metadata.xml | 2 +- .../tablebase-nalimov-0_pre20131213-r100.ebuild | 44 ---------------------- ...=> tablebase-nalimov-0_pre20131213-r101.ebuild} | 33 ++++++++-------- 3 files changed, 19 insertions(+), 60 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 @@ ulm@gentoo.org + - Install tablebases for 5 pieces Install tablebases for 6 pieces (huge!) 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 -} diff --git a/games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213.ebuild b/games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213-r101.ebuild similarity index 82% rename from games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213.ebuild rename to games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213-r101.ebuild index 0fec05e..ea6e506 100644 --- a/games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213.ebuild +++ b/games-board/tablebase-nalimov/tablebase-nalimov-0_pre20131213-r101.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=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,28 @@ 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}" +RDEPEND="!${CATEGORY}/${PN}:nofetch" 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 +106,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 }