Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-rpg/wastesedge/files/, games-rpg/wastesedge/
Date: Fri, 02 Oct 2020 06:43:21
Message-Id: 1601620875.9988be2f15c96d5ef1773df8474099260b3aae22.juippis@gentoo
1 commit: 9988be2f15c96d5ef1773df8474099260b3aae22
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 9 17:18:32 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 2 06:41:15 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9988be2f
7
8 games-rpg/wastesedge: update to 0.3.8
9
10 Migrated to python3, minor fixes for EAPI7.
11
12 Closes: https://bugs.gentoo.org/735354
13 Package-Manager: Portage-3.0.4, Repoman-3.0.1
14 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
15 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
16
17 games-rpg/wastesedge/Manifest | 1 +
18 .../files/wastesedge-0.3.8_version-handling.patch | 35 ++++++++++++++++++++
19 games-rpg/wastesedge/wastesedge-0.3.8.ebuild | 37 ++++++++++++++++++++++
20 3 files changed, 73 insertions(+)
21
22 diff --git a/games-rpg/wastesedge/Manifest b/games-rpg/wastesedge/Manifest
23 index e2c72a27dd4..8af214741d5 100644
24 --- a/games-rpg/wastesedge/Manifest
25 +++ b/games-rpg/wastesedge/Manifest
26 @@ -1 +1,2 @@
27 DIST wastesedge-src-0.3.5.tar.gz 10749912 BLAKE2B ec4cd1135cd09c92937c8749905872b635e72575662bb7c1e188281e47ec0a285045aced378659fed20942c4bc7e67f11fa95e1cf0fe220c0be0f3b6527aa754 SHA512 d4c77eb1bde2c28002e4f56a6bfa5f816ea53de7061b5e60635f15c670ff45c3a18e3316b92007f74033a62538503f14b67e1175cf22c718c22ca1021dc7af3b
28 +DIST wastesedge-src-0.3.8.tar.gz 20779629 BLAKE2B 40a63298ea9b704407fcac244f22a3e26190fec37cb0dae0e18e55478d866a215a6be6e1bd08ef2d303894aca2edd09e7b299ae9c2da21d999f47c6d799fde83 SHA512 410e01d803b6ff72c4c0d8f035c5e3228c2311bc200359ecb748be63474ae0afb8609cc9daed940670d02190fa3c047ea2a2cd116b7680398cdcc7523a64c386
29
30 diff --git a/games-rpg/wastesedge/files/wastesedge-0.3.8_version-handling.patch b/games-rpg/wastesedge/files/wastesedge-0.3.8_version-handling.patch
31 new file mode 100644
32 index 00000000000..33f3eedad1e
33 --- /dev/null
34 +++ b/games-rpg/wastesedge/files/wastesedge-0.3.8_version-handling.patch
35 @@ -0,0 +1,35 @@
36 +From b3987b74cc6ff89187b95c692a4aacc13db98564 Mon Sep 17 00:00:00 2001
37 +From: "Azamat H. Hackimov" <azamat.hackimov@×××××.com>
38 +Date: Wed, 9 Sep 2020 20:01:41 +0300
39 +Subject: [PATCH] Rework adonthell version handling
40 +
41 +---
42 + configure.ac | 11 +++--------
43 + 1 file changed, 3 insertions(+), 8 deletions(-)
44 +
45 +diff --git a/configure.ac b/configure.ac
46 +index 76d87bd..fff8268 100644
47 +--- a/configure.ac
48 ++++ b/configure.ac
49 +@@ -46,15 +46,10 @@ fi
50 +
51 + dnl Checking for the proper version
52 + AC_MSG_CHECKING(for Adonthell's version)
53 +-$adonthell_binary -v &> adonthell.ver
54 +
55 +-changequote(<<, >>)
56 +-adonthell_major_ver=`sed 's/\([0-9]*\)\.[0-9]*\.[0-9]*/\1/p; d' adonthell.ver`
57 +-adonthell_minor_ver=`sed 's/[0-9]*\.\([0-9]*\)\.[0-9]*/\1/p; d' adonthell.ver`
58 +-adonthell_micro_ver=`sed 's/[0-9]*\.[0-9]*\.\([0-9]*\)/\1/p; d' adonthell.ver`
59 +-changequote([, ])
60 +-
61 +-rm -f adonthell.ver
62 ++adonthell_major_ver=$($adonthell_binary -v | cut -d'.' -f1)
63 ++adonthell_minor_ver=$($adonthell_binary -v | cut -d'.' -f2)
64 ++adonthell_micro_ver=$($adonthell_binary -v | cut -d'.' -f3)
65 +
66 + adonthellver="$adonthell_major_ver.$adonthell_minor_ver.$adonthell_micro_ver"
67 +
68 +--
69 +2.26.2
70 +
71
72 diff --git a/games-rpg/wastesedge/wastesedge-0.3.8.ebuild b/games-rpg/wastesedge/wastesedge-0.3.8.ebuild
73 new file mode 100644
74 index 00000000000..8e420c1b4f8
75 --- /dev/null
76 +++ b/games-rpg/wastesedge/wastesedge-0.3.8.ebuild
77 @@ -0,0 +1,37 @@
78 +# Copyright 1999-2020 Gentoo Authors
79 +# Distributed under the terms of the GNU General Public License v2
80 +
81 +EAPI=7
82 +PYTHON_COMPAT=( python3_{6,7,8} )
83 +
84 +inherit autotools python-single-r1
85 +
86 +DESCRIPTION="Role playing game to showcase the adonthell engine"
87 +HOMEPAGE="http://adonthell.nongnu.org/download/"
88 +SRC_URI="https://savannah.nongnu.org/download/adonthell/${PN}-src-${PV}.tar.gz"
89 +
90 +LICENSE="GPL-2"
91 +SLOT="0"
92 +KEYWORDS="~amd64 ~x86"
93 +
94 +IUSE="nls"
95 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
96 +
97 +RDEPEND="${PYTHON_DEPS}
98 + >=games-rpg/adonthell-0.3.8[${PYTHON_SINGLE_USEDEP}]
99 + nls? ( virtual/libintl )"
100 +BDEPEND="nls? ( sys-devel/gettext )"
101 +
102 +PATCHES=( "${FILESDIR}/${P}_version-handling.patch" )
103 +DOCS=( AUTHORS ChangeLog NEWS PLAYING README )
104 +
105 +src_prepare() {
106 + default
107 + eautoreconf
108 +}
109 +
110 +src_configure() {
111 + econf \
112 + $(use_enable nls) \
113 + --with-adonthell-binary="/usr/bin/adonthell"
114 +}