blob: 2b0dc1032b7c337e9a6258e4320a39d070bdba85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit base eutils games
DESCRIPTION="A hexagonal tile-based puzzle game"
HOMEPAGE="http://hexahop.sourceforge.net/"
SRC_URI="mirror://sourceforge/hexahop/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="pango sound"
DEPEND="media-libs/libsdl
media-libs/sdl-image
sound? ( media-libs/sdl-mixer[vorbis] )
pango? ( media-libs/sdl-pango )
!pango? ( media-libs/sdl-ttf )"
RDEPEND="${DEPEND}"
DOCS=( AUTHORS ChangeLog )
src_configure() {
# The build system is broken. Both --enable-sound and --disable-sound
# disable sound. Both --enable-sdlttf and --disable-sdlttf disable sdlttf.
egamesconf \
--disable-debug \
$(use !sound && echo --disable-sound) \
$(use pango && echo --disable-sdlttf)
}
src_install () {
base_src_install
if ! use sound; then
rm -f "${D}/${GAMES_DATADIR}"/*.ogg || die
fi
newicon data/icon.bmp ${PN}.bmp
make_desktop_entry ${PN} Hex-a-Hop /usr/share/pixmaps/${PN}.bmp
prepgamesdirs
}
|