diff options
Diffstat (limited to 'games-board/tablebase-syzygy')
5 files changed, 82 insertions, 128 deletions
diff --git a/games-board/tablebase-syzygy/Manifest b/games-board/tablebase-syzygy/Manifest index 99c2ce82b49f..6cdb89abd70d 100644 --- a/games-board/tablebase-syzygy/Manifest +++ b/games-board/tablebase-syzygy/Manifest @@ -1018,6 +1018,5 @@ DIST KRvKP.rtbw 179408 BLAKE2B 914f36c63f04f52702e073b25b1abdeccf54eef3924853b45 DIST KRvKP.rtbz 193424 BLAKE2B 9ba5e45c763f973faaeac3ee902e93c21d06e44c6697500b0a02092728eea62d3b4c51454e1051e5e6119495d4a1c6c02501c274b63d4e8d7810b21668fee309 SHA512 7920d6e961860b94738b36dbb3cc3ee9771448c3e4a0f1544af79160cb8f8046c9ebe2c80c3183b4c5b3e7eb3be669533bcd2b2274b9b5705ce9a8948b85f65b DIST KRvKR.rtbw 12944 BLAKE2B 42839f64c0e8ec8b3be09c128ee2e8d768ce5d77ca06c3cf90322a773148d949ac66be0d45de7606728e9d7989b9e0fcd111f658818996037ddf59d46a44ed10 SHA512 328639da515a9b36bf6cad80a684c2759e03f8ca7ad78fe7a1e4b1f3ec4c79b418ec74755fa80f86d6523dee43f9e79b4f4e36c56ece06f367850d2a4f39f5c4 DIST KRvKR.rtbz 3408 BLAKE2B e56df50b368a89acb767a827f17d83ec028a87c06e9ad9d18826db9ce8da6024cbc69f961cad24846ed48e839ef5e6f95bd0798455ee2e1cc6e625df573c7309 SHA512 729068cb50ed6abff51a2b8f4041edfb0d109f163d961db9240a0c74069a7e792f3904a7d712882ad25d356059917a64a84f511914f05c20d41185815f23e3d9 -EBUILD tablebase-syzygy-0_pre20131213-r100.ebuild 1598 BLAKE2B 5750013dbb20b436b231b711bf0e76b7c0c2e304a4b4d13891c8a48dfca390a987048ca84d8a5e3550fdbb90eca2f11af3b437f9ef1b28de325aecbc8a900a8e SHA512 86f0df3e6ad0364cf70d73215cca12be43517af545c60be714d79d4422c98079a4469949232dd0deae28578e2e476861454898460eabd8245357f6f262c6fdc6 -EBUILD tablebase-syzygy-0_pre20131213.ebuild 1550 BLAKE2B 25081190ea10704e5ba3151d3806c694b8308a203f3763e6a6daca825e7b58ce2643aef6bb5a27f7b4b27cee186f388736a97db0e28cb5b71ee8fb5decc2a4dd SHA512 e0b53e707638ead230bac7e856c5e8a2acc7c0cc1b88a3b2668b7350d8637113f15d7f42a74683a65cb7faac4156667445ef70aff4a80027452e889a8d9b5c66 -MISC metadata.xml 297 BLAKE2B cab6beee8c5c4152710b693371a86dd67d96a092bc98968e205cf45f45c2c913cd83177f2e83a053855d522be0693c088183c174cbbf477756629b3a96bc23b7 SHA512 2aeb8c60f3e214b713f2be339a521bd9afaafd65b0ec8f57dffd968a91b0549a58213c2a7c812c524406fc76789e0188fa520655f7b004c923aac3e9fe828575 +EBUILD tablebase-syzygy-0_pre20131213-r101.ebuild 2089 BLAKE2B abb940240c43638e4d7a6985cdb9096a5c0a2133ec5a9a5bd6929b0d1b415f6c6ef5b19cda6d09c0ee4f46131fd946eed41ba9dc4231a23de5e670154a67274a SHA512 604f97ef075c1a0c96f490c8d312f5e53e50f9c8f469a81913cffc9706e0bfaeb7cd621f6eb2c95111ad4893c4a4b226b51fe7da2b087dec50abac17e6795b90 +MISC metadata.xml 320 BLAKE2B db06554da7072cf16734f6b8b12c895bc146e0913c2b938ee2c39d8e7345b75903d649066e78c00607ef368e58c53ffb102ab2dde8626c243c7af67c045f8a10 SHA512 9e638a98c83732368812cbc1f6feb097781bcefd3c57daed970188d5b12bc094d11517b07c991ef8dfc0b9cbaaadeb0af855afe970f71f8e3de749efc2d17bd5 diff --git a/games-board/tablebase-syzygy/metadata.xml b/games-board/tablebase-syzygy/metadata.xml index 02e3af9bf16b..1cd7130c4c50 100644 --- a/games-board/tablebase-syzygy/metadata.xml +++ b/games-board/tablebase-syzygy/metadata.xml @@ -4,6 +4,7 @@ <maintainer type="person"> <email>ulm@gentoo.org</email> </maintainer> +<stabilize-allarches/> <use> <flag name="6-pieces">Install tablebases for 6 pieces (huge!)</flag> </use> diff --git a/games-board/tablebase-syzygy/tablebase-syzygy-0_pre20131213-r100.ebuild b/games-board/tablebase-syzygy/tablebase-syzygy-0_pre20131213-r100.ebuild deleted file mode 100644 index 4bc349060a1a..000000000000 --- a/games-board/tablebase-syzygy/tablebase-syzygy-0_pre20131213-r100.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit check-reqs - -DESCRIPTION="Syzygy chess endgame tablebases for up to 6 pieces" -HOMEPAGE="http://tablebase.sesse.net/ - http://kirill-kryukov.com/chess/tablebases-online/" - -tb345=() -m=(P N B R Q K) -for ((i=4; i>=0; i--)); do - tb345+=(K${m[i]}vK) # 2+1 - for ((j=i; j>=0; j--)); do - tb345+=(K${m[i]}vK${m[j]} K${m[i]}${m[j]}vK) # 2+2, 3+1 - for ((k=4; k>=0; k--)); do - tb345+=(K${m[i]}${m[j]}vK${m[k]}) # 3+2 - #((k<=i)) || continue - #for ((l=k; l>=0; l--)); do - # ((k<i || l<=j)) && tb6+=(K${m[i]}${m[j]}vK${m[k]}${m[l]}) # 3+3 - #done - ((k<=j)) || continue - tb345+=(K${m[i]}${m[j]}${m[k]}vK) # 4+1 - #for ((l=4; l>=0; l--)); do - # tb6+=(K${m[i]}${m[j]}${m[k]}vK${m[l]}) # 4+2 - # ((l<=k)) && tb6+=(K${m[i]}${m[j]}${m[k]}${m[l]}vK) # 5+1 - #done - done - done -done - -SRC_URI="" -for i in "${tb345[@]}"; do - SRC_URI+="http://tablebase.sesse.net/syzygy/3-4-5/${i}.rtbw " - SRC_URI+="http://tablebase.sesse.net/syzygy/3-4-5/${i}.rtbz " -done -unset i j k m tb345 - -LICENSE="public-domain" # machine-generated tables -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="6-pieces" - -# there is no use-conditional mirror restriction, -# so depend on another slot of the same package instead -PDEPEND="6-pieces? ( ~${CATEGORY}/${P}:nofetch )" - -S="${WORKDIR}" -CHECKREQS_DISK_USR="939M" -CHECKREQS_DISK_BUILD="${CHECKREQS_DISK_USR}" - -src_unpack() { :; } - -src_install() { - local f - insinto /usr/share/${PN} - for f in ${A}; do - [[ ${f} = *.rtb[wz] ]] && echo "${DISTDIR}"/${f} - done | xargs doins -} diff --git a/games-board/tablebase-syzygy/tablebase-syzygy-0_pre20131213-r101.ebuild b/games-board/tablebase-syzygy/tablebase-syzygy-0_pre20131213-r101.ebuild new file mode 100644 index 000000000000..619fcad9c2e4 --- /dev/null +++ b/games-board/tablebase-syzygy/tablebase-syzygy-0_pre20131213-r101.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit check-reqs + +DESCRIPTION="Syzygy chess endgame tablebases for up to 6 pieces" +HOMEPAGE="http://tablebase.sesse.net/ + https://kirill-kryukov.com/chess/tablebases-online/" + +tb345=() +tb6=() +m=(P N B R Q K) +for ((i=4; i>=0; i--)); do + tb345+=(K${m[i]}vK) # 2+1 + for ((j=i; j>=0; j--)); do + tb345+=(K${m[i]}vK${m[j]} K${m[i]}${m[j]}vK) # 2+2, 3+1 + for ((k=4; k>=0; k--)); do + tb345+=(K${m[i]}${m[j]}vK${m[k]}) # 3+2 + ((k<=i)) || continue + for ((l=k; l>=0; l--)); do + ((k<i || l<=j)) && tb6+=(K${m[i]}${m[j]}vK${m[k]}${m[l]}) # 3+3 + done + ((k<=j)) || continue + tb345+=(K${m[i]}${m[j]}${m[k]}vK) # 4+1 + for ((l=4; l>=0; l--)); do + tb6+=(K${m[i]}${m[j]}${m[k]}vK${m[l]}) # 4+2 + ((l<=k)) && tb6+=(K${m[i]}${m[j]}${m[k]}${m[l]}vK) # 5+1 + done + done + done +done + +tb345=("${tb345[@]/#/mirror+http://tablebase.sesse.net/syzygy/3-4-5/}") +SRC_URI="${tb345[@]/%/.rtbw} ${tb345[@]/%/.rtbz} + 6-pieces? ( ${tb6[@]/%/.rtbw} ${tb6[@]/%/.rtbz} )" +unset i j k l m tb345 tb6 + +LICENSE="public-domain" # machine-generated tables +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="6-pieces" +RESTRICT="fetch" + +RDEPEND="!${CATEGORY}/${PN}:nofetch" + +S="${WORKDIR}" + +pkg_nofetch() { + einfo "Due to their large size, fetching the Syzygy Endgame Tablebases via" + einfo "BitTorrent is recommended: https://oics.olympuschess.com/tracker/" + einfo "After downloading, place all K*.rtbw and K*.rtbz files in your" + einfo "DISTDIR directory." + einfo "(For the tablebases with up to 6 pieces, there should be" + einfo "$(echo ${A} | wc -w) files in total.)" +} + +pkg_pretend() { + CHECKREQS_DISK_USR="$(usex 6-pieces 151G 939M)" + CHECKREQS_DISK_BUILD="${CHECKREQS_DISK_USR}" + check-reqs_pkg_pretend +} + +pkg_setup() { + CHECKREQS_DISK_USR="$(usex 6-pieces 151G 939M)" + CHECKREQS_DISK_BUILD="${CHECKREQS_DISK_USR}" + check-reqs_pkg_setup +} + +src_unpack() { :; } + +src_install() { + local f + insinto /usr/share/${PN} + for f in ${A}; do + [[ ${f} == *.rtb[wz] ]] && echo "${DISTDIR}"/${f} + done | xargs doins +} diff --git a/games-board/tablebase-syzygy/tablebase-syzygy-0_pre20131213.ebuild b/games-board/tablebase-syzygy/tablebase-syzygy-0_pre20131213.ebuild deleted file mode 100644 index 1ede75fed76d..000000000000 --- a/games-board/tablebase-syzygy/tablebase-syzygy-0_pre20131213.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit check-reqs - -DESCRIPTION="Syzygy chess endgame tablebases for up to 6 pieces" -HOMEPAGE="http://tablebase.sesse.net/ - http://kirill-kryukov.com/chess/tablebases-online/" - -tb6=() -m=(P N B R Q K) -for ((i=4; i>=0; i--)); do - for ((j=i; j>=0; j--)); do - for ((k=i; k>=0; k--)); do - for ((l=k; l>=0; l--)); do - ((k<i || l<=j)) && tb6+=(K${m[i]}${m[j]}vK${m[k]}${m[l]}) # 3+3 - done - ((k<=j)) || continue - for ((l=4; l>=0; l--)); do - tb6+=(K${m[i]}${m[j]}${m[k]}vK${m[l]}) # 4+2 - ((l<=k)) && tb6+=(K${m[i]}${m[j]}${m[k]}${m[l]}vK) # 5+1 - done - done - done -done - -SRC_URI="" -for i in "${tb6[@]}"; do - SRC_URI+="${i}.rtbw ${i}.rtbz " -done -unset i j k l m tb6 - -LICENSE="public-domain" # machine-generated tables -SLOT="nofetch" -KEYWORDS="amd64 x86" -RESTRICT="fetch" - -RDEPEND="~${CATEGORY}/${P}:0" - -S="${WORKDIR}" -CHECKREQS_DISK_USR="150G" -CHECKREQS_DISK_BUILD="${CHECKREQS_DISK_USR}" - -pkg_nofetch() { - einfo "Due to their large size, fetching the Syzygy Endgame Tablebases" - einfo "via BitTorrent is recommended: http://oics.olympuschess.com/tracker/" - einfo "After downloading, place all K*.rtbw and K*.rtbz files in your" - einfo "DISTDIR directory." - einfo "(For the 6-pieces tablebases, there should be" \ - "$(echo ${A} | wc -w) files in total.)" -} - -src_unpack() { :; } - -src_install() { - local f - insinto /usr/share/${PN} - for f in ${A}; do - [[ ${f} = *.rtb[wz] ]] && echo "${DISTDIR}"/${f} - done | xargs doins -} |