summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-board/xboard/ChangeLog8
-rw-r--r--games-board/xboard/files/xboard-4.6.0-gentoo.patch83
-rw-r--r--games-board/xboard/xboard-4.6.0.ebuild64
3 files changed, 154 insertions, 1 deletions
diff --git a/games-board/xboard/ChangeLog b/games-board/xboard/ChangeLog
index 0536be07f164..3d0f654e7dfe 100644
--- a/games-board/xboard/ChangeLog
+++ b/games-board/xboard/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-board/xboard
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/xboard/ChangeLog,v 1.44 2012/01/04 17:57:53 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-board/xboard/ChangeLog,v 1.45 2012/04/19 04:59:05 tupone Exp $
+
+*xboard-4.6.0 (19 Apr 2012)
+
+ 19 Apr 2012; Tupone Alfredo <tupone@gentoo.org> +xboard-4.6.0.ebuild,
+ +files/xboard-4.6.0-gentoo.patch:
+ Version bump to 4.6.0 Bug #408027 by Panagiotis Christopoulos
04 Jan 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> xboard-4.5.3a.ebuild:
x86 stable wrt bug #395445
diff --git a/games-board/xboard/files/xboard-4.6.0-gentoo.patch b/games-board/xboard/files/xboard-4.6.0-gentoo.patch
new file mode 100644
index 000000000000..1d73c513a69c
--- /dev/null
+++ b/games-board/xboard/files/xboard-4.6.0-gentoo.patch
@@ -0,0 +1,83 @@
+--- Makefile.am.old 2012-04-15 13:06:09.425029890 +0200
++++ Makefile.am 2012-04-15 13:20:46.089910127 +0200
+@@ -42,10 +42,9 @@
+ DISTCLEANFILES = stamp-h
+
+ AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @X_CFLAGS@ -DSYSCONFDIR='"$(sysconfdir)"' \
+- -DBITMAPDIR='"$(datadir)/games/xboard/bitmaps/default"' \
++ -DBITMAPDIR='"$(bitmapsdir)"' \
+ -DLOCALEDIR='"$(localedir)"'
+
+-ACLOCAL_AMFLAGS = -I m4
+
+ info_TEXINFOS = xboard.texi
+ xboard_TEXINFOS = copyright.texi
+@@ -59,15 +59,15 @@
+
+ ### icon files
+
+-icondir = $(datadir)/icons/hicolor/48x48/apps
++icondir = /usr/share/icons/hicolor/48x48/apps
+ dist_icon_DATA = xboard.png
+-svgicondir = $(datadir)/icons/hicolor/scalable/apps
++svgicondir = /usr/share/icons/hicolor/scalable/apps
+ dist_svgicon_DATA = xboard.svg
+
+
+ ### desktop files for KDE and gnome
+
+-Applicationsdir = $(datadir)/applications
++Applicationsdir = /usr/share/applications
+ Applications_DATA = xboard.desktop xboard-fen-viewer.desktop xboard-pgn-viewer.desktop xboard-tourney.desktop
+
+ ### mime file
+@@ -76,7 +76,7 @@
+
+ ### directory and files for bitmaps
+
+-bitmapsdir = $(datadir)/games/xboard/bitmaps/default
++bitmapsdir = $(datadir)/bitmaps/default
+ dist_bitmaps_DATA = \
+ bitmaps/a33o.bm bitmaps/c45s.bm bitmaps/icon_outline.bm bitmaps/m49o.bm bitmaps/p45o.bm bitmaps/r29o.bm \
+ bitmaps/a33s.bm bitmaps/c49o.bm bitmaps/icon_white.bm bitmaps/m49s.bm bitmaps/p45s.bm bitmaps/r29s.bm \
+@@ -145,12 +145,12 @@
+
+ ### directory and files for pixmaps
+
+-pixmapsdir = $(datadir)/games/xboard/pixmaps/textures
++pixmapsdir = $(datadir)/pixmaps/textures
+ dist_pixmaps_DATA = pixmaps/wood_d.xpm pixmaps/wood_l.xpm pixmaps/cross32.xpm pixmaps/cross48.xpm pixmaps/board32.xpm pixmaps/board48.xpm
+
+ ### directory and files for sound files
+
+-soundsdir = $(datadir)/games/xboard/sounds
++soundsdir = $(datadir)/sounds
+ dist_sounds_DATA = \
+ sounds/cymbal.wav sounds/pop2.wav sounds/slap.wav sounds/ding1.wav sounds/laser.wav \
+ sounds/woodthunk.wav sounds/gong.wav sounds/penalty.wav sounds/honkhonk.wav sounds/phone.wav
+--- xboard.conf.in.old 2012-04-16 21:44:25.395391094 +0200
++++ xboard.conf.in 2012-04-16 21:44:45.014964575 +0200
+@@ -67,8 +67,8 @@
+ ;
+ ; Engines & adjudicatons in engine-engine games
+ ;
+--firstChessProgram fairymax
+--secondChessProgram fairymax
++-firstChessProgram gnuchess
++-secondChessProgram gnuchess
+ -firstChessProgramNames {fairymax
+ "Fruit 2.1" -fcp fruit -fUCI
+ "Crafty" -fcp crafty
+--- xboard.h.old 2012-04-16 21:45:30.176682289 +0200
++++ xboard.h 2012-04-16 21:46:00.066510987 +0200
+@@ -119,8 +119,8 @@
+
+ #define BORDER_X_OFFSET 3
+ #define BORDER_Y_OFFSET 27
+-#define FIRST_CHESS_PROGRAM "fairymax"
+-#define SECOND_CHESS_PROGRAM "fairymax"
++#define FIRST_CHESS_PROGRAM "gnuchess"
++#define SECOND_CHESS_PROGRAM "gnuchess"
+ #define FIRST_DIRECTORY "."
+ #define SECOND_DIRECTORY "."
+ #define SOUND_BELL ""
diff --git a/games-board/xboard/xboard-4.6.0.ebuild b/games-board/xboard/xboard-4.6.0.ebuild
new file mode 100644
index 000000000000..c2f5d51b2147
--- /dev/null
+++ b/games-board/xboard/xboard-4.6.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/xboard/xboard-4.6.0.ebuild,v 1.1 2012/04/19 04:59:05 tupone Exp $
+
+EAPI=2
+inherit autotools eutils games
+
+DESCRIPTION="GUI for gnuchess and for internet chess servers"
+HOMEPAGE="http://www.gnu.org/software/xboard/"
+SRC_URI="mirror://gnu/xboard/${P}.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~ppc ~ppc64 ~x86"
+IUSE="Xaw3d +default-font zippy"
+RESTRICT="test" #124112
+
+RDEPEND="Xaw3d? ( x11-libs/libXaw3d )
+ x11-libs/libXpm
+ !Xaw3d? ( x11-libs/libXaw )
+ x11-libs/libX11
+ x11-libs/libXt
+ x11-libs/libXmu
+ default-font? ( media-fonts/font-adobe-100dpi )"
+DEPEND="${RDEPEND}
+ x11-proto/xproto"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}*
+ eautoreconf
+}
+
+src_configure() {
+ egamesconf \
+ --disable-dependency-tracking \
+ --datadir="${GAMES_DATADIR}"/${PN} \
+ --localedir=/usr/share/locale \
+ $(use_with Xaw3d) \
+ $(use_enable zippy)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS COPYRIGHT ChangeLog NEWS README TODO ics-parsing.txt
+ use zippy && dodoc zippy.README
+ dohtml FAQ.html
+ doicon "${DISTDIR}"/xboard.png
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "No chess engines are emerged by default! If you want a chess engine"
+ elog "to play with, you can emerge gnuchess or crafty."
+ elog "Read xboard FAQ for information."
+ if ! use default-font ; then
+ ewarn "Read the xboard(6) man page for specifying the font for xboard to use."
+ fi
+}