diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-28 20:02:04 +0100 |
commit | a4e2a46beb5e4858ef27bdedbb0ff6d2ced430ad (patch) | |
tree | 852c90a4bf354c30ea66504f70bfab5401fba18d /games-arcade/moleinvasion/moleinvasion-0.4-r2.ebuild | |
parent | 5e8702bcbbed438e6c6cce023e7ef0cc9baa3e02 (diff) |
gentoo resync : 28.04.2018
Diffstat (limited to 'games-arcade/moleinvasion/moleinvasion-0.4-r2.ebuild')
-rw-r--r-- | games-arcade/moleinvasion/moleinvasion-0.4-r2.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/games-arcade/moleinvasion/moleinvasion-0.4-r2.ebuild b/games-arcade/moleinvasion/moleinvasion-0.4-r2.ebuild new file mode 100644 index 000000000000..885dd1d1524f --- /dev/null +++ b/games-arcade/moleinvasion/moleinvasion-0.4-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +DESCRIPTION="Mole infested 2D platform game" +HOMEPAGE="http://moleinvasion.tuxfamily.org/" +SRC_URI="ftp://download.tuxfamily.org/minvasion/packages/MoleInvasion-${PV}.tar.bz2 + music? ( mirror://gentoo/${PN}-music-20090731.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="music" + +DEPEND="media-libs/libsdl[opengl,video] + virtual/opengl + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-ttf +" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P}/src" + +src_prepare() { + default + use music && mv -f "${WORKDIR}"/music ../ + sed -i \ + -e '/^CFLAGS/s:= -g:+=:' \ + -e '/^LDFLAGS/d' \ + -e "/^FINALEXEDIR/s:/usr.*:/usr/bin:" \ + -e "/^FINALDATADIR/s:/usr.*:/usr/share/${PN}:" \ + Makefile || die "sed failed" + + eapply "${FILESDIR}"/${P}-opengl.patch \ + "${FILESDIR}"/${P}-underlink.patch +} + +src_install() { + emake DESTDIR="${D}" install install-data + newicon ../gfx/icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Mole Invasion" + doman ../debian/*.6 +} |