Bug 168550 - app-emacs/chess-2.0_beta5-r1 installs pixmaps and sounds in site-lisp directory
Bug#: 168550 Product:  Gentoo Linux Version: 2006.1 Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: emacs@gentoo.org Reported By: ulm@gentoo.org
Component: Ebuilds
URL: 
Summary: app-emacs/chess-2.0_beta5-r1 installs pixmaps and sounds in site-lisp directory
Keywords:  
Status Whiteboard: 
Opened: 2007-02-27 11:19 0000
Description:   Opened: 2007-02-27 11:19 0000
emerge app-emacs/chess-2.0_beta5-r1 installs chess's pixmaps and sounds in
subdirectories of /usr/share/emacs/site-lisp. These directories are
unnecessarily added by Emacs to its load-path.

Proposed fix: Pixmaps should go into /usr/share/pixmaps/chess, sounds into
/usr/share/sounds/chess.

Another issue is that the site-init file does an unconditional "(require
'chess)" where an "autoload" would be sufficient. See commentary in chess.el:

;; To just get a chessboard up, put the following in your .emacs file:
;;   (add-to-list 'load-path "<the path to Emacs Chess>")
;;   (autoload 'chess "chess" "Play a game of chess" t)

Find attached my proposed changes to the ebuild and a new site-init file. It
applies (and I have tested it) with chess-2.0_beta5, too, in case you want to
maintain a separate stable branch.

------- Comment #1 From Ulrich Müller 2007-02-27 11:20:20 0000 -------
Created an attachment (id=111397) [details]
Proposed changes to chess-2.0_beta5-r1.ebuild

------- Comment #2 From Ulrich Müller 2007-02-27 11:21:14 0000 -------
Created an attachment (id=111398) [details]
Site-init file 51chess-gentoo.el

------- Comment #3 From Christian Faulhammer 2007-02-27 12:39:24 0000 -------
(In reply to comment #0)
> Find attached my proposed changes to the ebuild and a new site-init file. It
> applies (and I have tested it) with chess-2.0_beta5, too, in case you want to
> maintain a separate stable branch.

 Thanks.  Fixed in CVS.  I won't do the changes for the stable branch, it was
broken for a long time and I wait until Emacs 22 goes stable.