games-arcade/yarsrevenge: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Wed, 25 Apr 2018 18:26:02 +0000 (20:26 +0200)
committerPacho Ramos <pacho@gentoo.org>
Wed, 25 Apr 2018 18:29:40 +0000 (20:29 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-arcade/yarsrevenge/files/0.99-math.patch
games-arcade/yarsrevenge/files/yarsrevenge-0.99-gcc43.patch
games-arcade/yarsrevenge/files/yarsrevenge-0.99-gcc44.patch
games-arcade/yarsrevenge/yarsrevenge-0.99-r1.ebuild [new file with mode: 0644]

index 5d7d4619d9c594d28ba1c07bbe0c0319141b9ef9..5e1136972325bf589375a46a20073f95025c2e75 100644 (file)
@@ -1,5 +1,5 @@
---- yar/graphics.cpp.orig      2004-06-02 14:14:38.174071320 -0400
-+++ yar/graphics.cpp           2004-06-02 14:14:50.352219960 -0400
+--- a/yar/graphics.cpp.orig    2004-06-02 14:14:38.174071320 -0400
++++ b/yar/graphics.cpp         2004-06-02 14:14:50.352219960 -0400
 @@ -18,2 +18,3 @@
  #include "yar.hxx"
 +#include <cmath>
index fe32b6c74e6c0b3ef62a795d62087e624bae3dd9..511fad0091e189420da69eeee356473b6058782c 100644 (file)
@@ -1,5 +1,5 @@
---- yar/sgw.hxx
-+++ yar/sgw.hxx
+--- a/yar/sgw.hxx
++++ b/yar/sgw.hxx
 @@ -24,6 +24,7 @@
  \r
  #include <iostream>\r
index fca41cfbdf35bdb508518aa1816a7759409b5d9e..29a52125c904b08ce9882beac65f671476dff79b 100644 (file)
@@ -1,5 +1,5 @@
---- yar/game.cpp
-+++ yar/game.cpp
+--- a/yar/game.cpp
++++ b/yar/game.cpp
 @@ -15,6 +15,7 @@
   *                                                                         *
   ***************************************************************************/
diff --git a/games-arcade/yarsrevenge/yarsrevenge-0.99-r1.ebuild b/games-arcade/yarsrevenge/yarsrevenge-0.99-r1.ebuild
new file mode 100644 (file)
index 0000000..b692357
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="Remake of the Atari 2600 classic Yar's Revenge"
+HOMEPAGE="http://freshmeat.net/projects/yarsrevenge/"
+SRC_URI="http://www.autismuk.freeserve.co.uk/yar-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,joystick,video]"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/yar-${PV}"
+
+PATCHES=(
+       "${FILESDIR}"/${PV}-math.patch
+       "${FILESDIR}"/${P}-gcc43.patch
+       "${FILESDIR}"/${P}-gcc44.patch
+)
+
+src_install() {
+       default
+       make_desktop_entry "${PN}" "Yar's Revenge"
+}