summaryrefslogtreecommitdiff
blob: 0f9ae8849bb3e76b046d7b74667ebe06efe970ef (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
48
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit eutils scons-utils toolchain-funcs

DESCRIPTION="Space shoot-em-up game"
HOMEPAGE="http://raptorv2.sourceforge.net/"
SRC_URI="mirror://sourceforge/raptorv2/${P}.tar.gz"

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

DEPEND="<media-libs/allegro-5
	media-libs/aldumb"
RDEPEND=${DEPEND}

PATCHES=(
	"${FILESDIR}"/${P}-build.patch
	"${FILESDIR}"/${P}-gcc43.patch
	"${FILESDIR}"/${P}-gcc47.patch
	"${FILESDIR}"/${P}-ldflags.patch
)

src_prepare() {
	default

	rm -f {data,music}/.sconsign || die

	sed -i \
		-e "/^#define INSTALL_DIR/s:\.:/usr/share:" \
		src/defs.cpp || die
}

src_compile() {
	tc-export CXX
	escons
}

src_install() {
	dobin ${PN}
	insinto /usr/share/${PN}
	doins -r data music
	dodoc README
}