games-arcade/late: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Sun, 22 Apr 2018 09:13:57 +0000 (11:13 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 22 Apr 2018 09:13:57 +0000 (11:13 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-arcade/late/files/late-0.1.0-gcc43.patch
games-arcade/late/late-0.1.0-r1.ebuild [new file with mode: 0644]

index bce26464cf043a4789ace18f5e186c67b889b32c..8cfead22a27dfb1b4af97fe394feba8c01da5c19 100644 (file)
@@ -1,5 +1,5 @@
---- src/init.cpp
-+++ src/init.cpp
+--- a/src/init.cpp
++++ b/src/init.cpp
 @@ -26,6 +26,8 @@
  #include "scorescreen.h"
  #include <fstream>
diff --git a/games-arcade/late/late-0.1.0-r1.ebuild b/games-arcade/late/late-0.1.0-r1.ebuild
new file mode 100644 (file)
index 0000000..dd837c5
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="A game, similar to Barrack by Ambrosia Software"
+HOMEPAGE="http://late.sourceforge.net/"
+SRC_URI="mirror://sourceforge/late/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[video]
+       media-libs/sdl-image[jpeg]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       default
+       eapply \
+               "${FILESDIR}"/${P}-gcc43.patch \
+               "${FILESDIR}"/${P}-gcc46.patch
+       sed -i \
+               -e "/chown/d" \
+               Makefile.in \
+               || die "sed failed"
+}
+
+src_install () {
+       default
+       newicon graphics/latebg2.jpg ${PN}.jpg
+       make_desktop_entry late Late /usr/share/pixmaps/${PN}.jpg
+}