games-board/teg: add support for teg configure options.
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Thu, 20 Dec 2018 10:50:57 +0000 (19:50 +0900)
committerPatrice Clement <monsieurp@gentoo.org>
Thu, 7 Feb 2019 23:03:36 +0000 (00:03 +0100)
The client, debug, ggz, robot, and server USE flag options are added.
The htmltidy package is obsolete, so the respective dependency is
replaced with a tidy-html5 dependency. In addition, the metadata.xml
file is updated with a long description of the project, descriptions for
the new flags, and a switch to the Github upstream remote id. The
project release is now pulled from the project Github page, where the
project moved from Sourceforge.

Closes: https://bugs.gentoo.org/671448
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/10668
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
games-board/teg/metadata.xml
games-board/teg/teg-0.11.2-r1.ebuild [new file with mode: 0644]

index 41e6e7c75fced4b1bc88fa96556d9a800961ad76..db57e70627eabf62d276866c99e1279c2564ead3 100644 (file)
@@ -1,11 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
+       <longdescription lang="en">
+               Tenes Empanadas Graciela (TEG) is a clone of 'Plan Tactico y
+               Estrategico de la Guerra', which is a pseudo-clone of Risk, a
+               multiplayer turn-based strategy game.
+       </longdescription>
        <maintainer type="project">
                <email>games@gentoo.org</email>
                <name>Gentoo Games Project</name>
        </maintainer>
+       <use>
+               <flag name="client">Compile the client</flag>
+               <flag name="debug">Turn on debugging</flag>
+               <flag name="ggz">Enable GGZ Gaming Zone support</flag>
+               <flag name="robot">Compile the robot</flag>
+               <flag name="server">Compile the server</flag>
+       </use>
        <upstream>
-               <remote-id type="sourceforge">teg</remote-id>
+               <remote-id type="github">wfx/teg</remote-id>
        </upstream>
 </pkgmetadata>
diff --git a/games-board/teg/teg-0.11.2-r1.ebuild b/games-board/teg/teg-0.11.2-r1.ebuild
new file mode 100644 (file)
index 0000000..63ae34a
--- /dev/null
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="Gnome Risk Clone"
+HOMEPAGE="https://github.com/wfx/teg"
+SRC_URI="https://github.com/wfx/teg/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="+client debug ggz nls robot server"
+
+RDEPEND="dev-libs/glib:2
+       gnome-base/libgnomeui
+       gnome-base/libgnome
+       nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+       app-text/tidy-html5
+       nls? ( sys-devel/gettext )"
+
+src_configure() {
+       econf \
+               $(use_enable client) \
+               $(use_enable debug) \
+               $(use_enable ggz) \
+               $(use_enable robot) \
+               $(use_enable server)
+}