Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/knights-demo/
Date: Wed, 02 May 2018 19:28:34
Message-Id: 1525289264.ddbb4e5b4011bd489929cb631af98827df6764d8.pacho@gentoo
1 commit: ddbb4e5b4011bd489929cb631af98827df6764d8
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 2 17:54:00 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Wed May 2 19:27:44 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddbb4e5b
7
8 games-strategy/knights-demo: Stop using games.eclass
9
10 Package-Manager: Portage-2.3.31, Repoman-2.3.9
11
12 .../knights-demo/knights-demo-1.32-r2.ebuild | 49 ++++++++++++++++++++++
13 1 file changed, 49 insertions(+)
14
15 diff --git a/games-strategy/knights-demo/knights-demo-1.32-r2.ebuild b/games-strategy/knights-demo/knights-demo-1.32-r2.ebuild
16 new file mode 100644
17 index 00000000000..d314a019ee7
18 --- /dev/null
19 +++ b/games-strategy/knights-demo/knights-demo-1.32-r2.ebuild
20 @@ -0,0 +1,49 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +inherit eutils unpacker
26 +
27 +DESCRIPTION="Anglo-Saxon medieval army battles and resource management"
28 +HOMEPAGE="http://www.linuxgamepublishing.com/info.php?id=knights"
29 +# Unversioned upstream filename
30 +SRC_URI="mirror://gentoo/${P}.run"
31 +
32 +LICENSE="knights-demo"
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~x86"
35 +IUSE=""
36 +RESTRICT="strip"
37 +
38 +RDEPEND="
39 + sys-libs/glibc
40 + >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
41 + >=x11-libs/libXau-1.0.7-r1[abi_x86_32(-)]
42 + >=x11-libs/libXdmcp-1.1.1-r1[abi_x86_32(-)]
43 + >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
44 + >=x11-libs/libXi-1.7.2[abi_x86_32(-)]
45 +"
46 +S="${WORKDIR}"
47 +
48 +src_unpack() {
49 + unpack_makeself ${P}.run
50 + mv -f data{,-temp}
51 + unpack ./data-temp/data.tar.gz
52 + rm -rf data-temp lgp_* setup*
53 +}
54 +
55 +src_install() {
56 + local dir=/opt/${PN}
57 +
58 + exeinto "${dir}"
59 + doexe bin/Linux/x86/${PN}{,.dynamic}
60 +
61 + insinto "${dir}"
62 + doins -r data
63 + doins EULA icon.xpm README{,.licenses}
64 +
65 + # We don't support the dynamic version, even though we install it.
66 + make_wrapper ${PN} ./${PN} "${dir}" "${dir}"
67 + newicon icon.xpm ${PN}.xpm
68 + make_desktop_entry ${PN} "Knights and Merchants (Demo)" ${PN}
69 +}