--- /dev/null
+# 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
+}
---- biniax.c
-+++ biniax.c
+--- a/biniax.c
++++ b/biniax.c
@@ -47,6 +47,8 @@
INCLUDES\r
******************************************************************************/\r
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
\r
struct BNX_SETUP\r
{\r
---- game.h
-+++ game.h
+--- a/game.h
++++ b/game.h
@@ -37,7 +37,7 @@
DEFINITIONS\r
******************************************************************************/\r
\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