forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wizznic-306.ebuild
56 lines (48 loc) · 1.23 KB
/
wizznic-306.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
49
50
51
52
53
54
55
56
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils flag-o-matic games
DESCRIPTION="Block-clearing puzzle game"
HOMEPAGE="http://wizznic.org/"
SRC_URI="mirror://sourceforge/wizznic/Wizznic_src_build_${PV}.tar.bz2"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="media-libs/libsdl[sound,joystick,opengl,video]
media-libs/sdl-image[png]
media-libs/sdl-mixer[vorbis]
virtual/opengl"
RDEPEND=${DEPEND}
S=${WORKDIR}/Wizznic_src_build_${PV}
src_prepare() {
sed \
-e '/^\(CC\|LD\|STRIP\)/d' \
-e 's/(LD)/(CC)/g' \
-e '/man1/s/1/6/g' \
-e '/CFLAGS.*=/d' \
Makefile.linux > Makefile || die
mv doc/wizznic.1 doc/wizznic.6 || die
sed -i \
-e '/Dt WIZZNIC/s/1/6/' \
doc/wizznic.6 || die
append-cflags -std=gnu89 # build with gcc5 (bug #574100)
}
src_compile() {
emake \
DATADIR="${GAMES_DATADIR}/${PN}/" \
BINDIR="${GAMES_BINDIR}" \
STRIP=true
}
src_install() {
emake \
DESTDIR="${D}" \
DATADIR="${GAMES_DATADIR}/${PN}/" \
BINDIR="${GAMES_BINDIR}" \
install
dodoc doc/{changelog.txt,credits.txt,media-licenses.txt,ports.txt,readme.txt}
newicon data/wmicon.png ${PN}.png
make_desktop_entry wizznic "Wizznic!"
prepgamesdirs
}