games-arcade/sdlroids: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Tue, 24 Apr 2018 17:32:54 +0000 (19:32 +0200)
committerPacho Ramos <pacho@gentoo.org>
Tue, 24 Apr 2018 19:25:59 +0000 (21:25 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-arcade/sdlroids/files/1.3.4-sound.patch
games-arcade/sdlroids/sdlroids-1.3.4-r4.ebuild [new file with mode: 0644]

index 00da03f94252c7b679394dc481e8be23013bfa3e..eb2eb0c2ada4d457c3f8437d53742c2019ce687f 100644 (file)
@@ -1,5 +1,5 @@
---- sdlsound.c.orig    2004-07-02 23:03:03.000000000 -0700
-+++ sdlsound.c 2004-07-02 23:05:37.000000000 -0700
+--- a/sdlsound.c.orig  2004-07-02 23:03:03.000000000 -0700
++++ b/sdlsound.c       2004-07-02 23:05:37.000000000 -0700
 @@ -205,9 +205,9 @@
  int load_sample(int num) {
    
diff --git a/games-arcade/sdlroids/sdlroids-1.3.4-r4.ebuild b/games-arcade/sdlroids/sdlroids-1.3.4-r4.ebuild
new file mode 100644 (file)
index 0000000..83678ee
--- /dev/null
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="Asteroids Clone for X using SDL"
+HOMEPAGE="http://david.hedbor.org/projects/sdlroids/"
+SRC_URI="mirror://sourceforge/sdlroids/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl
+       media-libs/sdl-mixer
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       default
+       sed -i \
+               -e 's/$(SOUNDSDIR)/$(DESTDIR)$(SOUNDSDIR)/' \
+               -e 's/$(GFXDIR)/$(DESTDIR)$(GFXDIR)/' Makefile.in \
+               || die "sed failed"
+       eapply "${FILESDIR}"/${PV}-sound.patch
+}
+
+src_install() {
+       default
+       newicon icons/sdlroids-48x48.xpm ${PN}.xpm
+       make_desktop_entry ${PN} SDLRoids ${PN}
+}