summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Faulhammer <opfer@gentoo.org>2007-02-27 12:39:35 +0000
committerChristian Faulhammer <opfer@gentoo.org>2007-02-27 12:39:35 +0000
commitf93345807c3d887598fa85ed52d2fe95bc9b2109 (patch)
tree00259f60588e018cbe9194b75f37ebdd6f0db93c /app-emacs
parentmarked ~amd64; bug 167102 (diff)
downloadgentoo-2-f93345807c3d887598fa85ed52d2fe95bc9b2109.tar.gz
gentoo-2-f93345807c3d887598fa85ed52d2fe95bc9b2109.tar.bz2
gentoo-2-f93345807c3d887598fa85ed52d2fe95bc9b2109.zip
revision bump: Have a smoother init file, install sounds and icons in better suited directories; fixes bug 168550, reported by Ulrich Mueller <ulm@kph.uni-mainz.de>
(Portage version: 2.1.2-r9)
Diffstat (limited to 'app-emacs')
-rw-r--r--app-emacs/chess/ChangeLog10
-rw-r--r--app-emacs/chess/chess-2.0_beta5-r2.ebuild52
-rw-r--r--app-emacs/chess/files/51chess-gentoo.el17
-rw-r--r--app-emacs/chess/files/digest-chess-2.0_beta5-r29
4 files changed, 87 insertions, 1 deletions
diff --git a/app-emacs/chess/ChangeLog b/app-emacs/chess/ChangeLog
index 6c5e8cde3291..f210d20803da 100644
--- a/app-emacs/chess/ChangeLog
+++ b/app-emacs/chess/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for app-emacs/chess
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emacs/chess/ChangeLog,v 1.10 2007/02/09 00:26:28 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/chess/ChangeLog,v 1.11 2007/02/27 12:39:35 opfer Exp $
+
+*chess-2.0_beta5-r2 (27 Feb 2007)
+
+ 27 Feb 2007; Christian Faulhammer <opfer@gentoo.org>
+ +files/51chess-gentoo.el, +chess-2.0_beta5-r2.ebuild:
+ revision bump: Have a smoother init file, install sounds and icons in better
+ suited directories; fixes bug 168550, reported by Ulrich Mueller
+ <ulm@kph.uni-mainz.de>
*chess-2.0_beta5-r1 (09 Feb 2007)
diff --git a/app-emacs/chess/chess-2.0_beta5-r2.ebuild b/app-emacs/chess/chess-2.0_beta5-r2.ebuild
new file mode 100644
index 000000000000..30d638c8cbb9
--- /dev/null
+++ b/app-emacs/chess/chess-2.0_beta5-r2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/chess/chess-2.0_beta5-r2.ebuild,v 1.1 2007/02/27 12:39:35 opfer Exp $
+
+inherit elisp-common eutils
+
+DESCRIPTION="A chess client and library for Emacs"
+HOMEPAGE="http://emacs-chess.sourceforge.net/"
+SRC_URI="mirror://sourceforge/emacs-chess/${P/_beta/b}.tar.bz2
+ mirror://gentoo/emacs-chess-sounds-2.0.tar.bz2
+ mirror://gentoo/emacs-chess-pieces-2.0.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="festival"
+
+# don't forget to change it back to virtual/emacs
+# (inherit elisp.eclass)! See bug 151474
+DEPEND="app-editors/emacs-cvs"
+
+RDEPEND="${DEPEND}
+ games-board/gnuchess
+ festival? ( app-accessibility/festival ) "
+
+S="${WORKDIR}/${P/_beta/b}"
+
+SITEFILE=51chess-gentoo.el
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}/${PV}-byte-compiling-files-gentoo.patch" || die "epatch failed"
+ cd "${S}" && rm -f *.elc
+}
+
+src_compile() {
+ make || die
+}
+
+src_install() {
+ elisp-install ${PN} *.el *.elc
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+
+ dodir /usr/share/pixmaps/${PN}
+ cp -r "${WORKDIR}/pieces/." "${D}/usr/share/pixmaps/${PN}"
+ dodir /usr/share/sounds/${PN}
+ cp -r "${WORKDIR}/sounds/." "${D}/usr/share/sounds/${PN}"
+
+ doinfo chess.info
+ dohtml *.html
+ dodoc ChangeLog EPD.txt PGN.txt PLAN README TODO
+} \ No newline at end of file
diff --git a/app-emacs/chess/files/51chess-gentoo.el b/app-emacs/chess/files/51chess-gentoo.el
new file mode 100644
index 000000000000..08429efa52c8
--- /dev/null
+++ b/app-emacs/chess/files/51chess-gentoo.el
@@ -0,0 +1,17 @@
+
+;;; chess site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'chess "chess" "Play a game of chess" t)
+
+(custom-set-variables
+ '(chess-images-directory "/usr/share/pixmaps/chess/xboard")
+ '(chess-sound-directory "/usr/share/sounds/chess"))
+
+;; Change the engine preference order -- gnuchess is a dependency (we
+;; depend on app-games/gnuchess explicitly). We make crafty and
+;; phalanx optional. The user can override this anytime using M-x
+;; customize-group RET chess RET
+
+(custom-set-variables
+ '(chess-default-engine (quote (chess-gnuchess chess-crafty chess-phalanx))))
diff --git a/app-emacs/chess/files/digest-chess-2.0_beta5-r2 b/app-emacs/chess/files/digest-chess-2.0_beta5-r2
new file mode 100644
index 000000000000..253a6c1245f9
--- /dev/null
+++ b/app-emacs/chess/files/digest-chess-2.0_beta5-r2
@@ -0,0 +1,9 @@
+MD5 707d7f49744f5e1c79781bc95a3c5f28 chess-2.0b5.tar.bz2 620380
+RMD160 e98e4b91471588ad7278bdae3e89166acce55fa2 chess-2.0b5.tar.bz2 620380
+SHA256 6e204e0381191eededd5b9e8c7811e093c9e0ce62c20979e3d15b52681bdd9f1 chess-2.0b5.tar.bz2 620380
+MD5 23b4fb5038232fc01c238a213cee5e63 emacs-chess-pieces-2.0.tar.bz2 297687
+RMD160 68caefa70dfe2071c1a5c3ce1564fec170be2a1c emacs-chess-pieces-2.0.tar.bz2 297687
+SHA256 c47278127ebcd8b4503fe4058317436757f795b1404cc02b883dce215eb1c1b0 emacs-chess-pieces-2.0.tar.bz2 297687
+MD5 86cd8cac846b0874e030692a8306d029 emacs-chess-sounds-2.0.tar.bz2 3390098
+RMD160 db4ef0bd29b2f415cea4438f31064cb6bad31dc0 emacs-chess-sounds-2.0.tar.bz2 3390098
+SHA256 32c3577c512157523bc40d514a1682d9381bd28b3d8f5788c22eef5ef2cf6257 emacs-chess-sounds-2.0.tar.bz2 3390098