Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/kajaani-kombat/
Date: Tue, 18 May 2021 22:01:04
Message-Id: 1621375258.7e781edca0032b004cf61b58e3fa348fbc6ef5f6.slyfox@gentoo
1 commit: 7e781edca0032b004cf61b58e3fa348fbc6ef5f6
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 18 21:49:28 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Tue May 18 22:00:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e781edc
7
8 games-arcade/kajaani-kombat: use tool-refixed $CXX
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 games-arcade/kajaani-kombat/kajaani-kombat-0.7-r1.ebuild | 16 +++++++++++-----
14 1 file changed, 11 insertions(+), 5 deletions(-)
15
16 diff --git a/games-arcade/kajaani-kombat/kajaani-kombat-0.7-r1.ebuild b/games-arcade/kajaani-kombat/kajaani-kombat-0.7-r1.ebuild
17 index 2aeaac0b139..f61f69728ca 100644
18 --- a/games-arcade/kajaani-kombat/kajaani-kombat-0.7-r1.ebuild
19 +++ b/games-arcade/kajaani-kombat/kajaani-kombat-0.7-r1.ebuild
20 @@ -1,8 +1,8 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 +# Copyright 1999-2021 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=6
26 -inherit desktop
27 +EAPI=7
28 +inherit desktop toolchain-funcs
29
30 DESCRIPTION="A rampart-like game set in space"
31 HOMEPAGE="http://kombat.kajaani.net/"
32 @@ -23,16 +23,22 @@ DEPEND="media-libs/libsdl[sound,video]
33 "
34 RDEPEND="${DEPEND}"
35
36 +PATCHES=(
37 + "${FILESDIR}"/${PV}-makefile.patch
38 + "${FILESDIR}"/${P}-ldflags.patch
39 +)
40 +
41 src_prepare() {
42 default
43 - eapply "${FILESDIR}/${PV}-makefile.patch" \
44 - "${FILESDIR}"/${P}-ldflags.patch
45 +
46 sed -i \
47 -e "s:GENTOODIR:/usr/share/${PN}/:" \
48 Makefile || die
49 sed -i \
50 -e 's/IMG_Load/img_load/' \
51 gui_screens.cpp || die
52 +
53 + tc-export CXX
54 }
55
56 src_install() {