diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-03 22:39:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-03 22:39:47 +0100 |
commit | 7f0ccc917c7abe6223784c703d86cd14755691fb (patch) | |
tree | 8c6793f68896b341e22f33d7e6cef88e481f4a8b /games-board | |
parent | 9aa80713372911cec499b3adb2cd746790920916 (diff) |
gentoo resync : 03.07.2021
Diffstat (limited to 'games-board')
22 files changed, 282 insertions, 205 deletions
diff --git a/games-board/Manifest.gz b/games-board/Manifest.gz Binary files differindex db7f71ba6c95..fda31d708ffd 100644 --- a/games-board/Manifest.gz +++ b/games-board/Manifest.gz diff --git a/games-board/atakks/Manifest b/games-board/atakks/Manifest index d28f6eea6c6d..13d1a7c9b11d 100644 --- a/games-board/atakks/Manifest +++ b/games-board/atakks/Manifest @@ -1,5 +1,6 @@ AUX 1.0-warnings.patch 974 BLAKE2B 54ead5cdd8b43c812f11685f053b9a8fa8eaa5aa8da2d4a585bf4b8c90180a7d53036ec6ec230f47ea2beeb0361579d6dc732c435fd1763a8f83af466d9ab3dc SHA512 36911a16c5a9ea3db5a13fb9cb38e6481465016d1d58d1d255730ee35aad44e9356a1493ce93a010d5544b28d8e3ea35d40087e95dc86e577904eb033025b411 AUX atakks-1.0-as-needed.patch 443 BLAKE2B 8d9ea8a04f2ca9cfc592427bd22223ba77c25796c2c3b6d4a5cf4ffd129e279da4b50d5c2377e0313acda12807ced7b30557fc705d4c272ccdf219338a8ef281 SHA512 6280db8cd198caf320daa85773358f92b0bcf71c243b5ab36ccc989fb7c88fdeab2de8a1dc4ce45c97977b2f5ac026e811db1e1e6b3683759d2e5f639fa2155d DIST atakks-1.0.tar.gz 62464 BLAKE2B 1419e4fff60121e0bd793322cd20515335ad82d9b1341ab9ae658aa5e2882af3457440485318b1d872f9f8f483c22b21d8dc55f5d4862694427d08fb52e93e85 SHA512 a4b31635ef74198c86002fc930922266f462926bffa5b1fd7fb8ba1186dbc1efd8ae8c84ac0a429737916d1350b5432967221a67505bfe73d47a6dadd7600e39 -EBUILD atakks-1.0-r2.ebuild 783 BLAKE2B 992781404d810b6b5e7b53d1fbebe9fee7137c084ee9d56a20eb66b18b9908baaa34e048464f8be72b202d91e6e36f74ca9277c52b1d54095e56811ae6c375e0 SHA512 20335f452f77916b0796e7389044e9e1de3fb17ec8d23dca29082f4847d4d7510329a3068c43bbd4ccd7b8f83b3e17a9a0ddee01a40f728ee0e117c9703a88c3 +DIST atakks.png 5084 BLAKE2B 52dcc313e7931fb0180f40803f3c276a0ee146a0e16af83f153d1d22800b0f780a2aa022cd198ad1ab70bb7ba252eeccfc1d34d6685b556a17ef1a96385fcd35 SHA512 c662fd1d0996317299a3085e7d5455c4eb24be22133cbaf9e720633c894bbd5ef69729b679326845c0702f8d7b72ba27b5825c3d1086b025520d11448f8706c4 +EBUILD atakks-1.0-r2.ebuild 848 BLAKE2B 0a96aa066ae24b4ebb282cb1bb95a15e8d0f7ad724ecf0088512aef737de5ccf757502b87b49c2aab2416052808d0a3eb0711a713c9767e30e1e660599d79e38 SHA512 eaa5e486d716834ad3e8b1d675faeee2533bb4a6edd69ebf43946a9d8a272fd65f14f383728ded23f9223666987c0100c92bd9ee43b82baa167f222565e69ec8 MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-board/atakks/atakks-1.0-r2.ebuild b/games-board/atakks/atakks-1.0-r2.ebuild index 8da2077bfe0e..4dd2ccb10946 100644 --- a/games-board/atakks/atakks-1.0-r2.ebuild +++ b/games-board/atakks/atakks-1.0-r2.ebuild @@ -1,13 +1,15 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit desktop toolchain-funcs DESCRIPTION="Clone of Ataxx" HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" -SRC_URI="mirror://gentoo/${P}.tar.gz" +SRC_URI=" + mirror://gentoo/${P}.tar.gz + https://dev.gentoo.org/~ionen/distfiles/${PN}.png" S="${WORKDIR}/${PN}_${PV}" LICENSE="GPL-2+" @@ -40,7 +42,8 @@ src_install() { insinto /usr/share/${PN} doins *.bmp - make_desktop_entry ${PN} Atakks applications-games - einstalldocs + + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} Atakks } diff --git a/games-board/awale/Manifest b/games-board/awale/Manifest index f7a811f5fcbf..c15afaa08327 100644 --- a/games-board/awale/Manifest +++ b/games-board/awale/Manifest @@ -1,7 +1,3 @@ -AUX awale-1.5-build.patch 3323 BLAKE2B 7f2a2451b214466aba032891df9209d9b3bd1a458d59068a5a1771e0c76fd5360fda6e92cab4f71a4ced684c2616305333732d67e59412e93ca821b626097200 SHA512 7dccdb24469238d36d7ea0a9d9b27ca2e4b4472ae4918b0361f78e84933db1ebd948197af32c40ec48d014f3baefc4adf1e48f0e277af8b6b8b53e780c9c613e -DIST awale-1.5-no-autoreconf2.patch.xz 37268 BLAKE2B cec173e9b0be75c5d3d037a171fd796dccca5689e53f2e08d832e15a63d96502b4277f2ca6dbcbe817949cda8243aaacf7d7ede281fa32a34ffbf5f3031042f1 SHA512 857814c6ffe828bb0c3b82c214932ddf95162b7abaac6720db987f2af31a3b144543773a607edc70e0fceb8433f2aa519d3cfaca7474750cb45074aef0c37cb1 -DIST awale-1.5.tar.gz 489357 BLAKE2B d9f5efd10018b1e5f9964abf25189df5186159c7826c23b85f794999c5bc8d8ea93792e83dbde2ae010489a7d90258651e7ab7115e0fc361ce682968c438aed6 SHA512 b3f33068d7d6cfd964051e15cfd84e7f2c8483c30f2ccea35e2dddb34353ea984561fdf28c0d668404d80cda89c6d5fcd0004a1a86d92325e5f6fc2f88197c61 DIST awale-1.6.tar.gz 490881 BLAKE2B 721b8dfdc6dd7a558e43e00616372b2b1a89acf1cc79cb051650809b54605d4d0c2fbc91168ad940356748c0632fba7bd016db7afee2f977f8d52f64bdd08400 SHA512 0b9e4f18d6fbd5e8acdf8e5ecbbcebad4d732993cb61b8d84787fa2a9dad5b73eee62462fddc9296c050019de76a73b1e6d8d29d3ef57148ab086e49b1016f0d -EBUILD awale-1.5-r1.ebuild 1218 BLAKE2B 673791d5db74798c8ebaa9f715bc335fa928c2ca3da9579fa45474016a1ca20257c6cc1469f7ee5f3e73cd564cd11acd0af797a154c1ef6dab246e861388e332 SHA512 db5025261ef6f307867a574c6e933c65e1f43819c7b6916245ab1b836a398f227e8b0ba32c48c0fb06b4afedab2d8ce022a9534b010f2d19f389bcc38b853083 EBUILD awale-1.6.ebuild 665 BLAKE2B 1f07a24082eb6239546c6c3d44772d1efdbf754299437c1d686e4066769a251096e204571c91cb1bfd1783a6256b51041bcac6656e5340708ca32882f8c3f720 SHA512 191429e369d3fe150a0d947da2ed08c676482420e2f808d944bd8f95da296d678871b76425280cece046b40ec48f3f4e757cf4aabf630239a5687809b1a21bde MISC metadata.xml 253 BLAKE2B 443ca9c8d4f6801169382e87a0ecd1385c56e65229209e7200f9d313ef380e92ae8d7dc3c38e5989a4166289f22607a20b1e13bb960fff6b3d9f78629d8ab020 SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 diff --git a/games-board/awale/awale-1.5-r1.ebuild b/games-board/awale/awale-1.5-r1.ebuild deleted file mode 100644 index 13e96b998a9c..000000000000 --- a/games-board/awale/awale-1.5-r1.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -# do not use autotools related stuff in stable ebuilds -# unless you like random breakage: 469796, 469798, 424041 - -EAPI=6 - -inherit autotools eutils gnome2-utils - -DESCRIPTION="Free Awale - The game of all Africa" -HOMEPAGE="http://www.nongnu.org/awale/" -SRC_URI="mirror://nongnu/awale/${P}.tar.gz" -SRC_URI="${SRC_URI} https://dev.gentoo.org/~hasufell/distfiles/${P}-no-autoreconf2.patch.xz" # STABLE ARCH - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="tk" - -RDEPEND="tk? ( dev-lang/tcl:0= dev-lang/tk:0= )" - -PATCHES=( - "${FILESDIR}"/${P}-build.patch -) - -src_prepare() { - default - - mv src/xawale.tcl src/xawale.tcl.in || die - mv configure.{in,ac} || die - rm aclocal.m4 || die - eautoreconf -} - -src_configure() { - econf \ - --mandir=/usr/share/man \ - --with-iconsdir=/usr/share/icons/hicolor/48x48/apps \ - --with-desktopdir=/usr/share/applications \ - $(use_enable tk) -} - -src_install() { - default - use tk && fperms +x /usr/share/${PN}/xawale.tcl -} - -pkg_preinst() { - use tk && gnome2_icon_savelist -} - -pkg_postinst() { - use tk && gnome2_icon_cache_update -} - -pkg_postrm() { - use tk && gnome2_icon_cache_update -} diff --git a/games-board/awale/files/awale-1.5-build.patch b/games-board/awale/files/awale-1.5-build.patch deleted file mode 100644 index 0e8ca136a410..000000000000 --- a/games-board/awale/files/awale-1.5-build.patch +++ /dev/null @@ -1,116 +0,0 @@ -From: Julian Ospald <hasufell@gentoo.org> -Date: Sat Jan 26 20:04:17 UTC 2013 -Subject: build system - - fix FHS compliance - add several switches for icon, desktopdir and tk - fix a few macros - ---- awale-1.5/src/Makefile.am -+++ awale-1.5/src/Makefile.am -@@ -1,24 +1,30 @@ - bin_PROGRAMS = awale - awale_SOURCES = awale.c getopt.c getopt1.c getopt.h --INCLUDES = -I. -I$(srcdir) -+AM_CPPFLAGS = -I. -I$(srcdir) -+ -+if TK_GUI - bin_SCRIPTS = xawale - xawale: - echo "#! /bin/sh" >$@ -- echo '`dirname $$0`/../share/awale/xawale.tcl' >>$@ -+ echo "cd \"$(datadir)/awale/\" ; exec \"$(datadir)/awale/xawale.tcl\"" >>$@ - chmod ugo+x $@ --appdir = $(prefix)/share/applications -+appdir = @DESKTOPFILESDIR@ - app_DATA = awale.desktop - awale.desktop: - echo "[Desktop Entry]" >$@ - echo "Name=Free Awale" >>$@ - echo "Comment=Awale game" >>$@ - echo "Exec=xawale" >>$@ -- echo 'Icon=$(pkgdatadir)/awale.png' >>$@ -+ echo 'Icon=awale' >>$@ - echo "Terminal=false" >>$@ - echo "Type=Application" >>$@ - echo "Categories=Game;BoardGame;" >>$@ - chmod 644 $@ - CLEANFILES = xawale awale.desktop -+ -+xawale.tcl: -+ sed 's|@my_bindir@|$(bindir)|' < $@.in > $@ -+ - pkgdata_SCRIPTS = xawale.tcl - dist_pkgdata_DATA = Trou00.gif Trou01.gif Trou02.gif Trou03.gif Trou04.gif Trou05.gif \ - Trou06.gif Trou07.gif Trou08.gif Trou09.gif Trou10.gif Trou11.gif \ -@@ -28,3 +34,8 @@ - Trou06.gif Trou07.gif Trou08.gif Trou09.gif Trou10.gif Trou11.gif \ - Trou12.gif Trou13.gif Trou14.gif Trou15.gif board.gif copyright.gif \ - awale.png awale.ico uk.gif fr.gif sp.gif AwaleBanner.bmp README -+ -+# icon -+iconsdir = @ICONSDIR@ -+dist_icons_DATA = awale.png -+endif ---- awale-1.5/configure.in -+++ awale-1.5/configure.in -@@ -1,6 +1,34 @@ --AC_INIT(awale.c) --AM_INIT_AUTOMAKE(awale, 1.5) -+AC_INIT([awale], [1.5]) -+AM_INIT_AUTOMAKE([-Wall]) - AC_CONFIG_SRCDIR([src/awale.c]) - AC_PROG_CC -+ -+ -+# let user specify desktopdir -+AC_ARG_WITH([desktopdir], -+ [AS_HELP_STRING([--with-desktopdir=DIR], -+ [path where desktop files get installed (default: $datadir/applications)])], -+ [DESKTOPFILESDIR="$withval"], -+ [DESKTOPFILESDIR='$(datadir)/applications']) -+ -+# let user specify iconsdir -+AC_ARG_WITH([iconsdir], -+ [AS_HELP_STRING([--with-iconsdir=DIR], -+ [path where icons get installed (default: $datadir/pixmaps)])], -+ [ICONSDIR="$withval"], -+ [ICONSDIR='$(datadir)/pixmaps']) -+ -+# configure-switch for tkgui -+AC_ARG_ENABLE([tk], -+ [AS_HELP_STRING([--enable-tk], -+ [enable tk gui (default: enable)])], -+ [enable_tk=$enableval], -+ [enable_tk="no"]) -+ -+AM_CONDITIONAL([TK_GUI], [test "x$enable_tk" = "xyes"]) -+ -+AC_SUBST([ICONSDIR]) -+AC_SUBST([DESKTOPFILESDIR]) -+ - AC_CONFIG_FILES([Makefile src/Makefile man/Makefile]) - AC_OUTPUT - ---- awale-1.5/man/Makefile.am -+++ awale-1.5/man/Makefile.am -@@ -1,3 +1,7 @@ --mandir = $(prefix)/share/man -+if TK_GUI - man_MANS = awale.6 xawale.6 -+else -+man_MANS = awale.6 -+endif -+ - EXTRA_DIST = $(man_MANS) ---- awale-1.5/src/xawale.tcl -+++ awale-1.5/src/xawale.tcl -@@ -693,7 +693,7 @@ - - switch $tcl_platform(platform) { - "unix" { -- set JOUER [file join [file dirname [info script]] .. .. bin awale] -+ set JOUER "@my_bindir@/awale" - } - "macintosh" { - set JOUER [file join [file dirname [info script]] .. .. bin awale] diff --git a/games-board/camato/Manifest b/games-board/camato/Manifest index 116e7f067af9..5b1574f1e242 100644 --- a/games-board/camato/Manifest +++ b/games-board/camato/Manifest @@ -1,3 +1,5 @@ +AUX camato-0.7.4-implicit-string.patch 199 BLAKE2B e8712d428f9bd6ccf90f2764db6747d3bb4b9527f5e415771b13f7c57e5f9f8897263483dc648791ad462633efa1be8bd2b051842401314f7e4c179400e49d7c SHA512 e671f69c848f5e02d61af3e4f9f391e633691e7ca0acbf60f213bd8061121e880e083e5a2915bd7e0f7749da5f77019cde179a041786d1d4a31125e57d4bbb49 DIST camato-0_7_4.tar.gz 39395 BLAKE2B 673c312f90210e7f1882f821da2c751118052594f537d2a9c1a04ceea4d0ba948487da576b5f3b274c889db48e59dd95228ecfb6d9ec03ebf04a5fb16e13822a SHA512 b355dbaf35716f719ffe5469ec73db791b2b516dc1fc7a36efa735babcd7d16b79d6d0ceea2f1308f79ca98fe7e0a3dfd3e4b3a7a15eb64abbd144aac2c3720d -EBUILD camato-0.7.4-r1.ebuild 786 BLAKE2B c51f47625549dd5fb372b733dbc45abff477714987d9f9a964aa578ad52f91dcf45877ed70e1f2776a743d908748d567b6ea76ff88808c9a7fcbc65e56327abc SHA512 26cf1212c3e56b49a52f47c8aee620096d136626f6c53bf241790cdc843989d5735822364890c6bb5b6dd684b211171938d895b22a41764e211e081dd559050c +DIST camato.png 5531 BLAKE2B 79502efd25006ddafdea9b2e2cabdee1e4378be8304a72753dfc29254fd9bc580265ec5cbc5e8cdf8a6bb38261e96038e27839bb1f56e31c90963578045f6e1d SHA512 e50677a52a523af57c1ace9c6612d08ce4cede0e91b324934cbaa6cbe9a37dbc1f971de1d7f46bd13978c9f81d70fed143b5e167faa764a0c790faba489a5e61 +EBUILD camato-0.7.4-r2.ebuild 906 BLAKE2B b96f2a441997343d806c2448373057922cd645bb3639b2f88eabdbc7b0f446325577c9f40fb927865c04fe8422cd7446ae397e805646ebee9db3cc93ffb50932 SHA512 9d40720e8788e78e4ec6e1b5c4ae1bd293f32946271548e8333070409998de76fffe1304200917955176f403a4d0fbdcb69736968088dea97f2f03202db1a2d5 MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-board/camato/camato-0.7.4-r1.ebuild b/games-board/camato/camato-0.7.4-r2.ebuild index a927932ef7cf..7dc2af199883 100644 --- a/games-board/camato/camato-0.7.4-r1.ebuild +++ b/games-board/camato/camato-0.7.4-r2.ebuild @@ -8,7 +8,9 @@ inherit desktop ruby-ng DESCRIPTION="Map editor for the game gnocatan" HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" -SRC_URI="mirror://gentoo/${PN}-$(ver_rs 1- _).tar.gz" +SRC_URI=" + mirror://gentoo/${PN}-$(ver_rs 1- _).tar.gz + https://dev.gentoo.org/~ionen/distfiles/${PN}.png" LICENSE="GPL-2+" SLOT="0" @@ -16,6 +18,10 @@ KEYWORDS="~amd64 ~x86" ruby_add_rdepend dev-ruby/ruby-gtk2 +PATCHES=( + "${FILESDIR}"/${P}-implicit-string.patch +) + all_ruby_prepare() { # this is really single target, but ruby-single is too limited local ruby=$(ruby_get_use_implementations) @@ -32,5 +38,6 @@ all_ruby_install() { einstalldocs - make_desktop_entry ${PN} Camato applications-games + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} Camato } diff --git a/games-board/camato/files/camato-0.7.4-implicit-string.patch b/games-board/camato/files/camato-0.7.4-implicit-string.patch new file mode 100644 index 000000000000..e631b07a87a8 --- /dev/null +++ b/games-board/camato/files/camato-0.7.4-implicit-string.patch @@ -0,0 +1,8 @@ +Crashes on keyboard events otherwise. +--- a/map.rb ++++ b/map.rb +@@ -35,3 +35,3 @@ + if i < 0 or i > 255 then i = 0 end +- my_str[0] = i ++ my_str[0] = i.to_s + set_resource(my_str) diff --git a/games-board/hexxagon/Manifest b/games-board/hexxagon/Manifest index 9e8b1c3c4b16..d008f2a1da12 100644 --- a/games-board/hexxagon/Manifest +++ b/games-board/hexxagon/Manifest @@ -1,3 +1,4 @@ +AUX hexxagon-1.0.2-glibc-2.31.patch 352 BLAKE2B 0c18ce84d481d0b2662980f9dbf388ec3dfc6ffebff0fab3c43a986dc016d6b44f069ef37856411437db41977247efa6de780a36f55e199e7215b529b1cfc67c SHA512 8d6f690c612c10a07439833583f5fd58051e302c3027c2fb3022e6660358d68fab223b494a5e25a092aa600bfc08421b2e0749bf8e98fb9463ea3761815a7e5e DIST hexxagon-1.0.2.tar.bz2 1286713 BLAKE2B f6c3a7d0c0b2cd87ec896ebf6c1783561ae9a94a63c678463d2c5912a3bf380f682f136f258591051d00281fe2a92ba6add6477f50ce310b94529b9e4ca0e3e6 SHA512 8723534c4d260b1bac943609ca91ff224a120ad1f6e6362b1c515766f9ad3b339bbb9b0374cd71a482e127c47f6e1742b5189662f22e8eec07978417f5a6bda2 -EBUILD hexxagon-1.0.2-r1.ebuild 627 BLAKE2B 3aaa789aa413e34ed74b2628c0ae7dda1db75fc568733a764d907a54b13bf8555746c582cd331d7c64e7ea2effb1cf3a4584b441b93bb5a868c1e9f5f39940c7 SHA512 1065bac8ac77086f68edb9d7c5a83717eedc017c4040b1ee847ab067685585c864ab26c139200309d68d35aa5be0847bd29ad97641137ae18dc63fc6be139f76 +EBUILD hexxagon-1.0.2-r1.ebuild 637 BLAKE2B 51536371176de1f1b17f6286f0347a352ba4a9cbd5dcdaeb8d1d2fcf8289f5628d761a4ba07bb22f79be745692c3d377f5b7203e96376ef360aecbfc62b403fd SHA512 8b379a985422b30800c6bf87cef3225ca727a1282b0aa57b0b45ab7b33304d81e41ebcd77b32cf1873b0b5ff3077f9dfedd7a48f5a8d6fc36065772949f2ada5 MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-board/hexxagon/files/hexxagon-1.0.2-glibc-2.31.patch b/games-board/hexxagon/files/hexxagon-1.0.2-glibc-2.31.patch new file mode 100644 index 000000000000..037228067c90 --- /dev/null +++ b/games-board/hexxagon/files/hexxagon-1.0.2-glibc-2.31.patch @@ -0,0 +1,11 @@ +glibc-2.31 removed timezone support and it conflicts with the re-declaration. +https://bugs.gentoo.org/710712 +--- a/src/gui/microtime.h ++++ b/src/gui/microtime.h +@@ -24,6 +24,4 @@ + #include <time.h> + +-int gettimeofday(struct timeval *tv, struct timezone *tz); +-int settimeofday(const struct timeval *tv , const struct timezone *tz); + + class MicroTime diff --git a/games-board/hexxagon/hexxagon-1.0.2-r1.ebuild b/games-board/hexxagon/hexxagon-1.0.2-r1.ebuild index 467bf1e50f50..6ec2c8059c34 100644 --- a/games-board/hexxagon/hexxagon-1.0.2-r1.ebuild +++ b/games-board/hexxagon/hexxagon-1.0.2-r1.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 -inherit eutils flag-o-matic +EAPI=8 + +inherit desktop toolchain-funcs DESCRIPTION="Clone of the original DOS game" HOMEPAGE="https://www.nesqi.se/" @@ -11,23 +12,25 @@ SRC_URI="https://www.nesqi.se/download/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" -RDEPEND="dev-cpp/glibmm:2 +RDEPEND=" + dev-cpp/glibmm:2 dev-cpp/gtkmm:2.4 x11-libs/gtk+:2" -DEPEND="${RDEPEND} - virtual/pkgconfig" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" -src_prepare() { - default +PATCHES=( + "${FILESDIR}"/${P}-glibc-2.31.patch +) - append-cxxflags -std=c++11 +src_compile() { + emake AR="$(tc-getAR)" } src_install() { - emake DESTDIR="${D}" install + default + newicon images/board_N_2.xpm ${PN}.xpm make_desktop_entry ${PN} Hexxagon - dodoc README } diff --git a/games-board/megamek/Manifest b/games-board/megamek/Manifest index 6b3b85b62bdf..bf86150df24f 100644 --- a/games-board/megamek/Manifest +++ b/games-board/megamek/Manifest @@ -1,3 +1,4 @@ DIST MegaMek-v0.34.10.zip 16677286 BLAKE2B 73c4ee9e38b4c50221c40c5d0cba1c13de00e586bf2cb9432c356f5c21045c26cfa64705b303c7213f29deda369a97ea5fba397c995c138731a66152c062c5b5 SHA512 943f6ed4f4d57197092a7aa09637f60827f23181a7b8b0991907fcc62109b471ea2ce53816a79dfcad9d8da65c9514be3190e924d9bf2b17aacf84fc1fa6e037 -EBUILD megamek-0.34.10-r2.ebuild 1086 BLAKE2B 7b11b5e08496c09ecc28174aac1cebf86b787d32627fdc0bc3837aaad2fe7ac27aaec3b5ca813a7c30000652e9e3e93f8a10843b15fd3e41c098590cf5d85054 SHA512 2c84b18b4d58cdd39bf9bfff67156f7eb1678bff93c9216fb97293bf3c334faf1cca0d84487217c0866d85c3165f7999e026c3acc7021c052c3f6bf70c89b740 +DIST megamek.png 9264 BLAKE2B cdff3e992af93cfc8f31be0c4d959ff5598eb3f7be58abfae4043a3e1f324d1985fc0621540f14ff7a2e2b4bb5e22672a940494a8e7c8d3339ad8f49c4c60979 SHA512 12a19fcb4ece9ee0fc38b3af10c37b7d362df9a41403d86dd1cfd8fb40a7b06784c71b5b160177b72d7aba048b78c4482f5417406d4add7feb47d13078bc79cf +EBUILD megamek-0.34.10-r2.ebuild 1151 BLAKE2B 508d7f5187c78417762f1bed0cc31c79379544a6c8f8e7447c4b9b29e4edc703b0aedaa7bea9380b282fa2e6ecbfe078b661a1d453c2bb64a72c71152bd568f9 SHA512 333fe26bc175d5dc3655ab7e65dbbbb4dfa7750905579c09d804f030afc0ee83aa37e46e65526060009f6ae6d5115febfbc3d4f25fd406e937b9f9bde3a3b44d MISC metadata.xml 385 BLAKE2B 97f3040dbc9c0db34e70a0da22608bfdbeb3a4ea160e642524a08332f799a5f190a3a9f3b661066ef70fae07bbe9c9755d16631a87dcdc79493d186d4e55d243 SHA512 4aa15a91f2d1c31724a23204a09f91f3fd4bde2fa69fc890f002d894830fd5837c617517fad8abc84ed9a45be85a841582395df530a121216e5d7b95664bccca diff --git a/games-board/megamek/megamek-0.34.10-r2.ebuild b/games-board/megamek/megamek-0.34.10-r2.ebuild index a1e76585011b..b7a7f31f4cf9 100644 --- a/games-board/megamek/megamek-0.34.10-r2.ebuild +++ b/games-board/megamek/megamek-0.34.10-r2.ebuild @@ -7,7 +7,9 @@ inherit desktop edos2unix java-pkg-2 java-ant-2 DESCRIPTION="Unofficial online version of the Classic BattleTech board game" HOMEPAGE="https://megamek.org/" -SRC_URI="mirror://sourceforge/${PN}/MegaMek-v${PV}.zip" +SRC_URI=" + mirror://sourceforge/${PN}/MegaMek-v${PV}.zip + https://dev.gentoo.org/~ionen/distfiles/${PN}.png" S="${WORKDIR}" LICENSE="GPL-2+" @@ -43,5 +45,6 @@ src_install() { dodoc HACKING readme.txt - make_desktop_entry ${PN} MegaMek applications-games + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} MegaMek } diff --git a/games-board/scid/Manifest b/games-board/scid/Manifest index 7e527bd4c315..682bce4159d5 100644 --- a/games-board/scid/Manifest +++ b/games-board/scid/Manifest @@ -1,9 +1,14 @@ AUX scid-4.6.2-gentoo.patch 4508 BLAKE2B ea08a9b215e7e80a33912db552cf3d5e79c8c252f6c9dc557d997b9df43f4dffcd9e74aa06a9a7eca064ec1304b66b3d9495ef152cebb0bd30a507641b321006 SHA512 52a32a6250b293a0fe145ebd45cf6b4d283f3d883cffa278e9599e36a57c129e0b6ccc2a637f200b5fa1e4b8c8a7956fa63a60ceb5d83ba877ca54920346de83 -AUX scid-4.6.2-pgnfix-python3.patch 3475 BLAKE2B 45da2f9c0c3f4d7db045d00e0bb9028b383ae4067c2ce5e104bb9a54d9e6831e90dd0015a40a87ee481f37a039ad7ccca1d71ad91f6413a9f962157bc045d8c4 SHA512 620f9610675236c688b818274bbb2f1b5e6dc7ed7e984721e84318a6fc35ce921dce3c3c8e76b53b89a04d0e6cfa6b46035f6de64ff3d7828e2e1606da1b90e1 +AUX scid-4.6.2-pgnfix-python3.patch 3517 BLAKE2B a2745f830f21c29d962cdf14d0b94a097352f36ad25585a245c5e0af001f4e4c9d302ba4d2e2008e0dad2270099e78b391caf493fe72d5f92d36c1f2d469ba7c SHA512 1e1f7c868945d36067de3eeb59f016623bb76ee0c593d4b5b3d81c3f65c0facadd3c018bc245f44079564ad797c1b4fa48c533112aa12adfc6c6f0ba1998f6e7 +AUX scid-4.7.0-system-gtest.patch 720 BLAKE2B 0128d0bbb8df8de3338d7f193a30134d84eba3e6ce79eca73976d422374c2b33bdd4b932a957b3fcb0ce1f5e38655e35a0be95958c861a12291e82a708c8f666 SHA512 96811496bdc258596a81765f1798bf096f9fd2c604bd1fb03d9f3790ffd305598bf46e12ac3a41bc3d32f1b57d82e728a79c72c9949929f2ca00ca8fa3707bdb +AUX scid-4.7.0-tcl-start-path.patch 217 BLAKE2B 971491ff23cf08b251be358acd97712c3c1511b0805da185ed00c848b1b4b813e6227e0b71e1a57d4c07a19598f7010e0ef9bf0ad5507ccf54302a5dfca5318b SHA512 67880181a80b6efce8a5c4e5deb84964ada2cbb8016e805f1a4e24d73b125a592ce3d8446714d4d26f6200dba42353f7e1deeba90f1aa468ca670d00cc294fc5 DIST photos.zip 1007488 BLAKE2B 8b0f9b0402d9102bda4cfe1333cafdf048592004b2b8cb7f8f085eacc10b6b89811afd39c3d849a4f6288ad63145fc760e60bcd70867ae339459a451c537cbf3 SHA512 c04fc810b457d4dbd9a9cfaac90feaa8c32a2abee05e28a79042ae81cb01e8580e2a1cf0abeff230ec2928da883f862b8901d679cb1448fd9ca0923323fbddd6 DIST ratings.zip 969347 BLAKE2B 47d050f7c0e00e96aa0371db7f328e699cd0e34eafa3652664f00df7fe08b98adc4197c5235303d6df2c5bcf7ea568c753d23ac5fffe3616de6db9dae21a31a3 SHA512 9b2a7280a7e72e2b464cc3da6be82ec9825b11d3c7e2219ab03a711c69f185f7d954eb3acdd441bff210e9296613df79a7e147a2ccbb4ed37b50af762abbd243 DIST scid-4.6.2.zip 9768139 BLAKE2B 8e9baf2fe67c3566111f23ead005cba34d32f986afbaaed2117dc46aab65190dd8675df721c6fff3e7c5f338a07d7b787265dee63480141258625f6b6f54ec6d SHA512 d33f730857362dfefe55aaf395b0fc42087e190743ed63072128509fc6ac33791a4c2f67f89f03ec39170660fc6b7a6804fea084b383cf97cbb21661ce0569b2 +DIST scid-4.7.0_x64_linux.tar.gz 129771457 BLAKE2B 65ad7b58685a498954ebcf5216287216e2d2805bf0379784195b096c9eb04b333a8bbfb6c020c321b66c63d7bad2cfba724750b4d26f8172f620047219f98a73 SHA512 c9fb6f19741d60fe4952c643240f7e2eaa476eab35379c0a053b35217fe7a4b9ecfbc68edc45df4c9a2354babe8e0ddd2211db014d5396ce9bbb59db531c1179 +DIST scid-code-4.7.0.zip 15782104 BLAKE2B f1b927a1b23478d2e27a098e2ec99acb9a2061c373686cfcfa14ac219a1dce47468c3e46b3fe786655792177c86180bbe8e1dc91927b3ad2a80ea9b0bdb17fd3 SHA512 3c43fb8877da4a8dda9c99b1b856fe3f3840c7013041d53c31c8411ecf2e9ccbaf3b7c098e35cb23f5d0d7cac6b7514ca3bfb719fcbc111f5e1ef07f765f2708 DIST scidlet40k.zip 242632 BLAKE2B a16c5a3c04f721a40221db33f9ff7192dba724203ff81a61286903c2f4ab8a33b442503882550a7a59ab0a0e6d735a74b3f34bf9dd89f9677f2b7a8b8082d398 SHA512 e8cb4ca276ca94378f224fad972b0659f3e8159668fa395dcae4be1de6cdd9d29082fdddba393bbea6c909bab4f388042ea05c7dff41edf850d731bc7479850d DIST spelling.zip 3147998 BLAKE2B 40b33e0c5fab487247af13b0e3fa22d91b17cfb1dbc7d3fafd080db306700e684b30bf46a7222dd7ae16dc1407239973be8de1ee619b31cbcb373684a7f1487c SHA512 394a8835f23336b6f4bebe4e33ab9f64ffa505e9d9bb984de82396e671df0b57b088aab28c5cf648c1a11bc28370b431cb6db54765ac4ab6056a707276ba8f42 EBUILD scid-4.6.2-r1.ebuild 2034 BLAKE2B 296bf9cf1ffbff498384d6180fee8044f52264e819f50f7f123cde6f370d7cd5888f99b25b11f02f0dc338d7c006f7957bb51458bfa644c3f287a521c2bc0ec7 SHA512 3f378785327d18b48f89df66564d89854a15240740055f91eaa77b7541a587ef5b8826eaffb505be64d39aff80dbf598d74ee5dc89f099a0effea65d5c581792 -MISC metadata.xml 327 BLAKE2B 26037c210c23b4fc0936c22b8ae22f33622b2b19a183bcbb69de69c4ed2b02aec5121198ba555cd7049421ae9a0e9824ed1115725bc0e4c9deff9639f88fcd6b SHA512 b3551509e319eba4e682673f363044c3f3b7973299618405e6aa29f44a86527e0f397a6baaface9d95806da7ec2c361c152729b753741694fb9c13760433e5c1 +EBUILD scid-4.7.0.ebuild 2329 BLAKE2B be62e4b5e217f7d29f70a4ca7834fcd22963072b28cdb753473a90b53a97bee7e480332156cbd2d37192c4d98d574cf5c38e31c703dd99686ee8f0d78a326bbc SHA512 47041df9cbc4b6578b447ebb830ec331c6183257dd74886980ac2dcd3de5760d2ea035bf51fe3e260ef665cafa82589cf6408bf3f7f9b9cca374a81c32609732 +MISC metadata.xml 495 BLAKE2B b95f4fda2aa1a4eac092d783da03fc25100f0acaadbca1fd2d86bbf0c5f28e863918ddaeb79df7fc07a9dcf9f05eebeacdc981b05933cc4fa22a52aee927f673 SHA512 309c0ff70e6ad565e673658ede83e0d36888d9ea25c9cf35385917b9b6c1fb9443902b75e26d585f8af8d57a5d36892e429ce19a0348fbc5645cc38a6a520a9b diff --git a/games-board/scid/files/scid-4.6.2-pgnfix-python3.patch b/games-board/scid/files/scid-4.6.2-pgnfix-python3.patch index 79b64e5ef6f3..264849c0eb30 100644 --- a/games-board/scid/files/scid-4.6.2-pgnfix-python3.patch +++ b/games-board/scid/files/scid-4.6.2-pgnfix-python3.patch @@ -1,3 +1,4 @@ +https://sourceforge.net/p/scid/patches/8/ --- a/scripts/pgnfix.py +++ b/scripts/pgnfix.py @@ -12,7 +12,6 @@ diff --git a/games-board/scid/files/scid-4.7.0-system-gtest.patch b/games-board/scid/files/scid-4.7.0-system-gtest.patch new file mode 100644 index 000000000000..4e4a38cdc934 --- /dev/null +++ b/games-board/scid/files/scid-4.7.0-system-gtest.patch @@ -0,0 +1,16 @@ +--- a/gtest/CMakeLists.txt ++++ b/gtest/CMakeLists.txt +@@ -19,8 +19,3 @@ + # googletest +-if(NOT IS_DIRECTORY "${CMAKE_BINARY_DIR}/googletest") +- find_package(Git) +- execute_process(COMMAND ${GIT_EXECUTABLE} clone https://github.com/google/googletest.git) +-endif() +-set(gtest_force_shared_crt ON CACHE BOOL "Always use msvcrt.dll") +-add_subdirectory(${CMAKE_BINARY_DIR}/googletest ${CMAKE_BINARY_DIR}/googletest/Build EXCLUDE_FROM_ALL) ++find_package(GTest REQUIRED) + +@@ -48,2 +43,2 @@ + target_compile_definitions(scid_tests PRIVATE -DSCID_TESTDIR=\"${CMAKE_CURRENT_LIST_DIR}/\") +-target_link_libraries(scid_tests PRIVATE scid_base gtest_main) ++target_link_libraries(scid_tests PRIVATE scid_base ${GTEST_BOTH_LIBRARIES}) diff --git a/games-board/scid/files/scid-4.7.0-tcl-start-path.patch b/games-board/scid/files/scid-4.7.0-tcl-start-path.patch new file mode 100644 index 000000000000..361700d7bc84 --- /dev/null +++ b/games-board/scid/files/scid-4.7.0-tcl-start-path.patch @@ -0,0 +1,7 @@ +--- a/src/ui_tcltk.h ++++ b/src/ui_tcltk.h +@@ -59,3 +59,3 @@ + else dirname += 1; +- strcpy (dirname, "tcl/start.tcl"); ++ strcpy (dirname, "../share/scid/tcl/start.tcl"); + if (0 != Tcl_Access(sourceFileName, 4)) { diff --git a/games-board/scid/metadata.xml b/games-board/scid/metadata.xml index 2e8ed33ebd1b..2d032ffeb5ec 100644 --- a/games-board/scid/metadata.xml +++ b/games-board/scid/metadata.xml @@ -5,6 +5,10 @@ <email>games@gentoo.org</email> <name>Gentoo Games Project</name> </maintainer> + <use> + <flag name="photos">Install collection of player photos (large)</flag> + <flag name="scripts">Install additional python and tcl utility scripts</flag> + </use> <upstream> <remote-id type="sourceforge">scid</remote-id> </upstream> diff --git a/games-board/scid/scid-4.7.0.ebuild b/games-board/scid/scid-4.7.0.ebuild new file mode 100644 index 000000000000..ab2ebaf38302 --- /dev/null +++ b/games-board/scid/scid-4.7.0.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit cmake desktop optfeature python-single-r1 + +DESCRIPTION="Shane's Chess Information Database" +HOMEPAGE="http://scid.sourceforge.net/" +SRC_URI=" + mirror://sourceforge/scid/${PN}-code-${PV}.zip + mirror://sourceforge/scid/${P}_x64_linux.tar.gz" +S="${WORKDIR}/${PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="photos scripts test" +REQUIRED_USE="scripts? ( ${PYTHON_REQUIRED_USE} )" +RESTRICT="!test? ( test )" + +COMMON_DEPEND=" + dev-lang/tcl:= + dev-lang/tk" +RDEPEND=" + ${COMMON_DEPEND} + dev-tcltk/tkimg + scripts? ( ${PYTHON_DEPS} )" +DEPEND=" + ${COMMON_DEPEND} + test? ( dev-cpp/gtest )" +BDEPEND=" + app-arch/unzip + scripts? ( ${PYTHON_DEPS} )" + +PATCHES=( + "${FILESDIR}"/${PN}-4.6.2-pgnfix-python3.patch + "${FILESDIR}"/${P}-system-gtest.patch + "${FILESDIR}"/${P}-tcl-start-path.patch +) + +HTML_DOCS=( help/. ) + +pkg_setup() { + use scripts && python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + + if use scripts; then + python_fix_shebang scripts/pgnfix.py + + # cmake build doesn't use "tkscid" anymore but scripts still do + sed -i s/tkscid/scid/ scripts/*.tcl || die + fi +} + +src_configure() { + local mycmakeargs=( + -DBUILD_SHARED_LIBS=off + -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr/share + -DGTEST=$(usex test) + ) + + cmake_src_configure +} + +src_test() { + "${BUILD_DIR}"/gtest/scid_tests || die +} + +src_install() { + cmake_src_install + + dobin "${BUILD_DIR}"/{phalanx-scid,scid,scidlet} + + if use scripts; then + local script + # install same set of scripts as pre-cmake + for script in pgnfix.py {sc_{epgn,spell,eco,import},scidpgn,spliteco,spf2spi}.tcl sc_remote.tk; do + newbin scripts/${script} ${script%.*} + done + fi + + insinto /usr/share/scid + doins scid{,_es,_fr}.eco "${WORKDIR}"/${P}/spelling.ssp + use photos && doins -r "${WORKDIR}"/${P}/photos + + newicon resources/svg/scid_app.svg scid.svg + make_desktop_entry scid Scid + + # delete re-located files + rm -r "${ED}"/usr/share/{bin,scid/{scid,scripts}} || die +} + +pkg_postinst() { + optfeature "speech support" dev-tcltk/snack + + if [[ ${REPLACING_VERSIONS} ]] && ver_test ${REPLACING_VERSIONS} -lt 4.7; then + elog + elog "Warning: this version uses ~/.scid4.7 and is incompatible with older ~/.scid" + elog + fi +} diff --git a/games-board/stockfish/Manifest b/games-board/stockfish/Manifest index ea1395656ec1..5453fb76c12a 100644 --- a/games-board/stockfish/Manifest +++ b/games-board/stockfish/Manifest @@ -1,6 +1,9 @@ DIST stockfish-10-src.zip 174377 BLAKE2B 58142b16f59f15773c8811d6e10588dbc680c94cd504d26f4ca285dbe632d845ede06571e501a4e2b77adbb9b00d91978236ff179a46a73dc9a03cfa1ae3490c SHA512 959c4f3c497ba3108884dabc38de824f11781ae57b4ab5fdf25daf9a7fc0326e663adb1c081b8c8d57a7bf5f2e941369502a50a0c93135a001c6bd1af360d0f8 DIST stockfish-13-nn-62ef826d1a6d.nnue 21022697 BLAKE2B 013396fec72e14dfb90ca308bdcbaf98f27b29feb03cb2c855f521dc33d0787de51812cb2a52e4aa94622120fc89a5f2302fd6296a4fb1db33e0de57156a41c3 SHA512 25a0a1b5c440fcfaa8ee122391fbb075e4b4e6bdacae816a2897bb346c0d5c459ae464fc7680414e87eadf2a5a00565d4f3ac2c559fea4bdddd1e4a38874fba7 DIST stockfish-13.tar.gz 181226 BLAKE2B ab6f2afccce2b4767c69d07c18aa611cb71388aae9b27e8a6c95b61db4a27c18b0e7a21aa30e10b4b56d018c1a4146dcea4896c4d68d7a9f297fa0758739ce9c SHA512 5ee6581b8324ed32f02ed0f1ea5df311635203e5f1806d00f9819ad076ef4082481f8ecebbb531154cbb120bb2b396c738c3ef2e2e6ee0fd6a5bd6ff88192706 +DIST stockfish-14-nn-3475407dc199.nnue 47721371 BLAKE2B e0d21fb2c282bb6c07a027474ba4c55d4ba993bd7e203a13eda034266c0d7004b9d7a5f6e68ce3209e0e9c71f52692a5e5124d93d10f2dd2ed034be389901023 SHA512 11774bd70a38a9df2b314ab19631a45139a75fcd7cf81fcc3bf5568505292d3f66bad4a2d5eff7f51e2f091995cc76107c6fb43fcfd6e0f8a6ee3ff6e59d72ab +DIST stockfish-14.tar.gz 183879 BLAKE2B fd2fbcd37f90baf6b81432ebee7aa5b949c05253e04ec361fa502687de597e90aa6c85a90a5fd1baea52da423264d8e14853303564c3bc6f37bc98de890c5d3c SHA512 90025c0559d09f950732c051362711bed7f22e5495daeadf1ac8d7b1be9ede7e9aff80ca8755fccd95bdb48e2b2ea4b4355e02cd9112ac8e5eec457774289f34 EBUILD stockfish-10.ebuild 1790 BLAKE2B 8806e967bd8b4d781ff920b046920d5961274b16ffd7999b9b63366b947101e35a9c45a27efc1534b2d2a3089dd9bb14223ffd7070bec9577a64acd71a970d9f SHA512 18d16399e26d58f112eba0f6527875b20f7dfee26074feb5fbeb211c5b51f621bcc8272ae9a4bef6ac960304c976b740e7dfff6d81375fe4c4552bb1b28b1082 EBUILD stockfish-13.ebuild 2044 BLAKE2B 5119cebd2d24f92d254493611404f4f08a0a048b95e6d6be97a553ba6f37ef5a3e6e05dd948ffefa3fe70ed494ea21b29161c25258653626dfb9ae855dcb3c57 SHA512 8f740994b7e750a0a345f25abeec1a16f08f5924c13d6db301abe49dfb884b1023115480e35df5256c9cf130ca3d483da19f3abad7e478424022d842d29a60ff +EBUILD stockfish-14.ebuild 2046 BLAKE2B 0aa1da8f94640143e911432492df4827a9139993906074ca475f279d5bae65e109268b9f64ebfd0fb41170e146b701d368b4ac57ff09d3bb5ad568604d3ca2d3 SHA512 a764f1083fb50402f752e5e4a94f596b321dfc52737719fd60b57f7fa17ad6729e7d05fb65e85792c3886354cf3e0d4a51546ba3df3a6cafa973561d79283dc9 MISC metadata.xml 479 BLAKE2B dcf9350e25140219971b3419c7bff3aad6a437d338eca3c053fe984d3d4a94789838ffdac4a3eb9934b1ee085a0451c927bd4a50c7802becfab29c805bf52afa SHA512 5275ae82721084b73c142e8da9334b7e397563dcde764b001a15392707ed572dae65e8ce18f7de8dbddc85b785786780900d1b2ac309927ae14d532ed07fcd64 diff --git a/games-board/stockfish/stockfish-14.ebuild b/games-board/stockfish/stockfish-14.ebuild new file mode 100644 index 000000000000..b363cf44903e --- /dev/null +++ b/games-board/stockfish/stockfish-14.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +DESCRIPTION="Free UCI chess engine, claimed to be the strongest in the world" +HOMEPAGE="https://stockfishchess.org/" + +NNUE_FILE="nn-3475407dc199.nnue" + +SRC_URI="https://github.com/official-stockfish/Stockfish/archive/sf_${PV}.tar.gz -> ${P}.tar.gz + https://tests.stockfishchess.org/api/nn/${NNUE_FILE} -> ${P}-${NNUE_FILE}" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cpu_flags_arm_v7 cpu_flags_x86_avx2 cpu_flags_x86_popcnt cpu_flags_x86_sse debug + general-32 general-64 +optimize" + +DEPEND="|| ( app-arch/unzip app-arch/zip )" +RDEPEND="" + +S="${WORKDIR}/Stockfish-sf_${PV}/src" + +src_prepare() { + default + + cp "${DISTDIR}"/${P}-${NNUE_FILE} ${NNUE_FILE} || die "copying the nnue file failed" + + # prevent pre-stripping + sed -e 's:-strip $(BINDIR)/$(EXE)::' -i Makefile \ + || die 'failed to disable stripping in the Makefile' +} + +src_compile() { + local my_arch + + # generic unoptimized first + use general-32 && my_arch=general-32 + use general-64 && my_arch=general-64 + + # x86 + use x86 && my_arch=x86-32-old + use cpu_flags_x86_sse && my_arch=x86-32 + + # amd64 + use amd64 && my_arch=x86-64 + use cpu_flags_x86_popcnt && my_arch=x86-64-modern + + # both bmi2 and avx2 are part of hni (haswell new instructions) + use cpu_flags_x86_avx2 && my_arch=x86-64-bmi2 + + # other architectures + use cpu_flags_arm_v7 && my_arch=armv7 + use ppc && my_arch=ppc + use ppc64 && my_arch=ppc64 + + # Skip the "build" target and use "all" instead to avoid the config + # sanity check (which would throw a fit about our compiler). There's + # a nice hack in the Makefile that overrides the value of CXX with + # COMPILER to support Travis CI and we abuse it to make sure that we + # build with our compiler of choice. + emake all ARCH="${my_arch}" \ + COMP=$(tc-getCXX) \ + COMPILER=$(tc-getCXX) \ + debug=$(usex debug "yes" "no") \ + optimize=$(usex optimize "yes" "no") +} + +src_install() { + dobin "${PN}" + dodoc ../AUTHORS ../README.md +} |