Skip to content

Commit

Permalink
games-arcade/komi: Stop using games.eclass
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.28, Repoman-2.3.9
  • Loading branch information
pacho2 committed Apr 17, 2018
1 parent 7207312 commit 3c668e7
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 4 deletions.
4 changes: 2 additions & 2 deletions games-arcade/komi/files/1.04-DESTDIR.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- Makefile.orig 2004-12-11 01:36:11.000000000 -0800
+++ Makefile 2004-12-11 01:36:14.000000000 -0800
--- a/Makefile.orig 2004-12-11 01:36:11.000000000 -0800
+++ b/Makefile 2004-12-11 01:36:14.000000000 -0800
@@ -13,9 +13,7 @@
MIXER=-lSDL_mixer
SDL_LIB=$(shell sdl-config --static-libs) $(MIXER)
Expand Down
4 changes: 2 additions & 2 deletions games-arcade/komi/files/komi-1.04-install.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- Makefile.old 2015-01-05 11:35:24.794160467 +0100
+++ Makefile 2015-01-05 11:36:23.181058180 +0100
--- a/Makefile.old 2015-01-05 11:35:24.794160467 +0100
+++ b/Makefile 2015-01-05 11:36:23.181058180 +0100
@@ -24,8 +24,6 @@
install:
install -d $(DESTDIR)$(DATAPATH)
Expand Down
43 changes: 43 additions & 0 deletions games-arcade/komi/komi-1.04-r1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit desktop

DESCRIPTION="Komi the Space Frog - simple SDL game of collection"
HOMEPAGE="http://komi.sourceforge.net"
SRC_URI="mirror://sourceforge/komi/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="media-libs/libsdl[video]
media-libs/sdl-mixer
"
RDEPEND="${DEPEND}"

src_prepare() {
default
eapply "${FILESDIR}"/${PV}-DESTDIR.patch \
"${FILESDIR}"/${P}-install.patch
sed -i \
-e "/^BINPATH/s:=.*:=/usr/bin/:" \
-e "/^DATAPATH/s:=.*:=/usr/share/${PN}/:" \
-e '/^SDL_LIB/s:$: $(LDFLAGS):' \
-e '/^SDL_LIB/s:--static-:--:' \
Makefile \
|| die "sed failed"
}

src_compile() {
emake ECFLAGS="${CFLAGS}"
}

src_install() {
default
newicon komidata/sprites_komi.bmp ${PN}.bmp
make_desktop_entry komi Komi /usr/share/pixmaps/${PN}.bmp
doman komi.6
}

0 comments on commit 3c668e7

Please sign in to comment.