--- emacs-chess-2.0b6.orig/chess-opening.el +++ emacs-chess-2.0b6/chess-opening.el @@ -50,7 +50,7 @@ (chess-algebraic-to-ply pos move)))) (split-string (caddr entry) " ")) (list (chess-pos-to-fen pos) (cadr entry) (car entry)))) -'(("A00a" "Start position" "") +'(;("A00a" "Start position" "") ("A00b" "Barnes Opening" "f3") ("A00b" "Fried fox" "f3 e5 Kf2") ("A00c" "Kadas Opening" "h4") --- emacs-chess-2.0b6.orig/debian/README.Debian +++ emacs-chess-2.0b6/debian/README.Debian @@ -0,0 +1,27 @@ +Notes for the emacs-chess package +========================= + +This program is split into two binary packages: emacs-chess contains +the required elisp files. +emacs-chess-pieces contains graphical pieces for the chess-images display type. + +The pieces were converted from xboard's .bm files. + + +emacs-chess has several backends. If you invoke M-x chess without +a prefix argument, it will choose the default backend (usually a computer +opponent). If you give a prefix argument to M-x chess, you'll get prompted +which backend to use. + +Examle: + + C-u M-x chess RET ai RET + +to play against the very simple and stupid +internal engine written in Elisp. + +For FICS playing, use M-x chess-ics RET, if things go right, you'll get a +anonymous connection to the free internet chess server network. + Have fun! + + -- Mario Lang --- emacs-chess-2.0b6.orig/debian/changelog +++ emacs-chess-2.0b6/debian/changelog @@ -0,0 +1,69 @@ +emacs-chess (2.0b6-1) unstable; urgency=low + + * New upstream release. + * Remove emacs-chess-pieces since copyright is unclear. + * Remove debian/watch (Closes: Bug#450146). + + -- Mario Lang Thu, 24 Dec 2009 17:00:51 +0100 + +emacs-chess (2.0b5-3) unstable; urgency=low + + * Depend on emacs22 | emacs21 (Closes: Bug#403161, Bug#434972). + * Update Standars-Version (no changes). + + -- Mario Lang Sat, 20 Oct 2007 21:52:29 +0200 + +emacs-chess (2.0b5-2) unstable; urgency=low + + * Fix (s/oponent/opponent/) package description (Closes: Bug#363387). + * (require 'cl) at runtime in chess-ics.el. + + -- Mario Lang Sat, 25 Nov 2006 17:03:01 +0100 + +emacs-chess (2.0b5-1) unstable; urgency=low + + * New upstream release. + * Fix bad control directory permission by recreating the tar archive + (Closes: Bug#262497). + + -- Mario Lang Sat, 15 Jan 2005 23:34:58 +0100 + +emacs-chess (2.0b4-2) unstable; urgency=low + + * Exclude scid-browser.el for now, it is incomplete anyway. + (Closes: Bug#230347) + * Log byte-compilation to a temp-file. (Closes: Bug#230321) + * Fix reference to free variable move in chess-crafty.el. + + -- Mario Lang Mon, 2 Feb 2004 12:30:55 +0100 + +emacs-chess (2.0b4-1) unstable; urgency=low + + * New upstream beta release. + - Fixes some long-standing algebraic move handling bugs as well as + a fundamental design flaw in the ICS logic. + * Fixed README.Debian to give the correct example on how to connect to ICS. + + -- Mario Lang Thu, 29 Jan 2004 14:36:02 +0100 + +emacs-chess (2.0b3-3) unstable; urgency=low + + * Add -m 775 to install call in debian/rules (Closes: Bug#165129) + * Fix stupid bashism in the emacsen install file (Closes: Bug#171400) + * Sync with CVS (2.0b4 is not released yet) + + -- Mario Lang Mon, 2 Dec 2002 22:10:00 +0100 + +emacs-chess (2.0b3-2) unstable; urgency=low + + * Change require to load in 50chess.el (Closes: Bug#163516) + * Check and set correct chess-crafty-path (this makes M-x chess + work out of the box) + + -- Mario Lang Sun, 6 Oct 2002 21:10:00 +0100 + +emacs-chess (2.0b3-1) unstable; urgency=low + + * Initial packaging. + + -- Mario Lang Thu, 29 Aug 2002 10:33:00 +0100 --- emacs-chess-2.0b6.orig/debian/control +++ emacs-chess-2.0b6/debian/control @@ -0,0 +1,17 @@ +Source: emacs-chess +Section: games +Priority: extra +Maintainer: Mario Lang +Standards-Version: 3.8.3 + +Package: emacs-chess +Architecture: all +Depends: emacs23 | emacs22, dpkg (>= 1.15.4) | install-info +Suggests: gnuchess | phalanx | crafty +Description: a client and library for playing Chess from Emacs + emacs-chess is a chessboard display for Emacs which allows to + play Chess from within Emacs. + It can also be used to play via Internet Chess Servers against + other human opponents. + . + emacs-chess is still in beta, read the Info manual to get started. --- emacs-chess-2.0b6.orig/debian/copyright +++ emacs-chess-2.0b6/debian/copyright @@ -0,0 +1,14 @@ +This package was debianized by Mario Lang + +It was downloaded from + http://sourceforge.net/projects/emacs-chess/ + +Upstream Author: John Wiegley + + Copyright (C) 2001 John Wiegley + Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. + +This program is licensed under the terms of the GNU GPL. + +On Debian systems, the complete text of the GNU General Public License +can be found in `/usr/share/common-licenses/GPL'. --- emacs-chess-2.0b6.orig/debian/rules +++ emacs-chess-2.0b6/debian/rules @@ -0,0 +1,76 @@ +#! /usr/bin/make -f +## Written by Mario Lang +## This is under GPL v2. + +PACKAGE = emacs-chess +PKGDIR = debian/$@ +SOURCES = $(filter-out chess-maint.el,$(wildcard *.el)) +LISPDIR = /usr/share/emacs/site-lisp/chess + +build: + $(MAKE) chess-auto.el info + +clean: + test -e debian/control + rm -rf debian/emacs-chess* debian/files \ + chess.info chess-final.texi chess-auto.el + +emacs-chess: + test -e debian/control && test "x`whoami`" = "xroot" + install -d -m 755 ${PKGDIR} + install -d ${PKGDIR}${LISPDIR} ${PKGDIR}/etc/emacs/site-start.d \ + ${PKGDIR}/usr/share/info + install -m 0644 ${SOURCES} ${PKGDIR}${LISPDIR} + install -m 0644 chess.info ${PKGDIR}/usr/share/info + gzip -9 ${PKGDIR}/usr/share/info/* +## Install debian-specific stuff +# Some directories + install -d ${PKGDIR}/usr/share/doc/$@ \ + ${PKGDIR}/usr/lib/emacsen-common/packages/install \ + ${PKGDIR}/usr/lib/emacsen-common/packages/remove +# The changelog.. + install -m 0644 debian/changelog \ + ${PKGDIR}/usr/share/doc/$@/changelog.Debian + install -m 0644 ChangeLog ${PKGDIR}/usr/share/doc/$@/changelog +# ..the copyright file.. + install -m 0644 debian/copyright ${PKGDIR}/usr/share/doc/$@/ +# ..some documentation + install -m 0644 README PLAN TODO ${PKGDIR}/usr/share/doc/$@/ +# the emacs-install scripts + install -m 0755 debian/scripts/install \ + ${PKGDIR}/usr/lib/emacsen-common/packages/install/$@ + install -m 0755 debian/scripts/remove \ + ${PKGDIR}/usr/lib/emacsen-common/packages/remove/$@ +# Install an autoload script + install -m 0644 debian/scripts/startup.$@ \ + ${PKGDIR}/etc/emacs/site-start.d/50chess.el +## Compress stuff + gzip -9f ${PKGDIR}/usr/share/doc/$@/changelog.Debian \ + ${PKGDIR}/usr/share/doc/$@/changelog +## Fix permissions + find ${PKGDIR} -print0 2>/dev/null | xargs -0r chown \ + --no-dereference 0.0 + find ${PKGDIR} ! -type l -print0 2>/dev/null | xargs -0r \ + chmod go=rX,u+rw,a-s +## Install stuff to DEBIAN/ + install -d ${PKGDIR}/DEBIAN + install -m 0755 debian/maint/postinst debian/maint/prerm \ + ${PKGDIR}/DEBIAN/ +# Install conffile list + install -m 0644 debian/maint/conffiles ${PKGDIR}/DEBIAN/conffiles +## Install READMEs + install -m 0644 debian/README.Debian \ + ${PKGDIR}/usr/share/doc/$@/ +## Generate DEBIAN/md5sums + cd ${PKGDIR} >/dev/null ;\ + find * -type f ! -regex '^DEBIAN/.*' -print0 | xargs -r0 md5sum > DEBIAN/md5sums +## Generate DEBIAN/control + dpkg-gencontrol -isp -p$@ -P${PKGDIR} +## Build the binary package + dpkg --build ${PKGDIR} .. + +binary-indep: emacs-chess +binary-arch: ; +binary: binary-indep binary-arch + +.PHONY: binary binary-arch binary-indep clean build emacs-chess --- emacs-chess-2.0b6.orig/debian/scripts/startup.emacs-chess +++ emacs-chess-2.0b6/debian/scripts/startup.emacs-chess @@ -0,0 +1,21 @@ +;; -*-emacs-lisp-*- +;; Emacs startup file for the Debian erc package + +; add `/usr/share/emacs21/site-lisp/chess' to the +; load-path +(setq load-path (cons "/usr/share/emacs/site-lisp/chess/" load-path)) +(setq load-path (cons (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/chess") load-path)) + +; Set the image path correctly for emacs-chess-pieces +(setq chess-images-directory + "/usr/share/emacs/site-lisp/chess/pieces/xboard/") + +; Set correct crafty path +(if (file-executable-p "/usr/games/crafty") + (setq chess-crafty-path "/usr/games/crafty")) + +; autoloads +(load "chess-auto") + --- emacs-chess-2.0b6.orig/debian/scripts/remove +++ emacs-chess-2.0b6/debian/scripts/remove @@ -0,0 +1,10 @@ +#! /bin/sh +set -e + +FLAVOR=$1 +ELCDIR=/usr/share/${FLAVOR}/site-lisp/chess + +if [ ${FLAVOR} != emacs ] && [ -d ${ELCDIR} ]; then + echo remove/emacs-chess: purging byte-compiled files for ${FLAVOR} + rm -rf ${ELCDIR} +fi --- emacs-chess-2.0b6.orig/debian/scripts/install +++ emacs-chess-2.0b6/debian/scripts/install @@ -0,0 +1,23 @@ +#! /bin/sh + +set -e + +PACKAGE=emacs-chess +ELDIR=/usr/share/emacs/site-lisp/chess +FLAGS="${SITEFLAGS} -q -batch -l chess-maint.el -f batch-byte-compile" +FLAVOUR=$1 +ELCDIR=/usr/share/${FLAVOUR}/site-lisp/chess +LOG=`tempfile -pelc_ -s.log -m644` + +if [ $FLAVOUR = emacs23 -o $FLAVOUR = emacs22 ]; then + echo install/emacs-chess: Handling install for emacsen flavor $FLAVOUR, logging to ${LOG} + install -m 755 -d ${ELCDIR} + cd ${ELDIR} && cp *.el ${ELCDIR} + cd ${ELCDIR} && \ + echo ${FLAVOUR} ${FLAGS} chess-algebraic.el chess-pos.el chess-ply.el >${LOG} && + ${FLAVOUR} ${FLAGS} chess-algebraic.el chess-pos.el chess-ply.el >>${LOG} 2>&1 && + rm chess-algebraic.el chess-pos.el chess-ply.el && + echo ${FLAVOUR} ${FLAGS} *.el >>${LOG} && + ${FLAVOUR} ${FLAGS} *.el >>${LOG} 2>&1 + cd ${ELCDIR} && rm -f *.el path.el +fi --- emacs-chess-2.0b6.orig/debian/maint/prerm +++ emacs-chess-2.0b6/debian/maint/prerm @@ -0,0 +1,4 @@ +#! /bin/sh +set -e + +/usr/lib/emacsen-common/emacs-package-remove emacs-chess --- emacs-chess-2.0b6.orig/debian/maint/postinst +++ emacs-chess-2.0b6/debian/maint/postinst @@ -0,0 +1,4 @@ +#! /bin/sh +set -e + +/usr/lib/emacsen-common/emacs-package-install emacs-chess --- emacs-chess-2.0b6.orig/debian/maint/conffiles +++ emacs-chess-2.0b6/debian/maint/conffiles @@ -0,0 +1 @@ +/etc/emacs/site-start.d/50chess.el