blob: 6d73b31cf918e60087973164240fa5a3efbc2880 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/blobwars/blobwars-1.19.ebuild,v 1.4 2012/01/04 17:38:04 phajdan.jr Exp $
EAPI="3"
inherit eutils gnome2-utils games
DESCRIPTION="Platform game about a blob and his quest to rescue MIAs from an alien invader"
HOMEPAGE="http://sourceforge.net/projects/blobwars/ https://sourceforge.net/apps/mediawiki/blobwars/index.php?title=Main_Page"
SRC_URI="mirror://sourceforge/blobwars/${P}.tar.gz"
LICENSE="BSD CCPL-Attribution-ShareAlike-3.0 CCPL-Attribution-3.0 GPL-2 LGPL-2.1 fairuse public-domain"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="media-libs/libsdl
media-libs/sdl-mixer
media-libs/sdl-ttf
media-libs/sdl-image
media-libs/sdl-net
sys-libs/zlib
virtual/libintl"
DEPEND="${RDEPEND}
sys-devel/gettext"
src_prepare() {
epatch "${FILESDIR}/${PN}-1.19-linking-order.patch"
epatch "${FILESDIR}/${PN}-1.19-ldflags.patch"
sed -i -e "/-Werror/d" makefile || die
}
src_compile() {
emake \
USEPAK="1" \
DATADIR="${GAMES_DATADIR}/${PN}/" \
DOCDIR="/usr/share/doc/${PF}/html/" \
LOCALEDIR="/usr/share/locale/" || die
}
src_install() {
emake \
USEPAK="1" \
DESTDIR="${D}" \
BINDIR="${GAMES_BINDIR}/" \
DATADIR="${GAMES_DATADIR}/${PN}/" \
DOCDIR="/usr/share/doc/${PF}/html/" \
ICONDIR="/usr/share/icons/hicolor/" \
DESKTOPDIR="/usr/share/applications/" \
LOCALEDIR="/usr/share/locale/" \
install || die
# now make the docs Gentoo friendly.
dodoc "${ED}/usr/share/doc/${PF}/html/"{changes,hacking,porting,readme} || die
rm -f "${ED}/usr/share/doc/${PF}/html/"{changes,hacking,porting,readme} || die
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|