Skip to content

Commit

Permalink
games-puzzle/wakkabox: Stop using games.eclass
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.31, Repoman-2.3.9
  • Loading branch information
pacho2 committed May 1, 2018
1 parent 3c1729d commit b90c9d1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
12 changes: 6 additions & 6 deletions games-puzzle/wakkabox/files/wakkabox-1.1.0-gentoo.patch
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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);

Expand Down
30 changes: 30 additions & 0 deletions games-puzzle/wakkabox/wakkabox-1.1.0-r1.ebuild
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit b90c9d1

Please sign in to comment.