games-puzzle/wakkabox: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 14:48:26 +0000 (16:48 +0200)
committerPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 19:34:43 +0000 (21:34 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-puzzle/wakkabox/files/wakkabox-1.1.0-gentoo.patch
games-puzzle/wakkabox/wakkabox-1.1.0-r1.ebuild [new file with mode: 0644]

index 0be83307fa918c4635d4158216feeef35dabbad8..ad82efaeab9455f7df9e23f3a6182ac3a0739e58 100644 (file)
@@ -1,5 +1,5 @@
---- configure.ac.old   2015-02-26 23:25:34.146334845 +0100
-+++ configure.ac       2015-02-26 23:25:47.978312858 +0100
+--- a/configure.ac.old 2015-02-26 23:25:34.146334845 +0100
++++ b/configure.ac     2015-02-26 23:25:47.978312858 +0100
 @@ -17,6 +17,7 @@
  CFLAGS="$CFLAGS $SDL_CFLAGS"
 -LIBS="$LIBS $SDL_LIBS"
 +AC_SUBST(LIBS)
  
  AC_OUTPUT(    Makefile  )
---- configure.ac.old   2015-02-26 23:33:25.801552821 +0100
-+++ configure.ac       2015-02-26 23:33:47.509542361 +0100
+--- a/configure.ac.old 2015-02-26 23:33:25.801552821 +0100
++++ b/configure.ac     2015-02-26 23:33:47.509542361 +0100
 @@ -1,4 +1,4 @@
 -AC_INIT( wakkabox.c )
 +AC_INIT([[wakkabox.c]])
  AC_CANONICAL_HOST
  AC_CANONICAL_TARGET
  
---- wakkabox.c.old     2015-02-26 23:43:26.146386413 +0100
-+++ wakkabox.c 2015-02-26 23:44:39.647389816 +0100
+--- a/wakkabox.c.old   2015-02-26 23:43:26.146386413 +0100
++++ b/wakkabox.c       2015-02-26 23:44:39.647389816 +0100
 @@ -249,22 +249,22 @@
        printf("Loading bmp files from %s...", DATADIR);
        
diff --git a/games-puzzle/wakkabox/wakkabox-1.1.0-r1.ebuild b/games-puzzle/wakkabox/wakkabox-1.1.0-r1.ebuild
new file mode 100644 (file)
index 0000000..a04dd84
--- /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 autotools desktop
+
+DESCRIPTION="A simple block-pushing game"
+HOMEPAGE="http://kenn.frap.net/wakkabox/"
+SRC_URI="http://kenn.frap.net/wakkabox/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.0.1"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       default
+       eapply "${FILESDIR}"/${P}-gentoo.patch
+       rm aclocal.m4
+       eautoreconf
+}
+
+src_install() {
+       default
+       newicon bigblock.bmp ${PN}.bmp
+       make_desktop_entry ${PN} "Wakkabox" /usr/share/pixmaps/${PN}.bmp
+}