summaryrefslogtreecommitdiff
blob: 68586fa27c8924c5e1af8fd62bbebd8d00b10e4a (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3
inherit autotools eutils

DESCRIPTION="Astronomy simulation and visualization software"
HOMEPAGE="http://www.nightshadesoftware.org/"
SRC_URI="http://www.nightshadesoftware.org/attachments/download/6/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="
	>=dev-libs/boost-1.42
	media-gfx/graphicsmagick
	media-libs/libpng:0
	>=media-libs/libsdl-1.2.10
	media-libs/sdl-mixer
	media-libs/sdl-pango
	virtual/glu
	virtual/opengl
"
DEPEND="${RDEPEND}
	dev-db/fastdb
"

src_prepare() {
	sed -i 's:/usr/local/lib/libfastdb.a:/usr/lib/libfastdb.a:' \
		configure.ac \
		|| die "sed failed"
	eautoreconf
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc AUTHORS ChangeLog HACKING README TODO TRADEMARKS \
		|| die "installing documentation files failed"
}