games-puzzle/quadra: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 13:59:47 +0000 (15:59 +0200)
committerPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 19:34:04 +0000 (21:34 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-puzzle/quadra/files/quadra-1.2.0-format.patch
games-puzzle/quadra/quadra-1.2.0-r1.ebuild [new file with mode: 0644]

index d9db4978290ffde7d5e5a84874e0164be4a4662a..ca56f5b4cc0022c5d6365ed9608866030b652d80 100644 (file)
@@ -1,5 +1,5 @@
---- source/net_list.cpp.old    2015-12-08 21:41:16.782404098 +0100
-+++ source/net_list.cpp        2015-12-08 21:41:33.153114600 +0100
+--- a/source/net_list.cpp.old  2015-12-08 21:41:16.782404098 +0100
++++ b/source/net_list.cpp      2015-12-08 21:41:33.153114600 +0100
 @@ -693,7 +693,7 @@
                                //Drawn at a total higher or equal to end_value: suspense!
                                //  or maybe timer just elapsed and the game is drawn
diff --git a/games-puzzle/quadra/quadra-1.2.0-r1.ebuild b/games-puzzle/quadra/quadra-1.2.0-r1.ebuild
new file mode 100644 (file)
index 0000000..4f77d48
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="A tetris clone with multiplayer support"
+HOMEPAGE="https://github.com/quadra-game/quadra"
+SRC_URI="https://github.com/${PN}-game/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+       x11-libs/libX11
+       x11-libs/libXpm
+       x11-libs/libXxf86vm
+       x11-libs/libXext
+       media-libs/libpng:0=
+       sys-libs/zlib
+"
+DEPEND="${RDEPEND}
+       sys-devel/bc
+       x11-proto/xextproto
+"
+
+src_prepare() {
+       default
+       sed -i \
+               -e "/^libgamesdir:=/s:/games:/${PN}:" \
+               -e "/^datagamesdir:=/s:/games:/${PN}:" \
+               config/config.mk.in || die
+       eapply "${FILESDIR}"/${P}-format.patch
+}
+
+src_install() {
+       dobin ${PN}
+       insinto /usr/share/${PN}
+       doins ${PN}.res
+       doicon images/${PN}.xpm
+       make_desktop_entry ${PN} Quadra
+
+       HTML_DOCS="help/*" einstalldocs
+}