summaryrefslogtreecommitdiff
path: root/games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30-r1.ebuild
blob: 94d4f0f6acfe63aa8e26532c3f7d6946713989e4 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools desktop

MY_P="${PN//-/_}-${PV}"
DESCRIPTION="Snipe terrorists from your orbital base"
HOMEPAGE="https://icculus.org/oes/"
SRC_URI="https://icculus.org/oes/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"

LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="
	media-libs/libsdl[joystick,video]
	media-libs/sdl-image[png]
	media-libs/sdl-mixer[vorbis]"
RDEPEND="${DEPEND}"

DOCS=( AUTHORS ChangeLog readme.txt README TODO )

PATCHES=(
	"${FILESDIR}"/${P}-datadir.patch
	"${FILESDIR}"/${P}-gcc43.patch
)

src_prepare() {
	default

	sed -i \
		-e '/^sleep /d' \
		configure.ac || die
	eautoreconf
}

src_install() {
	default
	make_desktop_entry snipe2d "Orbital Eunuchs Sniper" applications-games
}