summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2018-04-01 12:06:25 -0700
committerMatt Turner <mattst88@gentoo.org>2018-04-01 12:06:39 -0700
commitdd56a04df4c196732bae083100fd631f86105530 (patch)
treea79ee5b1c71c811716bed5d8131d03292159d02e /games-board/xscrabble/xscrabble-2.10-r2.ebuild
parentgames-misc/xcruiser: Drop unnecessary dependency on x11-libs/libXp (diff)
downloadgentoo-dd56a04df4c196732bae083100fd631f86105530.tar.gz
gentoo-dd56a04df4c196732bae083100fd631f86105530.tar.bz2
gentoo-dd56a04df4c196732bae083100fd631f86105530.zip
games-board/xscrabble: Drop unnecessary dependency on x11-libs/libXp
Closes: https://bugs.gentoo.org/649138
Diffstat (limited to 'games-board/xscrabble/xscrabble-2.10-r2.ebuild')
-rw-r--r--games-board/xscrabble/xscrabble-2.10-r2.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/games-board/xscrabble/xscrabble-2.10-r2.ebuild b/games-board/xscrabble/xscrabble-2.10-r2.ebuild
new file mode 100644
index 00000000000..2ea0730cfc7
--- /dev/null
+++ b/games-board/xscrabble/xscrabble-2.10-r2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils multilib games
+
+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
+ l10n_fr? ( 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="~amd64 ~x86"
+IUSE="l10n_fr"
+
+RDEPEND="x11-libs/libXaw"
+DEPEND="${RDEPEND}
+ x11-misc/gccmakedep
+ x11-misc/imake"
+
+src_unpack() {
+ unpack ${P}.tgz
+ cp "${DISTDIR}"/xscrabble_en.tgz .
+ use l10n_fr && cp "${DISTDIR}"/xscrabble_fr.tgz .
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-path-fixes.patch \
+ "${FILESDIR}"/${P}-build.patch
+ sed -i '/install/s/-s //' build || die "sed failed"
+}
+
+src_compile() {
+ ./build bin || die "build failed"
+}
+
+src_install() {
+ local f
+ export DESTDIR="${D}" LIBDIR="$(get_libdir)"
+ ./build install || die "install failed"
+ if use l10n_fr ; then
+ ./build lang fr || die "fr failed"
+ fi
+ ./build lang en || die "en failed"
+ for f in "${D}"/usr/"${LIBDIR}"/X11/app-defaults/* ; do
+ [[ -L ${f} ]] && continue
+ sed -i \
+ -e "s:/usr/games/lib/scrabble/:${GAMES_DATADIR}/${PN}/:" \
+ -e "s:fr/eng:fr/en:" \
+ ${f} || die "sed ${f} failed"
+ done
+ dodoc CHANGES README
+ prepgamesdirs
+}