summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 17:46:27 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 17:46:27 +0000
commit97058967a7de1ca39bedfc34a737c18adedef2ab (patch)
tree1cb38f3487301fc029765267e06de600501406e9 /games-board/xscrabble
parentChanges to make the eclass more flexible (diff)
downloadgentoo-2-97058967a7de1ca39bedfc34a737c18adedef2ab.tar.gz
gentoo-2-97058967a7de1ca39bedfc34a737c18adedef2ab.tar.bz2
gentoo-2-97058967a7de1ca39bedfc34a737c18adedef2ab.zip
board board games
Diffstat (limited to 'games-board/xscrabble')
-rw-r--r--games-board/xscrabble/ChangeLog8
-rw-r--r--games-board/xscrabble/Manifest4
-rw-r--r--games-board/xscrabble/files/2.10-path-fixes.patch35
-rw-r--r--games-board/xscrabble/files/digest-xscrabble-2.103
-rw-r--r--games-board/xscrabble/xscrabble-2.10.ebuild44
5 files changed, 94 insertions, 0 deletions
diff --git a/games-board/xscrabble/ChangeLog b/games-board/xscrabble/ChangeLog
new file mode 100644
index 000000000000..589c1ea14ae5
--- /dev/null
+++ b/games-board/xscrabble/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for app-games/xscrabble
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/xscrabble/ChangeLog,v 1.1 2003/09/10 17:46:27 vapier Exp $
+
+*xscrabble-2.10 (15 Jul 2003)
+
+ 15 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by Brice Arnould <brice@projectgene.net> #24488.
diff --git a/games-board/xscrabble/Manifest b/games-board/xscrabble/Manifest
new file mode 100644
index 000000000000..3eaa5f359ef6
--- /dev/null
+++ b/games-board/xscrabble/Manifest
@@ -0,0 +1,4 @@
+MD5 c19e0ecddaa500074a5fa91392f2659b files/digest-xscrabble-2.10 184
+MD5 f6e1f3f73d71157779c68284da50e166 files/2.10-path-fixes.patch 1184
+MD5 acbda8865d400fa8ba380d3185ace4a6 ChangeLog 388
+MD5 e0275acd4d84d22937ad7b93ca553120 xscrabble-2.10.ebuild 1160
diff --git a/games-board/xscrabble/files/2.10-path-fixes.patch b/games-board/xscrabble/files/2.10-path-fixes.patch
new file mode 100644
index 000000000000..2023803ca4fb
--- /dev/null
+++ b/games-board/xscrabble/files/2.10-path-fixes.patch
@@ -0,0 +1,35 @@
+--- build~~ 2003-07-15 01:01:27.000000000 +0200
++++ build 2003-07-15 01:00:27.000000000 +0200
+@@ -1,9 +1,10 @@
+ #!/bin/sh
+
+ # Install defaults
+-APPDEFAULTS=/usr/lib/X11/app-defaults
+-BINDIR=/usr/games/bin
+-LIBDIR=/usr/games/lib/scrabble
++APPDEFAULTS=$DESTDIR/usr/X11R6/lib/X11/app-defaults
++REAL_APPDEFAULTS=/usr/X11R6/lib/X11/app-defaults
++BINDIR=$DESTDIR/usr/games/bin
++LIBDIR=$DESTDIR/usr/share/games/xscrabble
+
+ # Version (don't modify without knowing!!)
+ MAJOR=2
+@@ -53,6 +54,7 @@
+
+ if test "$1" = "install" ; then
+ mkdirhier $BINDIR
++ mkdir -p $APPDEFAULTS
+ echo "mkdirhier $BINDIR"
+ install -c -s src/xscrab $BINDIR
+ echo "install -c -s src/xscrab $BINDIR"
+@@ -90,8 +92,8 @@
+ echo "mv -f xscrabble_$2/app-defaults/XScrabble_$2 $APPDEFAULTS"
+ rm -f $APPDEFAULTS/XScrabble
+ echo "rm -f $APPDEFAULTS/XScrabble"
+- ln -fs $APPDEFAULTS/XScrabble_$2 $APPDEFAULTS/XScrabble
+- echo "ln -fs $APPDEFAULTS/XScrabble_$2 $APPDEFAULTS/XScrabble"
++ ln -fs $REAL_APPDEFAULTS/XScrabble_$2 $APPDEFAULTS/XScrabble
++ echo "ln -fs $REAL_APPDEFAULTS/XScrabble_$2 $APPDEFAULTS/XScrabble"
+ chmod a+rwx $LIBDIR/$2
+ chmod a+rw $LIBDIR/$2/scrabble_scores
+ rm -rf xscrabble_$2
diff --git a/games-board/xscrabble/files/digest-xscrabble-2.10 b/games-board/xscrabble/files/digest-xscrabble-2.10
new file mode 100644
index 000000000000..151724409093
--- /dev/null
+++ b/games-board/xscrabble/files/digest-xscrabble-2.10
@@ -0,0 +1,3 @@
+MD5 376531c836b62f81d2ac2281495b5030 xscrabble-2.10.tgz 83575
+MD5 be5e45715225ff524b5e7cdff164ed0d xscrabble_fr.tgz 810737
+MD5 791244c62c92fc2dfd1c524f1a25eb9f xscrabble_en.tgz 393527
diff --git a/games-board/xscrabble/xscrabble-2.10.ebuild b/games-board/xscrabble/xscrabble-2.10.ebuild
new file mode 100644
index 000000000000..d4e92b2145b3
--- /dev/null
+++ b/games-board/xscrabble/xscrabble-2.10.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/xscrabble/xscrabble-2.10.ebuild,v 1.1 2003/09/10 17:46:27 vapier Exp $
+
+inherit games eutils
+
+DESCRIPTION="An X11 clone of the well-known Scrabble"
+HOMEPAGE="http://freshmeat.net/projects/xscrabble/?topic_id=80"
+SRC_URI="ftp://ftp.ac-grenoble.fr/ge/educational_games/${P}.tgz
+ nls? ( ftp://ftp.ac-grenoble.fr/ge/educational_games/xscrabble_fr.tgz )
+ ftp://ftp.ac-grenoble.fr/ge/educational_games/xscrabble_en.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="nls"
+
+DEPEND="virtual/x11"
+
+src_unpack() {
+ unpack ${P}.tgz
+
+ cp ${DISTDIR}/xscrabble_en.tgz .
+ [ `use nls` ] && cp ${DISTDIR}/xscrabble_fr.tgz .
+
+ cd ${S}
+ epatch ${FILESDIR}/${PV}-path-fixes.patch
+}
+
+src_compile() {
+ ./build bin || die
+}
+
+src_install() {
+ export DESTDIR=${D}
+ ./build install || die
+ [ `use nls` ] && { ./build lang fr || die; }
+ ./build lang en || die
+ for f in ${D}/usr/X11R6/lib/X11/app-defaults/* ; do
+ sed -i "s:/usr/games/lib/scrabble/:${GAMES_DATADIR}/${PN}/:" ${f}
+ done
+ dodoc CHANGES README
+ prepgamesdirs
+}