aboutsummaryrefslogtreecommitdiff
blob: 35146c249b2b62e5716b7d82840e230ba34afec6 (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-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit eutils

MYP=${PN}.net-${PV}

DESCRIPTION="Automated astrometric calibration programs and service"
HOMEPAGE="http://astrometry.net/"
SRC_URI="${HOMEPAGE}/downloads/${MYP}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"

KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="dev-python/numpy
	media-libs/libpng
	media-libs/netpbm
	sci-astronomy/wcslib
	sci-libs/cfitsio
	sci-libs/gsl
	sys-libs/zlib
	virtual/jpeg
	x11-libs/cairo"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${MYP}"

src_prepare() {
	epatch \
		"${FILESDIR}"/${PV}-as-needed.patch \
		"${FILESDIR}"/${PV}-system-libs.patch \
		"${FILESDIR}"/${PV}-missing-headers.patch \
		"${FILESDIR}"/${PV}-strict-aliasing.patch \
		"${FILESDIR}"/${PV}-respect-user-flags.patch \
		"${FILESDIR}"/${PV}-array-bounds.patch
}


src_compile() {
	emake
	emake extra
}

src_install() {
	emake install INSTALL_DIR="${ED}"/usr/astrometry
	# TODO
	# remove license file
	# system pyfits?
	# some execs are already included in cfitsio (system-libs patch need work)
	# doc/examples in proper directory
	# tests
}