summaryrefslogtreecommitdiff
path: root/games-board/xscrabble
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-04-28 20:21:43 +0100
commit40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch)
tree758c221bad35c9288d0bd6df9c7dfc226728e52c /games-board/xscrabble
parent8d5dbd847cbc704a6a06405856e94b461011afe3 (diff)
gentoo resync : 28.04.2021
Diffstat (limited to 'games-board/xscrabble')
-rw-r--r--games-board/xscrabble/Manifest7
-rw-r--r--games-board/xscrabble/files/xscrabble-2.10-build.patch4
-rw-r--r--games-board/xscrabble/files/xscrabble-2.10-implicit-declaration.patch12
-rw-r--r--games-board/xscrabble/files/xscrabble-2.10-path-fixes.patch8
-rw-r--r--games-board/xscrabble/xscrabble-2.10-r2.ebuild56
-rw-r--r--games-board/xscrabble/xscrabble-2.10-r4.ebuild97
6 files changed, 119 insertions, 65 deletions
diff --git a/games-board/xscrabble/Manifest b/games-board/xscrabble/Manifest
index 7600f8356bde..4a9f853c836e 100644
--- a/games-board/xscrabble/Manifest
+++ b/games-board/xscrabble/Manifest
@@ -1,7 +1,8 @@
-AUX xscrabble-2.10-build.patch 305 BLAKE2B a1663515d317f57f534ed94eaea2059b80583826e9b1d831972d8d7eef635cc9c0182f81f70e42d7df6f521ece481d10d7f20b158257f0efee4c08870cb38019 SHA512 f62fba061b464ae9ff4f4e5c15196ac921760e7f6bfe7432a33c157e405a4784ebaa45a08e67ee191faf62f0dc447559df8f73b91d819d4f6d4e3470c335c07e
-AUX xscrabble-2.10-path-fixes.patch 1106 BLAKE2B 4730587df34bc407403624659d9f6d43c0fa2c6aa46fe06f615ed390590c468780c9521d14ec312b429f2a41d60e6dbdb712a52f1e5fb27b9c3e9449b1f1d1af SHA512 50be14204d8b8c4f13153bcdab855c0fac27639d7a09844a5aae794bf3dbdaf1da6b8aa15ac065d2d35f47c47dfa0bec89e4c9f6231a4a7f2b9a095710c912d4
+AUX xscrabble-2.10-build.patch 309 BLAKE2B 99b1e6b3b361f7343560e39b6a3114f8d6de71077dd54de53488937bb404290101dd9b2e5f148947f1c4c82a91f52c3337c547be2f64a8c4e0679fd5ec70bc32 SHA512 4b5a5c88d41400ca82549d1b01fea64d1cce5cc8f3cb1c4d6c1be9bd028c814d3aa14583c56786917757e09cb3c18898a0059f82f4c979f423b746a896de7dc6
+AUX xscrabble-2.10-implicit-declaration.patch 244 BLAKE2B 8fe268dbd47e643fb8438218dc69a4edbbcef7e55c5e482e14ac79e78b53bf6c74a63c6915ecf92611e85cc12f6a34345ce03adb8609e702674ef697683cd002 SHA512 403ff36897f7de466acaa95e4e8adf7dc096c73c1b0d90988962487465c0ee4078a2905d6a92d3740867cd5fbfdf5c6ec5eeec3a58c55dd2dbe249a20344c01f
+AUX xscrabble-2.10-path-fixes.patch 1098 BLAKE2B d0144aa6d8d81a30d43f6359bc4562a3d62aca10bcfc243efcec562c598bd67ba509889e1e68facbbf66cb5e1e2739fd6d04e3829ada60798e3bf3cc368be09f SHA512 0c33331e6704f384341e27356dd0974a26316b38a54f23f6370b989c85b7c080a90ad1ae7fd7aed776a66fbfa8a4a4abb5c37ee3cb63403913b8134ee0a88baa
DIST xscrabble-2.10.tgz 83575 BLAKE2B 0a7ac0713e8b48eaf770d11d8ddf5fc383f870437dbc12b6e90df3fb4c28559e28523f46461e306dde59a68cebf58e854959e58ec688201223eec9825e3c5e7a SHA512 38137b3dfd3156c3748719136a30fbc7f04910538bdbdec3e9d50e3efe326ab7119a45171e0fa2cd95cd81f0642070e2e011c165284766eb7a14bd7d2aa660db
DIST xscrabble_en.tgz 393527 BLAKE2B 3f5b9d8030ba2711e64b2cc015f8662bdcfc2d3155d34b17be243a57e8c7dc3e4ad5fc6414c745654a8ea5771a9914d38bf5ce95b42e9b7daa70907bd9105b06 SHA512 05e4bca6ec2a9b7698f5c266bf5cede574cbef87883d7cac6dc35084fa2976dcd23f3a2215b674b9f36d7c170e6af021c3ec0884f06c9803cd67ec300651ac41
DIST xscrabble_fr.tgz 810737 BLAKE2B 26f5601f5d09232a5145c66d1d359c7a6b389a83f10c1ebcddc7579160d417e0b0b9e5bccf7322128451f3941cdeb2177b26f4ddf9a8224ffd551d95f4a83d72 SHA512 f5425fa8bffec57e6eff16a3d33ae4569fc00343e0ed5e4f4e1e189ed02a5be7416c1549b1978042e030efbfb3a484abcac9479e7fe43de929b11d8ccf8ea3e1
-EBUILD xscrabble-2.10-r2.ebuild 1421 BLAKE2B 2e5785de0a18a84a4c1a5bae22df2c71a2c257b5f3b263c6fa6cdfe13a886417989bc57b8a3181366495ff350851b91bc4d1fae285379c1698e51169d654e2d8 SHA512 5aaa92eb29a78257e9c1f1908b2ef22798896ac2902169e5eb05eb50b881c7daa1187c316285e9b2e7b40f7944667784ce124b3bc2b8adf576a78540f963317e
+EBUILD xscrabble-2.10-r4.ebuild 2019 BLAKE2B 2abd60909f97c7f184246e9cd6ffb609a091ce3d1d94d403aa12159df2ff7d0c829a3a31bbb370539c6f11c8213e691dda1851f47aeb0d33f9ba8311ef006bfd SHA512 7b23fff9af603d63a0978f3089f80dae71fd768d6417a23222c56abb29a3f6e20ff8e0894704d5a854f09faa9d0524d1ae4d7f318cc98750d08621d71024a10b
MISC metadata.xml 330 BLAKE2B 12712dc48fa06f3a64f7e994b853cc26c78eec98d147e1eba89bfd0ae58a134090376b18738090e3d929835cd596afc6fb9efe13dfe631cd8e8444b890470fdf SHA512 eb06666ebcaeac24c97b66c25652551043abae3bcd2764cd95f1d94ab8422a178fb5358d2aa655b75d254462120d36a87e64a2decb0c8a7ac255015ec1ee057e
diff --git a/games-board/xscrabble/files/xscrabble-2.10-build.patch b/games-board/xscrabble/files/xscrabble-2.10-build.patch
index 7d5214c7db34..c290475e482b 100644
--- a/games-board/xscrabble/files/xscrabble-2.10-build.patch
+++ b/games-board/xscrabble/files/xscrabble-2.10-build.patch
@@ -1,7 +1,7 @@
respect compiler, ldflags and cflags
---- build
-+++ build
+--- a/build
++++ b/build
@@ -36,7 +36,7 @@
#define RULES_FILE \"$LIBDIR/en/scrabble_rules\"
" > src/config.h
diff --git a/games-board/xscrabble/files/xscrabble-2.10-implicit-declaration.patch b/games-board/xscrabble/files/xscrabble-2.10-implicit-declaration.patch
new file mode 100644
index 000000000000..88c9cd680e99
--- /dev/null
+++ b/games-board/xscrabble/files/xscrabble-2.10-implicit-declaration.patch
@@ -0,0 +1,12 @@
+diff --git a/src/xutils.c b/src/xutils.c
+index 25478df..26e3277 100644
+--- a/src/xutils.c
++++ b/src/xutils.c
+@@ -22,6 +22,7 @@
+ #include <X11/Xaw/Simple.h>
+ #include <X11/xpm.h>
+ #include <stdio.h>
++#include <stdlib.h>
+
+ #include "xutils.h"
+
diff --git a/games-board/xscrabble/files/xscrabble-2.10-path-fixes.patch b/games-board/xscrabble/files/xscrabble-2.10-path-fixes.patch
index 27a18689b1ed..5a0fe1a7e7d5 100644
--- a/games-board/xscrabble/files/xscrabble-2.10-path-fixes.patch
+++ b/games-board/xscrabble/files/xscrabble-2.10-path-fixes.patch
@@ -1,5 +1,5 @@
---- build
-+++ build
+--- a/build
++++ b/build
@@ -1,9 +1,10 @@
#!/bin/sh
@@ -9,8 +9,8 @@
-LIBDIR=/usr/games/lib/scrabble
+APPDEFAULTS=$DESTDIR/usr/$LIBDIR/X11/app-defaults
+REAL_APPDEFAULTS=/usr/$LIBDIR/X11/app-defaults
-+BINDIR=$DESTDIR/usr/games/bin
-+LIBDIR=$DESTDIR/usr/share/games/xscrabble
++BINDIR=$DESTDIR/usr/bin
++LIBDIR=$DESTDIR/usr/share/xscrabble
# Version (don't modify without knowing!!)
MAJOR=2
diff --git a/games-board/xscrabble/xscrabble-2.10-r2.ebuild b/games-board/xscrabble/xscrabble-2.10-r2.ebuild
deleted file mode 100644
index 2ea0730cfc70..000000000000
--- a/games-board/xscrabble/xscrabble-2.10-r2.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# 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
-}
diff --git a/games-board/xscrabble/xscrabble-2.10-r4.ebuild b/games-board/xscrabble/xscrabble-2.10-r4.ebuild
new file mode 100644
index 000000000000..f60f7b5ce43f
--- /dev/null
+++ b/games-board/xscrabble/xscrabble-2.10-r4.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+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"
+
+DEPEND="x11-libs/libXaw"
+RDEPEND="
+ ${DEPEND}
+ acct-group/gamestat
+ !<x11-terms/kterm-6.2.0-r7
+"
+BDEPEND="
+ x11-misc/gccmakedep
+ >=x11-misc/imake-1.0.8-r1
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-path-fixes.patch
+ "${FILESDIR}"/${P}-build.patch
+ "${FILESDIR}"/${P}-implicit-declaration.patch
+)
+
+src_unpack() {
+ unpack ${P}.tgz
+ cp "${DISTDIR}"/xscrabble_en.tgz . || die
+
+ if use l10n_fr ; then
+ cp "${DISTDIR}"/xscrabble_fr.tgz . || die
+ fi
+}
+
+src_prepare() {
+ default
+
+ # Don't strip binaries
+ sed -i '/install/s/-s //' build || die
+ # Respect AR, RANLIB
+ sed -i 's/CC="${CC}"/& AR="${AR} cq" RANLIB="${RANLIB}"/' build || die
+}
+
+src_configure() {
+ tc-export AR CC LD RANLIB
+ export IMAKECPP=${IMAKECPP:-$(tc-getCPP)}
+}
+
+src_compile() {
+ ./build bin || die "build failed"
+}
+
+src_install() {
+ export DESTDIR="${ED}" 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"
+
+ local f
+ for f in "${ED}/usr/$(get_libdir)"/X11/app-defaults/* ; do
+ [[ -L ${f} ]] && continue
+ sed -i \
+ -e "s:/usr/games/lib/scrabble/:/usr/share/${PN}/:" \
+ -e "s:fr/eng:fr/en:" \
+ ${f} || die "sed ${f} failed"
+ done
+
+ dodoc CHANGES README
+
+ local paths=( /usr/share/${PN}/en/scrabble_scores )
+ if use l10n_fr ; then
+ paths+=( /usr/share/${PN}/fr/scrabble_scores )
+ fi
+
+ local path
+ for path in ${paths[@]} ; do
+ fowners root:gamestat ${path}
+ fperms 660 ${path}
+ done
+
+ fperms g+s /usr/bin/${PN}
+}