Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
merged:

  flora: 0b285eae7de8b8c0a144d0f180606ffdd0c35392
  faustoo: e0f9e62fcbf7fdbfc35c12c3465cd9a87ad15605
  fusion809: abfa9346fe7b14406594c7fc70719cdeca70143f
  gentoo-staging: 4401f99b5f67539c974918d8600af942e8f3197c
  kit-fixups: 2e5ab5476d1e15efb6c018b56bc0df90b669e921
  • Loading branch information
danielrobbins committed Apr 29, 2018
1 parent 61f1cc3 commit a6f8cb7
Show file tree
Hide file tree
Showing 114 changed files with 1,103 additions and 965 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit flag-o-matic toolchain-funcs eutils games
EAPI=6
inherit flag-o-matic toolchain-funcs

DESCRIPTION="Bob Hyatt's strong chess engine"
HOMEPAGE="http://www.craftychess.com/"
Expand All @@ -21,14 +21,15 @@ DEPEND="${RDEPEND}
app-arch/unzip"

src_prepare() {
default
sed -i \
-e '/-o crafty/s/CC/CXX/' \
-e 's:CXFLAGS:CXXFLAGS:g' \
-e 's:-j ::g' \
Makefile || die
sed -i \
-e "s:\"crafty.hlp\":\"${GAMES_DATADIR}/${PN}/crafty.hlp\":" option.c || die
epatch "${FILESDIR}"/${P}-numcpus.patch
-e "s:\"crafty.hlp\":\"/usr/share/${PN}/crafty.hlp\":" option.c || die
eapply "${FILESDIR}"/${P}-numcpus.patch
}

src_compile() {
Expand All @@ -37,7 +38,7 @@ src_compile() {
if ! use no-opts ; then
if [[ $(tc-getCC) = icc ]] ; then
makeopts="${makeopts} asm=X86.o"
append-flags -D_REENTRANT -tpp6 \
append-cppflags -D_REENTRANT -tpp6 \
-DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST \
-DSMP -DCPUS=4 -DCLONE -DDGT
Expand All @@ -46,13 +47,13 @@ src_compile() {
else
if [[ "${CHOST}" == "i686-pc-linux-gnu" ]] \
|| [[ "${CHOST}" == "i586-pc-linux-gnu" ]] ; then
append-flags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
append-cppflags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B \
-DFAST -DSMP -DCPUS=4 -DCLONE -DDGT
append-flags -fno-gcse \
-fomit-frame-pointer -mpreferred-stack-boundary=2
elif [[ "${CHOST}" == "x86_64-pc-linux-gnu" ]] ; then
append-flags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
append-cppflags -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B \
-DFAST -DSMP -DCPUS=4 -DCLONE -DDGT
append-flags -fomit-frame-pointer
Expand All @@ -61,25 +62,13 @@ src_compile() {
fi
fi
fi
append-flags -DPOSIX -DSKILL
append-cppflags -DPOSIX -DSKILL
emake ${makeopts} crafty-make LDFLAGS="${LDFLAGS} -pthread"
}

src_install() {
dogamesbin crafty
insinto "${GAMES_DATADIR}/${PN}"
dobin crafty
insinto "/usr/share/${PN}"
doins crafty.hlp
dodoc "${DISTDIR}"/crafty.doc.ascii
prepgamesdirs
}

pkg_postinst() {
games_pkg_postinst
elog
elog "Note: No books or tablebases have been installed. If you want them, just"
elog " download them from ${HOMEPAGE}."
elog " You will find documentation there too. In most cases you take now "
elog " your xboard compatible application, (xboard, eboard, knights) and "
elog " just play chess against computer opponent. Have fun."
elog
}
4 changes: 2 additions & 2 deletions games-board/fruit/files/fruit-2.1-gentoo.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- option.cpp.old 2007-02-07 23:32:25.000000000 +0100
+++ option.cpp 2007-02-07 23:32:51.000000000 +0100
--- 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 },

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit eutils versionator games
EAPI=6
inherit versionator

MY_PV="$(replace_all_version_separators '')"
MY_P="${PN}_${MY_PV}_linux"

MY_PV=$(replace_all_version_separators '')
MY_P=${PN}_${MY_PV}_linux
DESCRIPTION="UCI-only chess engine"
HOMEPAGE="http://arctrix.com/nas/fruit/"
SRC_URI="http://arctrix.com/nas/${PN}/${MY_P}.zip"
Expand All @@ -18,12 +19,13 @@ IUSE=""
RDEPEND=""
DEPEND="app-arch/unzip"

S=${WORKDIR}/${MY_P}/src
S="${WORKDIR}/${MY_P}/src"

src_prepare() {
epatch "${FILESDIR}/${P}"-gentoo.patch
default
eapply "${FILESDIR}/${P}"-gentoo.patch
sed -i \
-e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
-e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
option.cpp || die
sed -i \
-e '/^CXX/d' \
Expand All @@ -32,15 +34,8 @@ src_prepare() {
}

src_install() {
dogamesbin ${PN}
insinto "${GAMES_DATADIR}/${PN}"
dobin ${PN}
insinto "/usr/share/${PN}"
doins ../book_small.bin
dodoc ../readme.txt ../technical_10.txt
prepgamesdirs
}

pkg_postinst() {
games_pkg_postinst
elog "To use this engine you need to install a UCI chess GUI"
elog "e.g. games-board/glchess"
}
60 changes: 60 additions & 0 deletions games-board/gnugo/files/gnugo-3.9.1-format-security.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
diff --git a/patterns/dfa.c b/patterns/dfa.c
index 3689616..2d2f8c6 100644
--- a/patterns/dfa.c
+++ b/patterns/dfa.c
@@ -279,7 +279,7 @@ resize_dfa(dfa_t *pdfa, int max_states, int max_indexes)
* dump a dfa (debugging purpose).
*/

-static const char *line =
+static const char line[] =
"----------------------------------------------------\n";

void
diff --git a/patterns/mkpat.c b/patterns/mkpat.c
index 70a6964..5f1f1dd 100644
--- a/patterns/mkpat.c
+++ b/patterns/mkpat.c
@@ -1419,7 +1419,7 @@ generate_autohelper_code(int funcno, int number_of_params, int *labels)
/* A common case. Just use the labels as parameters. */
switch (number_of_params) {
case 0:
- code_pos += sprintf(code_pos, autohelper_functions[funcno].code);
+ code_pos += sprintf(code_pos, "%s", autohelper_functions[funcno].code);
break;
case 1:
code_pos += sprintf(code_pos, autohelper_functions[funcno].code,
diff --git a/patterns/uncompress_fuseki.c b/patterns/uncompress_fuseki.c
index 3290b05..c67a733 100644
--- a/patterns/uncompress_fuseki.c
+++ b/patterns/uncompress_fuseki.c
@@ -224,9 +224,9 @@ main(int argc, char *argv[])

assert(boardsize > 0);
if (boardsize > MAX_BOARD) {
- printf(output_strings[PREAMBLE]);
+ printf("%s", output_strings[PREAMBLE]);
printf(output_strings[HEADER], boardsize);
- printf(output_strings[FOOTER]);
+ printf("%s", output_strings[FOOTER]);
return EXIT_SUCCESS;
}

@@ -251,7 +251,7 @@ main(int argc, char *argv[])
board[k][boardsize + 1] = '|';
}

- printf(output_strings[PREAMBLE]);
+ printf("%s", output_strings[PREAMBLE]);
printf(output_strings[HEADER], boardsize);


@@ -308,7 +308,7 @@ main(int argc, char *argv[])
if (mode == C_OUTPUT)
write_pattern_c_code(NULL, board1d, NO_MOVE, 0, boardsize, -1);

- printf(output_strings[FOOTER]);
+ printf("%s", output_strings[FOOTER]);

return EXIT_SUCCESS;
}
30 changes: 30 additions & 0 deletions games-board/gnugo/gnugo-3.9.1-r2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="A Go-playing program"
HOMEPAGE="https://www.gnu.org/software/gnugo/devel.html"
SRC_URI="mirror://gentoo/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="readline"

RDEPEND="
readline? ( sys-libs/readline:0= )
>=sys-libs/ncurses-5.2-r3:0=
"
DEPEND="${RDEPEND}"

PATCHES=(
"${FILESDIR}"/${P}-invalid-move.patch
"${FILESDIR}"/${P}-format-security.patch
)

src_configure() {
econf \
$(use_with readline) \
--enable-cache-size=32
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit toolchain-funcs games
EAPI=6
inherit toolchain-funcs

MY_PN="Phalanx"
MY_PV="XXII"
MY_P=${MY_PN}-${MY_PV}
MY_P="${MY_PN}-${MY_PV}"

DESCRIPTION="A chess engine suitable for beginner and intermediate players"
HOMEPAGE="http://phalanx.sourceforge.net/"
Expand All @@ -17,14 +17,14 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

S=${WORKDIR}/${MY_P}
S="${WORKDIR}/${MY_P}"

src_compile() {
# configure is not used in the project; confs are in Makefile,
# and here we override them:
local define="-DGNUFUN" myvar
for myvar in "PBOOK" "SBOOK" "LEARN" ; do
define="${define} -D${myvar}_DIR=\"\\\"${GAMES_DATADIR}/${PN}\\\"\""
define="${define} -D${myvar}_DIR=\"\\\"/usr/share/${PN}\\\"\""
done
emake \
DEFINES="${define}" \
Expand All @@ -34,9 +34,8 @@ src_compile() {
}

src_install() {
dogamesbin phalanx
insinto "${GAMES_DATADIR}"/${PN}
dobin phalanx
insinto /usr/share/${PN}
doins pbook.phalanx sbook.phalanx learn.phalanx
dodoc HISTORY README
prepgamesdirs
einstalldocs
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit games
EAPI=6

DESCRIPTION="Console based chess interface"
HOMEPAGE="http://sjeng.sourceforge.net/"
Expand All @@ -13,12 +12,7 @@ KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE=""

DEPEND="sys-libs/gdbm"
RDEPEND=${DEPEND}
RDEPEND="sys-libs/gdbm:0="
DEPEND=${RDEPEND}

S=${WORKDIR}/Sjeng-Free-${PV}

src_install () {
default
prepgamesdirs
}
S="${WORKDIR}/Sjeng-Free-${PV}"
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit eutils gnome2-utils games
EAPI=6
inherit desktop epatch gnome2-utils

MY_P="${P%%_*}"
MY_P="${MY_P/-/_}"
DEB_V="${P##*_p}"

DESCRIPTION="Spider Solitaire"
HOMEPAGE="http://packages.debian.org/stable/games/spider"
HOMEPAGE="https://packages.debian.org/stable/games/spider"
SRC_URI="mirror://debian/pool/main/s/spider/${MY_P}.orig.tar.gz
mirror://debian/pool/main/s/spider/${MY_P}-${DEB_V}.diff.gz"

Expand All @@ -18,17 +18,21 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="athena"

RDEPEND="x11-libs/libXext
RDEPEND="
x11-libs/libXext
athena? ( x11-libs/libXaw )
x11-libs/libXmu
x11-libs/libXt"
x11-libs/libXt
"
DEPEND="${RDEPEND}
x11-misc/imake
x11-proto/xproto"
x11-proto/xproto
"

S=${WORKDIR}/${MY_P/_/-}.orig
S="${WORKDIR}/${MY_P/_/-}.orig"

src_prepare() {
default
epatch "${WORKDIR}"/${MY_P}-${DEB_V}.diff
sed -i \
-e '/MKDIRHIER/s:/X11::' \
Expand All @@ -54,26 +58,23 @@ src_configure() {
src_install() {
emake \
DESTDIR="${D}" \
BINDIR="${GAMES_BINDIR}" \
BINDIR="/usr/bin" \
MANSUFFIX="6" \
MANDIR="/usr/share/man/man6" \
HELPDIR="/usr/share/doc/${PF}" \
install install.doc install.man

dodoc README* ChangeLog
einstalldocs
newicon icons/Spider.png ${PN}.png
newicon -s 32 icons/Spider32x32.png ${PN}.png
make_desktop_entry spider Spider
prepgamesdirs
}

pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}

pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}

Expand Down
2 changes: 1 addition & 1 deletion games-board/xmille/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DIST xmille_2.0-12.diff.gz 6041 BLAKE2B 3c901cccdacf7306420c5de98618ea0468a96ef42a61d5d9f0cbb4e655269c1eb38fab8acfc77830978ea90ed7c424c9236efa16b70f33ef53a36076a6dd6e9f SHA512 8f8a71ce6f4359b4d8fbecd0e6149783abc4ded07da485c91c67784fd6c4988d074ad9bda7a8a47689ffe379dd8d20f9968ef7e6998ed22b735c51a2fae5828d
DIST xmille_2.0-13.diff.gz 6276 BLAKE2B bf136bc25d3aea56b671b6ff475717d162f0620a1c8c07d3b96b9d7a4b9b9f3ccae1039fc24827048686c631312c36e450a8bd989c32e9d26ab1c594ffc317d9 SHA512 d9e4448942738a105255d9aa77e2e66cb9edc8b35fd8278d1c810dbdca4a5b8a4916bf48c8d6a16e282db0c0fa058a0b281c168976529edeedb6caf53af7cd15
DIST xmille_2.0.orig.tar.gz 68178 BLAKE2B bd6ab40a8868b90bfc1b045a2be797c8eab49e676b695f521ceaf8646de9c01a07806c0ce029e4959a339e2ab48668635abd5b842c90e33c2cb5fd359eb971b8 SHA512 028740785dfc13b4088810855358b9dab75fbb79221dd4218ef0c19550c2180fe92e553d0a474bf45091b4008988e1a093a6d5bac99fe1ccafcaec3429cd0e8b
Loading

0 comments on commit a6f8cb7

Please sign in to comment.