summaryrefslogtreecommitdiff
blob: 7821088660748b6a4851fecfc941ecfe75c23e37 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/pyephem/pyephem-3.7.2.1.ebuild,v 1.1 2007/10/17 11:45:15 bicatali Exp $

inherit distutils

DESCRIPTION="PyEphem provides scientific-grade astronomical computations for the python programming language."
LICENSE="GPL-2"
HOMEPAGE="http://www.rhodesmill.org/brandon/projects/pyephem.html"
SRC_URI="http://www.rhodesmill.org/${PN}/${P}.tar.gz"

SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="virtual/python"

src_test() {
	cd "${S}"/build/lib*
	PYTHONPATH=. "${S}"/test || die "tests failed"
}

src_install() {
	distutils_src_install

	# install docs and examples
	dohtml doc/* || die "Failed to install html docs"

	insinto /usr/share/${PN}/examples
	doins examples/* || die "Failed to install examples"
}