You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-puzzle/wizznic/wizznic-0.9.ebuild

51 lines
1.1 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/wizznic/wizznic-0.9.ebuild,v 1.5 2014/05/15 16:54:28 ulm Exp $
EAPI=2
inherit eutils games
EXTRA_PV="_feedback_version-src"
DESCRIPTION="Block-clearing puzzle game"
HOMEPAGE="http://wizznic.sourceforge.net/"
SRC_URI="mirror://sourceforge/wizznic/${P}${EXTRA_PV}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""
DEPEND="media-libs/libsdl[sound,joystick,video]
media-libs/sdl-image[png]
media-libs/sdl-mixer[vorbis]"
S=${WORKDIR}/${P}${EXTRA_PV}
src_prepare() {
sed \
-e '/^\(CC\|LD\|STRIP\)/d' \
-e 's/(LD)/(CC)/g' \
Makefile.linux > Makefile \
|| die
}
src_compile() {
emake \
DATADIR="${GAMES_DATADIR}/${PN}/" \
BINDIR="${GAMES_BINDIR}" \
STRIP=true \
|| die
}
src_install() {
emake \
DESTDIR="${D}" \
DATADIR="${GAMES_DATADIR}/${PN}/" \
BINDIR="${GAMES_BINDIR}" \
install || die
dodoc doc/{changelog.txt,credits.txt,media-licenses.txt,ports.txt,readme.txt}
newicon data/wmicon.png ${PN}.png
make_desktop_entry wizznic "Wizznic!"
prepgamesdirs
}