Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/teg/
Date: Thu, 07 Feb 2019 23:03:58
Message-Id: 1549580616.46fd3b34a333fbe516d901f955687c9367e663c0.monsieurp@gentoo
1 commit: 46fd3b34a333fbe516d901f955687c9367e663c0
2 Author: William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com>
3 AuthorDate: Thu Dec 20 10:50:57 2018 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 7 23:03:36 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46fd3b34
7
8 games-board/teg: add support for teg configure options.
9
10 The client, debug, ggz, robot, and server USE flag options are added.
11 The htmltidy package is obsolete, so the respective dependency is
12 replaced with a tidy-html5 dependency. In addition, the metadata.xml
13 file is updated with a long description of the project, descriptions for
14 the new flags, and a switch to the Github upstream remote id. The
15 project release is now pulled from the project Github page, where the
16 project moved from Sourceforge.
17
18 Closes: https://bugs.gentoo.org/671448
19 Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com>
20 Closes: https://github.com/gentoo/gentoo/pull/10668
21 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
22
23 games-board/teg/metadata.xml | 14 +++++++++++++-
24 games-board/teg/teg-0.11.2-r1.ebuild | 31 +++++++++++++++++++++++++++++++
25 2 files changed, 44 insertions(+), 1 deletion(-)
26
27 diff --git a/games-board/teg/metadata.xml b/games-board/teg/metadata.xml
28 index 41e6e7c75fc..db57e70627e 100644
29 --- a/games-board/teg/metadata.xml
30 +++ b/games-board/teg/metadata.xml
31 @@ -1,11 +1,23 @@
32 <?xml version="1.0" encoding="UTF-8"?>
33 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 <pkgmetadata>
35 + <longdescription lang="en">
36 + Tenes Empanadas Graciela (TEG) is a clone of 'Plan Tactico y
37 + Estrategico de la Guerra', which is a pseudo-clone of Risk, a
38 + multiplayer turn-based strategy game.
39 + </longdescription>
40 <maintainer type="project">
41 <email>games@g.o</email>
42 <name>Gentoo Games Project</name>
43 </maintainer>
44 + <use>
45 + <flag name="client">Compile the client</flag>
46 + <flag name="debug">Turn on debugging</flag>
47 + <flag name="ggz">Enable GGZ Gaming Zone support</flag>
48 + <flag name="robot">Compile the robot</flag>
49 + <flag name="server">Compile the server</flag>
50 + </use>
51 <upstream>
52 - <remote-id type="sourceforge">teg</remote-id>
53 + <remote-id type="github">wfx/teg</remote-id>
54 </upstream>
55 </pkgmetadata>
56
57 diff --git a/games-board/teg/teg-0.11.2-r1.ebuild b/games-board/teg/teg-0.11.2-r1.ebuild
58 new file mode 100644
59 index 00000000000..63ae34a6c6d
60 --- /dev/null
61 +++ b/games-board/teg/teg-0.11.2-r1.ebuild
62 @@ -0,0 +1,31 @@
63 +# Copyright 1999-2015 Gentoo Foundation
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=6
67 +inherit gnome2
68 +
69 +DESCRIPTION="Gnome Risk Clone"
70 +HOMEPAGE="https://github.com/wfx/teg"
71 +SRC_URI="https://github.com/wfx/teg/archive/${PV}.tar.gz -> ${P}.tar.gz"
72 +
73 +LICENSE="GPL-2"
74 +SLOT="0"
75 +KEYWORDS="~amd64 ~ppc64 ~x86"
76 +IUSE="+client debug ggz nls robot server"
77 +
78 +RDEPEND="dev-libs/glib:2
79 + gnome-base/libgnomeui
80 + gnome-base/libgnome
81 + nls? ( virtual/libintl )"
82 +DEPEND="${RDEPEND}
83 + app-text/tidy-html5
84 + nls? ( sys-devel/gettext )"
85 +
86 +src_configure() {
87 + econf \
88 + $(use_enable client) \
89 + $(use_enable debug) \
90 + $(use_enable ggz) \
91 + $(use_enable robot) \
92 + $(use_enable server)
93 +}