1 |
commit: d5a9e8f9d7c8bb5e9221e1376e4e165c89efbe1b |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Thu Sep 23 17:59:32 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 24 07:25:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5a9e8f9 |
7 |
|
8 |
games-board/phalanx: EAPI8, minor improvements |
9 |
|
10 |
Package-Manager: Portage-3.0.23, Repoman-3.0.3 |
11 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/22378 |
13 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
14 |
|
15 |
games-board/phalanx/phalanx-22-r1.ebuild | 21 ++++++++++----------- |
16 |
1 file changed, 10 insertions(+), 11 deletions(-) |
17 |
|
18 |
diff --git a/games-board/phalanx/phalanx-22-r1.ebuild b/games-board/phalanx/phalanx-22-r1.ebuild |
19 |
index cb72a63812f..36eae23cc9d 100644 |
20 |
--- a/games-board/phalanx/phalanx-22-r1.ebuild |
21 |
+++ b/games-board/phalanx/phalanx-22-r1.ebuild |
22 |
@@ -1,30 +1,27 @@ |
23 |
-# Copyright 1999-2018 Gentoo Foundation |
24 |
+# Copyright 1999-2021 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI=6 |
28 |
+EAPI=8 |
29 |
+ |
30 |
inherit toolchain-funcs |
31 |
|
32 |
-MY_PN="Phalanx" |
33 |
-MY_PV="XXII" |
34 |
-MY_P="${MY_PN}-${MY_PV}" |
35 |
+MY_P="${PN^}-XXII" |
36 |
|
37 |
-DESCRIPTION="A chess engine suitable for beginner and intermediate players" |
38 |
+DESCRIPTION="Chess engine suitable for beginner and intermediate players" |
39 |
HOMEPAGE="http://phalanx.sourceforge.net/" |
40 |
SRC_URI="mirror://sourceforge/phalanx/${MY_P}.tar.gz" |
41 |
+S="${WORKDIR}/${MY_P}" |
42 |
|
43 |
-LICENSE="GPL-2" |
44 |
+LICENSE="GPL-2+" |
45 |
SLOT="0" |
46 |
KEYWORDS="~amd64 ~x86" |
47 |
-IUSE="" |
48 |
- |
49 |
-S="${WORKDIR}/${MY_P}" |
50 |
|
51 |
src_compile() { |
52 |
# configure is not used in the project; confs are in Makefile, |
53 |
# and here we override them: |
54 |
local define="-DGNUFUN" myvar |
55 |
for myvar in "PBOOK" "SBOOK" "LEARN" ; do |
56 |
- define="${define} -D${myvar}_DIR=\"\\\"/usr/share/${PN}\\\"\"" |
57 |
+ define="${define} -D${myvar}_DIR=\"\\\"${EPREFIX}/usr/share/${PN}\\\"\"" |
58 |
done |
59 |
emake \ |
60 |
DEFINES="${define}" \ |
61 |
@@ -35,7 +32,9 @@ src_compile() { |
62 |
|
63 |
src_install() { |
64 |
dobin phalanx |
65 |
+ |
66 |
insinto /usr/share/${PN} |
67 |
doins pbook.phalanx sbook.phalanx learn.phalanx |
68 |
+ |
69 |
einstalldocs |
70 |
} |