diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-04-17 23:00:16 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-04-17 23:00:57 +0200 |
commit | 3c668e7d14d1a26ea2d2ae78b81938d6d3b3383d (patch) | |
tree | 6a08f1ab3aab7efd7fd580b021951b7aec39a1de /games-arcade/komi/komi-1.04-r1.ebuild | |
parent | games-arcade/kobodeluxe: Drop old (diff) | |
download | gentoo-3c668e7d14d1a26ea2d2ae78b81938d6d3b3383d.tar.gz gentoo-3c668e7d14d1a26ea2d2ae78b81938d6d3b3383d.tar.bz2 gentoo-3c668e7d14d1a26ea2d2ae78b81938d6d3b3383d.zip |
games-arcade/komi: Stop using games.eclass
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'games-arcade/komi/komi-1.04-r1.ebuild')
-rw-r--r-- | games-arcade/komi/komi-1.04-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/games-arcade/komi/komi-1.04-r1.ebuild b/games-arcade/komi/komi-1.04-r1.ebuild new file mode 100644 index 000000000000..5e0804c4843e --- /dev/null +++ b/games-arcade/komi/komi-1.04-r1.ebuild @@ -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 +} |