summaryrefslogtreecommitdiff
blob: 564ff17963db962e075c3a2d0c0d85f2f81ac29e (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-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit toolchain-funcs

DESCRIPTION="A simple BoulderDash clone"
HOMEPAGE="http://www.tuxdash.de/index.php?language=EN"
SRC_URI="http://www.tuxdash.de/ressources/downloads/${PN}_src_${PV}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="
	media-libs/libsdl[video]
	media-libs/sdl-ttf"
DEPEND="${RDEPEND}"

PATCHES=(
	"${FILESDIR}"/${PN}-0.8-fix-build-system.patch
	"${FILESDIR}"/${PN}-0.8-fix-c++14.patch
	"${FILESDIR}"/${PN}-0.8-fix-paths.patch
)

src_prepare() {
	default
	rm -f GPL TuxDash || die
}

src_configure() {
	tc-export CXX
}

src_compile() {
	emake -C src
}

src_install() {
	dobin tuxdash
	einstalldocs

	insinto /usr/share/${PN}
	doins -r themes maps fonts savegames config
}