games-puzzle/biniax2: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Sat, 14 Apr 2018 21:36:26 +0000 (23:36 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sat, 14 Apr 2018 21:38:55 +0000 (23:38 +0200)
Package-Manager: Portage-2.3.28, Repoman-2.3.9

games-puzzle/biniax2/biniax2-1.30-r1.ebuild [new file with mode: 0644]
games-puzzle/biniax2/files/biniax2-1.30-build.patch
games-puzzle/biniax2/files/biniax2-1.30-dotfiles.patch

diff --git a/games-puzzle/biniax2/biniax2-1.30-r1.ebuild b/games-puzzle/biniax2/biniax2-1.30-r1.ebuild
new file mode 100644 (file)
index 0000000..e471040
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="Logic game with arcade and tactics modes"
+HOMEPAGE="http://biniax.com/"
+SRC_URI="http://mordred.dir.bg/biniax/${P}-fullsrc.tar.gz"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl
+       media-libs/sdl-image[png]
+       media-libs/sdl-mixer[mod]"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+src_prepare() {
+       default
+
+       rm -f data/Thumbs.db
+       sed -i \
+               -e "s:data/:/usr/share/${PN}/:" \
+               desktop/{gfx,snd}.c \
+               || die
+       eapply \
+               "${FILESDIR}"/${P}-build.patch \
+               "${FILESDIR}"/${P}-dotfiles.patch
+}
+
+src_install() {
+       dobin ${PN}
+       insinto "/usr/share/${PN}"
+       doins -r data/*
+       doicon "${FILESDIR}"/${PN}.xpm
+       make_desktop_entry ${PN} Biniax-2
+}
index 26c053c2e98e47d99581ffa402d1d3cbdacc5399..cce8abe91a93064d80cca9793c06817882e1e7fc 100644 (file)
@@ -1,5 +1,5 @@
---- makefile
-+++ makefile
+--- a/makefile
++++ b/makefile
 @@ -4,7 +4,7 @@
  # To execute the game you need the runtimes of SDL, SDL_mixer and SDL_image.
  
index 2cd212d6857cafbff3abd08e938a6f5138f43b5b..00391677ce8a49bcf10fdd95be3f85faac2a7cf9 100644 (file)
@@ -1,5 +1,5 @@
---- biniax.c
-+++ biniax.c
+--- a/biniax.c
++++ b/biniax.c
 @@ -47,6 +47,8 @@
  INCLUDES\r
  ******************************************************************************/\r
@@ -18,8 +18,8 @@
        cfgInit();\r
        hofInit();\r
        if ( gfxInit() == BNX_FALSE )\r
---- desktop/cfg.c
-+++ desktop/cfg.c
+--- a/desktop/cfg.c
++++ b/desktop/cfg.c
 @@ -36,7 +36,7 @@
  ******************************************************************************/\r
  \r
@@ -29,8 +29,8 @@
  \r
  struct BNX_SETUP\r
  {\r
---- game.h
-+++ game.h
+--- a/game.h
++++ b/game.h
 @@ -37,7 +37,7 @@
  DEFINITIONS\r
  ******************************************************************************/\r
@@ -40,8 +40,8 @@
  \r
  /******************************************************************************\r
  CONSTANTS\r
---- hof.c
-+++ hof.c
+--- a/hof.c
++++ b/hof.c
 @@ -34,7 +34,7 @@
  #define chCursor              '_'                     /* Cursor ON */\r
  #define chSpace                       ' '                     /* Cursor OFF*/\r