summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-07 08:34:57 +0100
committerSam James <sam@gentoo.org>2021-04-07 09:10:33 +0100
commit553481e83cc750fa0af9ff1a2f15ecfd9090491a (patch)
treed43d02a170701b9d3b7d7cf25d01a13bcec138ef /games-board/xscrabble
parentgames-arcade/epiar: add sdl-mixer dependency (diff)
downloadgentoo-553481e83cc750fa0af9ff1a2f15ecfd9090491a.tar.gz
gentoo-553481e83cc750fa0af9ff1a2f15ecfd9090491a.tar.bz2
gentoo-553481e83cc750fa0af9ff1a2f15ecfd9090491a.zip
games-board/xscrabble: fix Prefix install, respect AR and RANLIB
Not yet figured out LD, though. Bug: https://bugs.gentoo.org/779973 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-board/xscrabble')
-rw-r--r--games-board/xscrabble/xscrabble-2.10-r3.ebuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/games-board/xscrabble/xscrabble-2.10-r3.ebuild b/games-board/xscrabble/xscrabble-2.10-r3.ebuild
index 26dd3487df37..fd0c07b9bb08 100644
--- a/games-board/xscrabble/xscrabble-2.10-r3.ebuild
+++ b/games-board/xscrabble/xscrabble-2.10-r3.ebuild
@@ -43,11 +43,15 @@ src_unpack() {
src_prepare() {
default
- sed -i '/install/s/-s //' build || die "sed failed"
+
+ # Don't strip binaries
+ sed -i '/install/s/-s //' build || die
+ # Respect AR, RANLIB
+ sed -i 's/CC="${CC}"/& AR="${AR} clq" RANLIB="${RANLIB}"/' build || die
}
src_configure() {
- tc-export CC
+ tc-export AR CC RANLIB
}
src_compile() {
@@ -55,7 +59,7 @@ src_compile() {
}
src_install() {
- export DESTDIR="${D}" LIBDIR="$(get_libdir)"
+ export DESTDIR="${ED}" LIBDIR="$(get_libdir)"
./build install || die "install failed"
@@ -66,7 +70,7 @@ src_install() {
./build lang en || die "en failed"
local f
- for f in "${ED}/usr/${LIBDIR}"/X11/app-defaults/* ; do
+ 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}/:" \