Gentoo Archives: gentoo-commits

From: Samuel Bauer <samuel.bauer@×××××.fr>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-action/blackvoxel/
Date: Mon, 03 May 2021 19:35:55
Message-Id: 1620070527.a1cc0bbf78ace25982570994ef1eac6a0093c46e.samuel.bauer@gentoo
1 commit: a1cc0bbf78ace25982570994ef1eac6a0093c46e
2 Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
3 AuthorDate: Mon May 3 19:35:27 2021 +0000
4 Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
5 CommitDate: Mon May 3 19:35:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a1cc0bbf
7
8 games-action/blackvoxel: integrate work from #787074 in live ebuild
9
10 Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
11
12 games-action/blackvoxel/blackvoxel-9999.ebuild | 13 ++++++++++++-
13 1 file changed, 12 insertions(+), 1 deletion(-)
14
15 diff --git a/games-action/blackvoxel/blackvoxel-9999.ebuild b/games-action/blackvoxel/blackvoxel-9999.ebuild
16 index d20271cef..2cdbbd8db 100644
17 --- a/games-action/blackvoxel/blackvoxel-9999.ebuild
18 +++ b/games-action/blackvoxel/blackvoxel-9999.ebuild
19 @@ -3,7 +3,7 @@
20
21 EAPI=7
22
23 -inherit git-r3
24 +inherit git-r3 toolchain-funcs
25
26 DESCRIPTION="Blackvoxel Video Game"
27 HOMEPAGE="https://www.blackvoxel.com/"
28 @@ -30,11 +30,22 @@ src_prepare() {
29 sed -i -e 's/LDFLAGS=/LDFLAGS+= /' -e '/LDFLAGS/s/-s -zrelro //' \
30 -e '/(CPU_BITS)/ { s/; make //; s/cd/+make -C/}' \
31 -e '/CFLAGS+/d' -e 's/CFLAGS=/CFLAGS+=/' \
32 + -e '/^CC=/d' -e 's/^LD=/CXX?=/' \
33 + -e 's/CFLAGS/CXXFLAGS/g' -e 's/\$(CC)/$(CXX)/' \
34 + -e 's/\$(LD)/$(CXX)/' \
35 Makefile || die
36 + sed -i -e 's/\<gcc\>/$(CC)/' -e 's/\<g++\>/$(CXX)/' \
37 + -e 's/\<ar\>/$(AR)/' src/sc_Squirrel3/squirrel/Makefile \
38 + src/sc_Squirrel3/sqstdlib/Makefile \
39 + src/sc_Squirrel3/sq/Makefile || die
40 default
41 }
42
43 src_compile() {
44 + export CXX="$(tc-getCXX)"
45 + export CC="$(tc-getCC)"
46 + export AR="$(tc-getAR)"
47 +
48 emake blackvoxeldatadir="/usr/share/${PN}" bindir="/usr/bin"
49 }