diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-05-01 17:44:55 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-05-01 21:34:46 +0200 |
commit | 462a3537a99d71cfacb2982315f7e1d23bec5d35 (patch) | |
tree | 38364b82e0d857a6665faa0e405a493dfebcdf6f /games-puzzle/wizznic | |
parent | games-puzzle/wakkabox: Drop old (diff) | |
download | gentoo-462a3537a99d71cfacb2982315f7e1d23bec5d35.tar.gz gentoo-462a3537a99d71cfacb2982315f7e1d23bec5d35.tar.bz2 gentoo-462a3537a99d71cfacb2982315f7e1d23bec5d35.zip |
games-puzzle/wizznic: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle/wizznic')
-rw-r--r-- | games-puzzle/wizznic/wizznic-369-r1.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/games-puzzle/wizznic/wizznic-369-r1.ebuild b/games-puzzle/wizznic/wizznic-369-r1.ebuild new file mode 100644 index 000000000000..ca391dbb54d0 --- /dev/null +++ b/games-puzzle/wizznic/wizznic-369-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +DESCRIPTION="Block-clearing puzzle game" +HOMEPAGE="http://wizznic.org/" +SRC_URI="mirror://sourceforge/wizznic/Wizznic_src_build_${PV}.tar.bz2" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,joystick,opengl,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + virtual/opengl" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/Wizznic_src_build_${PV}" + +src_prepare() { + default + sed \ + -e '/^\(CC\|LD\|STRIP\)/d' \ + -e 's/(LD)/(CC)/g' \ + -e '/CFLAGS.*=/d' \ + Makefile.linux > Makefile || die +} + +src_compile() { + emake \ + DATADIR="/usr/share/${PN}/" \ + BINDIR="/usr/bin" \ + STRIP=true +} + +src_install() { + emake \ + DESTDIR="${D}" \ + DATADIR="/usr/share/${PN}/" \ + BINDIR="/usr/bin" \ + install + dodoc doc/{changelog.txt,credits.txt,media-licenses.txt,ports.txt,readme.txt} + newicon data/wmicon.png ${PN}.png + make_desktop_entry wizznic "Wizznic!" +} |