summaryrefslogtreecommitdiff
path: root/app-emacs/chess
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-emacs/chess
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emacs/chess')
-rw-r--r--app-emacs/chess/Manifest14
-rw-r--r--app-emacs/chess/chess-2.0.4.ebuild41
-rw-r--r--app-emacs/chess/chess-2.0_beta6-r2.ebuild40
-rw-r--r--app-emacs/chess/files/2.0_beta6-chess-common-handler-gentoo.patch18
-rw-r--r--app-emacs/chess/files/2.0_beta6-chess-pos-move-gentoo.patch12
-rw-r--r--app-emacs/chess/files/2.0_beta6-texinfo-5.patch14
-rw-r--r--app-emacs/chess/files/50chess-gentoo-2.0.4.el36
-rw-r--r--app-emacs/chess/files/50chess-gentoo.el33
-rw-r--r--app-emacs/chess/metadata.xml29
9 files changed, 237 insertions, 0 deletions
diff --git a/app-emacs/chess/Manifest b/app-emacs/chess/Manifest
new file mode 100644
index 000000000000..130ade8b6468
--- /dev/null
+++ b/app-emacs/chess/Manifest
@@ -0,0 +1,14 @@
+AUX 2.0_beta6-chess-common-handler-gentoo.patch 689 SHA256 de6e8a26e386c65cb6d856087b48720316997cd7f36268c26eef2bbcca055c92 SHA512 5952d4be2ef5f143b07d8a0489b846db6d4b505361d8d97836767dcce6c60e141eccdc7b5ac4ea78bb6087a701ab1c698630bb544a213ad9718dd449dc00ceb3 WHIRLPOOL 707c127108e8c973bbc69654e33ebcfeb50101a3636c96dc105cf5adc71bdc964bd82c3a3cc0a50686e6102ece2c060a52a246dfb7dc1271b5de3cbd9cac33d0
+AUX 2.0_beta6-chess-pos-move-gentoo.patch 441 SHA256 c6c9dcbbc97afd5e97f10fdb2df59a7490d672b10ca63b14b4a1e03f23249d5a SHA512 96cb451529466ccf6f17d3ab044d85c096e6858c8b7fc46c3791c38308d598504c22b86559c87b6538646a9485e9d713e7d87f8922e884dc064d088f82cd594b WHIRLPOOL c5c25533c4e864ccb4b6932093b7b1f10e57be568702296b42dc74279d862705757f3d9cb44c9c26be7ff67bf110ad05e24ee03909ee880b71fed7589c5c90de
+AUX 2.0_beta6-texinfo-5.patch 255 SHA256 2eafa12fd55cfd222476347f58291d36e40caaefc335c3b65e04371330dd8bf4 SHA512 7f5f9bff1054ebee39c9b82a14f289c9067d1d6167acc1296148214be953fd31c4f22f38235d619abd325af7c2662569d36bf9f3e64bec7b73fc9930cb21767e WHIRLPOOL 565d7ab24e948d090fe5aedf61162699d69f67f47e7a0aef4959b9c6be816c89aa77842cdb15082b68578bab5eb3d81bde6da1fefb25f5b2cc7147a0e9118e0e
+AUX 50chess-gentoo-2.0.4.el 1570 SHA256 731b272f1305b6b39e89a1050fe5afb92b96760664ed1d00f1fe0bfdd8fdb20d SHA512 cef5a4826f0f8eb02ecbbdddb9c2d8dab54c657c42877e415262ae8474c4a591135353a31b6a56981ab7b6107f79f2aa821b7b19fa7a63b1af95f6088e5deb46 WHIRLPOOL fcb34bcc1d4bd41d3bc26665f4384b30cf690361553db303f8ff4dbe5ee51dee634f86e306b07c4857ab66bac23bb83fa3a52fc7036f6ceb8c6320fa251b59df
+AUX 50chess-gentoo.el 1452 SHA256 61b52116e685120ce45fb73ab147555fe0e97a0e5c3f1081509146f8638deb8b SHA512 1afee42df4bcc9402d15edf4e6d5193d6e4da793b9f6c577f3bd6c9ed9afe39acf650dd93f88fd90c3de3193e04b3fd8ef67fc52ee0c545806a7672cf56981b8 WHIRLPOOL 1b6264f033f568c6095c8bf27c15aadf43e624a8830d082f3a4783a6e9ccfdd687b0aadc6a95cc75861505a3dc6e4f7e2bea6e6969704b7d5c80053ef12d3a7c
+DIST chess-2.0.4.tar.xz 364620 SHA256 01ced9398b125756bb9a793a69b3caa64c697ba6f4307643b4fe70b94c9a118b SHA512 2c8155185878fec8b45ab84b7723f4af0f518fc81ab7534c36c09c96a9a30cb20da26c2a89320cc5a9f9d8991e4516da393e82658a7f15642929591d1b6a0e99 WHIRLPOOL 94b659e48efd0d58fb6c0084007c3b943b29dc250a745643dc06fe7b86aa57f4f2e9063f98ccba59fe77818b08fd7330324fc83e22211a603a5540c63205af74
+DIST chess-2.0b6.tar.gz 383951 SHA256 4d9938365965c109fc832109eec25d0a79d8c4b1ebd2025a4939ad88e75a396e SHA512 90dbb79f60d8d8e475c497a3d0da431e54b5bfe06285d493551c1ac6457e80ad9e71ada640374e9a0c4e9d5ee578ab68b2e370a47b5f5ff7f035caac839091e2 WHIRLPOOL 6a30f084dbb21fba4d69f1772acd33900fb4bd575b5e83596743fff25e475288386cd1f28e5f070e658cce2daeb5ac797e20559cab6a05fab2cf135ad2548b88
+DIST emacs-chess-pieces-2.0.tar.bz2 297687 SHA256 c47278127ebcd8b4503fe4058317436757f795b1404cc02b883dce215eb1c1b0 SHA512 e1ee59a338b68796fd60f8693f4ff8bf20ded535c516916cc8b1f4cf00ff696ca1eead844e2a6a9a1f2578a70370d7a67cbadb6ae454ae16b2ae93864e1b1f94 WHIRLPOOL c1951531aa0ba09442c389f39240946c476184458f339352c6cd2f243e71c15b5c62dd84b88a424aa80520ec36c65c43c52aa0223d35ddfa0524f96cbd274d04
+DIST emacs-chess-sounds-2.0.tar.bz2 3390098 SHA256 32c3577c512157523bc40d514a1682d9381bd28b3d8f5788c22eef5ef2cf6257 SHA512 f07894dd7a6e43450405c0eee8d1d95a08925ca8ebd5ca7e584eca45369cb2aa8eecb754b351d1977f473b520288d3e3e9a8ebe73216d14e26345b44e498efb4 WHIRLPOOL ea7190ab9fbb0648ecf7f765b7975ea3065feb4a057b3f4d5d6fe4b91554f81744bd0fb667c1fa0aeb98471947b56f4ecbe0af1b60a18225b767f2ff8535afc6
+EBUILD chess-2.0.4.ebuild 1143 SHA256 2be96b8afab921460b935a33b1183a8d50a7df9dc7f5700a6faa4d35fc35d27e SHA512 09ec09d366679801514a1fb6241ca2d1b626e1467fee3d81be979404ffb94b6a7d479ae93654eb39330743eee2b6f92630830574faa4e8b00d302ceb2d334b40 WHIRLPOOL 42648161bd64a4d44de41530fff7c3f0aec55ec0b68781af7d99fc130a3c70d17fc0b44d8ac5de16b9343906b693a210983ff6197b28482a99b92823c09ce0e4
+EBUILD chess-2.0_beta6-r2.ebuild 936 SHA256 2193d7495db8815bfd03856502085fc3f50bfc8abc77b7bab5283afcc78bd497 SHA512 a2ff7561ea8db0e2da28694d059215ef944d06a19269cd30f1d7ff4e30e2b3779f5ae593b1f9ed0657503f6a2774216823b557475cd5a5566f45b671779cc413 WHIRLPOOL fb1c3544f2e5d35b68e8c015d387a749bcca86fa93b3498d4285192e937f8250a19006e131848974d76951485f86ec1bc44df097ae6a540e797e1b7fc44ef374
+MISC ChangeLog 2743 SHA256 9aa236091fff94f2f819c56ab1b47948875b628f4b5fb5ffc96877b78fbe636f SHA512 31354eca8e019e60b6ddfe83d429cdeb76c27ddcf791d0de2fbac92e59a984c79a37c339fa06a3e0537ca34ddea22443254b8de3b069f909c419dadf9af885fe WHIRLPOOL 9eac97ce6cb4902e482d5bb10615331ead7e5161e7d5f02b1de3879f1d86155707ccec6e0b88cba91506efbe30a5fba53d7b960ef911bc6967d4b924dea1b57a
+MISC ChangeLog-2015 5849 SHA256 3a1080e324c4807acd717ab609212dae5f9d3318da87ff844344fc07e0cf44b0 SHA512 9eb00a6918327379b4de974e774e63d2bc412c8ae236ff2ceb39cb3ae9a0d5b015a529826d4ee11d011dddafa4f4b37586a67d1e5973d1cb64b5df3939d58caf WHIRLPOOL 3ce6e753153bd3f9f13e26f6a3f6826e22725a6ce01232fd0b73b0a38caecf25c5ccd9314e0f8b392986d1a2c21e6b2f38a0cd1c29da8094acb4aa35b64163c6
+MISC metadata.xml 1295 SHA256 27c2c76a08f9bd48e6bcc5c60faca4ef39a0bd77fe48ad1ae611d350c02c874a SHA512 8a7d267161f2aeecb5d5217a9151c5ed10269b61f84636ab35e52b6d7f299b5f5cbc4f77919687c49c0a6056ed6b78fa713354da8295fa3a0e2392fd9a842dfe WHIRLPOOL 0d96ac76a63ac8b0bcb4e8095547da0c235046911f63f6ccb64aac1b9af194155be6f769efe2af8f19660683f68b3e418b819fef304ddecf40cdee6e8a3f6f97
diff --git a/app-emacs/chess/chess-2.0.4.ebuild b/app-emacs/chess/chess-2.0.4.ebuild
new file mode 100644
index 000000000000..67cea7e90017
--- /dev/null
+++ b/app-emacs/chess/chess-2.0.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+NEED_EMACS=24
+
+inherit elisp
+
+DESCRIPTION="A chess client and library for Emacs"
+HOMEPAGE="https://elpa.gnu.org/packages/chess.html
+ http://www.emacswiki.org/emacs/ChessMode"
+# Taken from https://elpa.gnu.org/packages/${P}.tar
+SRC_URI="https://dev.gentoo.org/~ulm/distfiles/${P}.tar.xz
+ mirror://gentoo/emacs-chess-sounds-${PV%.*}.tar.bz2
+ mirror://gentoo/emacs-chess-pieces-${PV%.*}.tar.bz2"
+
+LICENSE="GPL-3+ FDL-1.3+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+# Free alternatives first, otherwise follow the ordering in the upstream
+# chess-default-engine (in chess.el). Rearrange chess-default-engine in
+# the site-init file accordingly.
+RDEPEND="|| ( games-board/stockfish
+ games-board/fruit
+ games-board/gnuchess
+ games-board/phalanx
+ games-board/sjeng
+ games-board/crafty )"
+
+ELISP_REMOVE="chess-pkg.el"
+SITEFILE="50${PN}-gentoo-${PV}.el"
+DOCS="AUTHORS NEWS TODO"
+
+src_install() {
+ elisp_src_install
+ doinfo chess.info
+ insinto "${SITEETC}/${PN}"
+ doins chess-eco.fen chess-polyglot.bin
+ doins -r "${WORKDIR}"/{sounds,pieces}
+}
diff --git a/app-emacs/chess/chess-2.0_beta6-r2.ebuild b/app-emacs/chess/chess-2.0_beta6-r2.ebuild
new file mode 100644
index 000000000000..ad01fa575e09
--- /dev/null
+++ b/app-emacs/chess/chess-2.0_beta6-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit elisp
+
+DESCRIPTION="A chess client and library for Emacs"
+HOMEPAGE="http://emacs-chess.sourceforge.net/"
+SRC_URI="mirror://sourceforge/emacs-chess/${P/_beta/b}.tar.gz
+ mirror://gentoo/emacs-chess-sounds-${PV%%_*}.tar.bz2
+ mirror://gentoo/emacs-chess-pieces-${PV%%_*}.tar.bz2"
+
+LICENSE="GPL-2+ FDL-1.1+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+DEPEND=""
+RDEPEND="|| ( games-board/gnuchess
+ games-board/crafty
+ games-board/phalanx
+ games-board/sjeng )"
+
+S="${WORKDIR}/${PN}"
+DOCS="ChangeLog EPD.txt PGN.txt PLAN README TODO"
+ELISP_PATCHES="${PV}-chess-pos-move-gentoo.patch
+ ${PV}-chess-common-handler-gentoo.patch
+ ${PV}-texinfo-5.patch"
+SITEFILE="50${PN}-gentoo.el"
+
+src_compile() {
+ default
+}
+
+src_install() {
+ elisp_src_install
+ doinfo chess.info
+ insinto "${SITEETC}/${PN}"
+ doins -r "${WORKDIR}"/{sounds,pieces}
+}
diff --git a/app-emacs/chess/files/2.0_beta6-chess-common-handler-gentoo.patch b/app-emacs/chess/files/2.0_beta6-chess-common-handler-gentoo.patch
new file mode 100644
index 000000000000..0fd1e8c28264
--- /dev/null
+++ b/app-emacs/chess/files/2.0_beta6-chess-common-handler-gentoo.patch
@@ -0,0 +1,18 @@
+--- chess-orig/chess-common.el 2007-12-14 21:54:58.000000000 +0100
++++ chess/chess-common.el 2008-03-14 21:11:56.000000000 +0100
+@@ -41,10 +41,11 @@
+ (chess-message 'starting-engine name)
+ (unless (boundp path)
+ (chess-error 'could-not-find-engine name path))
+- (setq proc (start-process (concat "chess-" name)
+- (current-buffer) (symbol-value path)))
+- (chess-message 'starting-engine-done name)
+- proc))
++ (when (symbol-value path)
++ (setq proc (start-process (concat "chess-" name)
++ (current-buffer) (symbol-value path)))
++ (chess-message 'starting-engine-done name)
++ proc)))
+
+ ((eq event 'ready)
+ (chess-game-set-data game 'active t)
diff --git a/app-emacs/chess/files/2.0_beta6-chess-pos-move-gentoo.patch b/app-emacs/chess/files/2.0_beta6-chess-pos-move-gentoo.patch
new file mode 100644
index 000000000000..fe7a31ba1222
--- /dev/null
+++ b/app-emacs/chess/files/2.0_beta6-chess-pos-move-gentoo.patch
@@ -0,0 +1,12 @@
+--- chess-orig/chess-pos.el 2004-02-18 18:53:26.000000000 +0100
++++ chess/chess-pos.el 2007-09-24 11:04:39.000000000 +0200
+@@ -595,7 +595,8 @@
+ trying to move a blank square."
+ (assert (vectorp position))
+ (assert (listp changes))
+- (assert (> (length changes) 0))
++ ;; this fails for the start position in chess-opening
++ ;;(assert (> (length changes) 0))
+
+ ;; apply the piece movements listed in `changes'
+ (let ((ch changes))
diff --git a/app-emacs/chess/files/2.0_beta6-texinfo-5.patch b/app-emacs/chess/files/2.0_beta6-texinfo-5.patch
new file mode 100644
index 000000000000..285d976ceff8
--- /dev/null
+++ b/app-emacs/chess/files/2.0_beta6-texinfo-5.patch
@@ -0,0 +1,14 @@
+--- chess-orig/chess.texi
++++ chess/chess.texi
+@@ -44,9 +44,9 @@
+ @sp 4
+ @c The title is printed in a large font.
+ @center @titlefont{User's Guide}
+-@sp
++@sp 1
+ @center @titlefont{to}
+-@sp
++@sp 1
+ @center @titlefont{Emacs Chess: chess.el}
+ @ignore
+ @sp 2
diff --git a/app-emacs/chess/files/50chess-gentoo-2.0.4.el b/app-emacs/chess/files/50chess-gentoo-2.0.4.el
new file mode 100644
index 000000000000..b263ddd84a02
--- /dev/null
+++ b/app-emacs/chess/files/50chess-gentoo-2.0.4.el
@@ -0,0 +1,36 @@
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'chess "chess"
+ "Start a game of chess, playing against ENGINE (a module name)." t)
+(defalias 'chess-session 'chess)
+(autoload 'chess-create-display "chess"
+ "Create a display, letting the user's customization decide the style.")
+(autoload 'chess-link "chess-link"
+ "Play out a game between two engines, and watch the progress." t)
+(autoload 'chess-pgn-read "chess-pgn"
+ "Read and display a PGN game after point." t)
+(autoload 'chess-pgn-mode "chess-pgn"
+ "A mode for editing chess PGN files." t)
+(defalias 'pgn-mode 'chess-pgn-mode)
+(autoload 'chess-puzzle "chess-puzzle"
+ "Pick a random puzzle from FILE, and solve it against the default engine." t)
+(autoload 'chess-fischer-random-position "chess-random"
+ "Generate a Fischer Random style position.")
+(autoload 'chess-tutorial "chess-tutorial"
+ "A simple chess training display." t)
+(autoload 'chess-ics "chess-ics"
+ "Connect to an Internet Chess Server." t)
+
+(add-to-list 'auto-mode-alist '("\\.pgn\\'" . chess-pgn-mode))
+
+(setq chess-images-directory "@SITEETC@/pieces/xboard")
+(setq chess-sound-directory "@SITEETC@/sounds")
+(setq chess-eco-hash-table "@SITEETC@/chess-eco.fen")
+(setq chess-polyglot-book-file "@SITEETC@/chess-polyglot.bin")
+
+;; Change the order of the engine preference list to coincide with
+;; the order of dependencies in the ebuild. The user can override this
+;; using "M-x customize-group RET chess RET".
+(setq chess-default-engine
+ '(chess-stockfish chess-fruit chess-gnuchess chess-phalanx chess-sjeng
+ chess-crafty chess-ai))
diff --git a/app-emacs/chess/files/50chess-gentoo.el b/app-emacs/chess/files/50chess-gentoo.el
new file mode 100644
index 000000000000..3aee961e25bc
--- /dev/null
+++ b/app-emacs/chess/files/50chess-gentoo.el
@@ -0,0 +1,33 @@
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'chess "chess"
+ "Start a game of chess, playing against ENGINE (a module name)." t)
+(defalias 'chess-session 'chess)
+(autoload 'chess-create-display "chess"
+ "Create a display, letting the user's customization decide the style.")
+(autoload 'chess-link "chess-link"
+ "Play out a game between two engines, and watch the progress." t)
+(autoload 'chess-pgn-read "chess-pgn"
+ "Read and display a PGN game after point." t)
+(autoload 'chess-pgn-mode "chess-pgn"
+ "A mode for editing chess PGN files." t)
+(defalias 'pgn-mode 'chess-pgn-mode)
+(autoload 'chess-puzzle "chess-puzzle"
+ "Pick a random puzzle from FILE, and solve it against the default engine." t)
+(autoload 'chess-fischer-random-position "chess-random"
+ "Generate a Fischer Random style position.")
+(autoload 'chess-tutorial "chess-tutorial"
+ "A simple chess training display." t)
+(autoload 'chess-ics "chess-ics"
+ "Connect to an Internet Chess Server." t)
+
+(add-to-list 'auto-mode-alist '("\\.pgn\\'" . chess-pgn-mode))
+
+(setq chess-images-directory "@SITEETC@/pieces/xboard")
+(setq chess-sound-directory "@SITEETC@/sounds")
+
+;; Change the order of the engine preference list to coincide with the order
+;; of our dependencies: games-board/gnuchess, crafty, phalanx, and sjeng.
+;; The user can override this using M-x customize-group RET chess RET
+(setq chess-default-engine
+ '(chess-gnuchess chess-crafty chess-phalanx chess-sjeng))
diff --git a/app-emacs/chess/metadata.xml b/app-emacs/chess/metadata.xml
new file mode 100644
index 000000000000..18cedb8d12a2
--- /dev/null
+++ b/app-emacs/chess/metadata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+</maintainer>
+<longdescription>
+ chess.el is an Emacs Lisp library and several clients on top of the
+ underlying library functionality for performing various activities related
+ to the game of chess.
+
+ You can play against an external chess program such as gnuchess, crafty,
+ phalanx or sjeng. All of them are publically available, and chess.el will
+ automatically detect which one you have installed, provided they have
+ standard executable program names, and are in a located in a directory which
+ is part of the PATH. See the customisable variable `chess-default-engine'.
+
+ You can also play against another human or computer over the internet
+ (through a direct Emacs-to-Emacs connection, or on one of the Internet Chess
+ Servers like freechess.org or chessclub.com), or even against a very simple
+ chess thinking module implemented in pure Emacs Lisp.
+
+ chess.el also provides a mode for editing Portable Game Notation (PGN) files.
+</longdescription>
+<upstream>
+ <remote-id type="sourceforge">emacs-chess</remote-id>
+</upstream>
+</pkgmetadata>