1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit base eutils games
9 DESCRIPTION="A hexagonal tile-based puzzle game"
10 HOMEPAGE="http://hexahop.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/hexahop/${P}.tar.gz"
15 KEYWORDS="~amd64 ~x86"
18 DEPEND="media-libs/libsdl
20 sound? ( media-libs/sdl-mixer[vorbis] )
21 pango? ( media-libs/sdl-pango )
22 !pango? ( media-libs/sdl-ttf )"
26 DOCS=( AUTHORS ChangeLog )
29 # The build system is broken. Both --enable-sound and --disable-sound
30 # disable sound. Both --enable-sdlttf and --disable-sdlttf disable sdlttf.
33 $(use !sound && echo --disable-sound) \
34 $(use pango && echo --disable-sdlttf)
41 rm -f "${D}/${GAMES_DATADIR}"/*.ogg || die
44 newicon data/icon.bmp ${PN}.bmp
45 make_desktop_entry ${PN} Hex-a-Hop /usr/share/pixmaps/${PN}.bmp