blob: 6252bd8e801653684cdded08657d632c900707a8 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/stellarium/stellarium-0.9.0.ebuild,v 1.3 2007/08/16 20:06:49 mr_bones_ Exp $
inherit toolchain-funcs eutils qt4
DESCRIPTION="Stellarium renders 3D photo-realistic skies in real time."
HOMEPAGE="http://www.stellarium.org/"
SRC_URI="mirror://sourceforge/stellarium/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="nls"
RDEPEND="virtual/opengl
virtual/glu
media-libs/libpng
media-libs/freetype
dev-libs/boost
media-libs/jpeg
net-misc/curl
$(qt4_min_version 4.2)
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
>=dev-util/cmake-2.4.6
nls? ( sys-devel/gettext )
x11-libs/libXt"
# bug #186194
QT4_BUILT_WITH_USE_CHECK="opengl"
src_unpack() {
unpack ${A}
cd "${S}"
if ! use nls ; then
sed -i \
-e 's/ENABLE_NLS 1/ENABLE_NLS 0/' \
CMakeLists.txt \
|| die "sed failed"
fi
}
src_compile() {
CC=$(tc-getCC) \
CXX=$(tc-getCXX) \
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
|| die "cmake failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
use nls || rm -rf "${D}/usr/share/locale"
make_desktop_entry stellarium Stellarium
dodoc AUTHORS ChangeLog README TODO
}
|