summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 16:48:26 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:34:43 +0200
commitb90c9d1ba9732acb51bc710a0d56969e236d30a7 (patch)
treec7b38a5660d01d903c8ddcc6baf65b2ea99e761b /games-puzzle
parentgames-puzzle/torrent: Drop old (diff)
downloadgentoo-b90c9d1ba9732acb51bc710a0d56969e236d30a7.tar.gz
gentoo-b90c9d1ba9732acb51bc710a0d56969e236d30a7.tar.bz2
gentoo-b90c9d1ba9732acb51bc710a0d56969e236d30a7.zip
games-puzzle/wakkabox: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/wakkabox/files/wakkabox-1.1.0-gentoo.patch12
-rw-r--r--games-puzzle/wakkabox/wakkabox-1.1.0-r1.ebuild30
2 files changed, 36 insertions, 6 deletions
diff --git a/games-puzzle/wakkabox/files/wakkabox-1.1.0-gentoo.patch b/games-puzzle/wakkabox/files/wakkabox-1.1.0-gentoo.patch
index 0be83307fa91..ad82efaeab94 100644
--- a/games-puzzle/wakkabox/files/wakkabox-1.1.0-gentoo.patch
+++ b/games-puzzle/wakkabox/files/wakkabox-1.1.0-gentoo.patch
@@ -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"
@@ -10,16 +10,16 @@
+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
index 000000000000..a04dd8404b70
--- /dev/null
+++ b/games-puzzle/wakkabox/wakkabox-1.1.0-r1.ebuild
@@ -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
+}