blob: d5b0511e348903fbbd4739112f52a6c8e716af80 (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/naev/naev-0.5.3.ebuild,v 1.9 2014/06/07 04:02:33 mr_bones_ Exp $
EAPI=5
inherit flag-o-matic gnome2-utils games git-2
DESCRIPTION="A 2D space trading and combat game, in a similar vein to Escape Velocity"
HOMEPAGE="http://code.google.com/p/naev/"
#SRC_URI="mirror://sourceforge/naev/ndata-5.3"
EGIT_REPO_URI="https://github.com/bobbens/naev.git"
EGIT_BOOTSTRAP="./autogen.sh"
LICENSE="GPL-2 GPL-3 public-domain CC-BY-3.0 CC-BY-SA-3.0"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug +mixer +openal -luajit"
RDEPEND="media-libs/libsdl[X,sound,video]
dev-libs/libxml2
dev-lang/lua
>=media-libs/freetype-2
>=media-libs/libvorbis-1.2.1
>=media-libs/libpng-1.2:0
media-libs/sdl-image[png]
virtual/glu
virtual/opengl
luajit? ( dev-lang/luajit )
mixer? ( media-libs/sdl-mixer )
openal? ( media-libs/openal )
dev-libs/libzip"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_configure() {
my_cfg_opts=""
if use luajit; then
my_cfg_opts="${my_cfg_opts} --enable-lua=luajit"
else
my_cfg_opts="${my_cfg_opts} --enable-lua=shared"
fi
append-libs -lm -lvorbis
egamesconf \
--docdir=/usr/share/doc/${PF} \
$(use_enable debug) \
$(use_with openal) \
$(use_with mixer sdlmixer) \
${my_cfg_opts}
}
src_compile() {
emake V=1
}
src_install() {
emake \
DESTDIR="${D}" \
appicondir=/usr/share/pixmaps \
Graphicsdir=/usr/share/applications \
install
# insinto "${GAMES_DATADIR}"/${PN}
# newins "${DISTDIR}"/ndata-${PV} ndata
local res
for res in 16 32 64 128; do
newicon -s ${res} extras/logos/logo${res}.png naev.png
done
rm -f "${D}"/usr/share/doc/${PF}/LICENSE
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|