forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clanbomber-2.1.1-r1.ebuild
48 lines (40 loc) · 1.11 KB
/
clanbomber-2.1.1-r1.ebuild
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 autotools eutils
DESCRIPTION="Bomberman-like multiplayer game"
HOMEPAGE="https://savannah.nongnu.org/projects/clanbomber/"
SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.lzma"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
dev-libs/boost
media-fonts/dejavu
media-libs/libsdl[sound,joystick,video]
media-libs/sdl-gfx
media-libs/sdl-image[png]
media-libs/sdl-mixer
media-libs/sdl-ttf"
DEPEND="${RDEPEND}
virtual/pkgconfig"
DOCS=( AUTHORS ChangeLog ChangeLog.hg IDEAS NEWS QUOTES README TODO )
PATCHES=(
"${FILESDIR}"/${P}-automake112.patch
"${FILESDIR}"/${P}-boost150.patch
"${FILESDIR}"/${P}-gcc6.patch
)
src_prepare() {
default
sed -i -e 's/menuentry//' src/Makefile.am || die
eautoreconf
}
src_install() {
default
newicon src/pics/cup2.png ${PN}.png
make_desktop_entry ${PN}2 ClanBomber2
rm -f "${D}/usr/share/${PN}/fonts/DejaVuSans-Bold.ttf" || die
dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf \
/usr/share/${PN}/fonts/DejaVuSans-Bold.ttf
}