games-arcade/excido: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Mon, 16 Apr 2018 19:40:01 +0000 (21:40 +0200)
committerPacho Ramos <pacho@gentoo.org>
Mon, 16 Apr 2018 20:26:21 +0000 (22:26 +0200)
Package-Manager: Portage-2.3.28, Repoman-2.3.9

games-arcade/excido/excido-0.1.5c-r3.ebuild [new file with mode: 0644]
games-arcade/excido/files/excido-0.1.5c-build.patch
games-arcade/excido/files/excido-0.1.5c-freealut.patch

diff --git a/games-arcade/excido/excido-0.1.5c-r3.ebuild b/games-arcade/excido/excido-0.1.5c-r3.ebuild
new file mode 100644 (file)
index 0000000..cea4558
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="A fast paced action game"
+HOMEPAGE="http://icculus.org/excido/"
+SRC_URI="http://icculus.org/excido/${P}-src.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-games/physfs
+       media-libs/libsdl[opengl]
+       media-libs/sdl-mixer
+       media-libs/sdl-ttf
+       media-libs/sdl-image[png]
+       media-libs/openal
+       media-libs/freealut"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-freealut.patch
+       "${FILESDIR}"/${P}-build.patch
+)
+
+src_compile() {
+       emake DATADIR=/usr/share/${PN}/
+}
+
+src_install() {
+       dobin ${PN}
+       insinto /usr/share/${PN}
+       doins data/*
+       dodoc BUGS CHANGELOG HACKING README TODO \
+               keyguide.txt data/CREDITS data/*.txt
+}
index 779d9c3f4066024d9f1fb9b94122b63a140a4074..1735b51ccdfc9af6656e9f9882e3dd58afda1e15 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile
-+++ Makefile
+--- a/Makefile
++++ b/Makefile
 @@ -1,8 +1,8 @@
 -CC=g++
 -CFLAGS=`sdl-config --cflags` #-g -Wall #-O2
index d0538083af1f7b6fd82baf83813b5ab58f1776ea..c29999fae25de052b0133bd79a16fa4e5f97cccf 100644 (file)
@@ -1,5 +1,5 @@
---- src/SoundCore.cpp
-+++ src/SoundCore.cpp
+--- a/src/SoundCore.cpp
++++ b/src/SoundCore.cpp
 @@ -352,32 +352,13 @@
  
        PHYSFS_close(filehandle);