blob: ca274ee7d998569b5580432cc03bbeacd88f3894 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
DESCRIPTION="Index files for use with sci-astronomy/astrometry offline solver."
HOMEPAGE="http://www.astrometry.net"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="-x86 -amd64 -arm"
for number in $( seq 47 ); do
if [ $number -lt 10 ]; then
number=0"$number"
fi
SRC_4200="${SRC_4200} http://data.astrometry.net/4200/index-4200-${number}.fits"
SRC_4201="${SRC_4201} http://data.astrometry.net/4200/index-4201-${number}.fits"
SRC_4202="${SRC_4202} http://data.astrometry.net/4200/index-4202-${number}.fits"
SRC_4203="${SRC_4203} http://data.astrometry.net/4200/index-4203-${number}.fits"
SRC_4204="${SRC_4204} http://data.astrometry.net/4200/index-4204-${number}.fits"
done
for number in $( seq 11 ); do
if [ $number -lt 10 ]; then
number=0"$number"
fi
SRC_4205="${SRC_4205} http://data.astrometry.net/4200/index-4205-${number}.fits"
SRC_4206="${SRC_4206} http://data.astrometry.net/4200/index-4206-${number}.fits"
SRC_4207="${SRC_4207} http://data.astrometry.net/4200/index-4207-${number}.fits"
done
SRC_URI="
large? (
http://data.astrometry.net/4200/index-4208.fits
http://data.astrometry.net/4200/index-4209.fits
http://data.astrometry.net/4200/index-4209.fits
http://data.astrometry.net/4200/index-4210.fits
http://data.astrometry.net/4200/index-4211.fits
http://data.astrometry.net/4200/index-4212.fits
http://data.astrometry.net/4200/index-4213.fits
http://data.astrometry.net/4200/index-4214.fits
http://data.astrometry.net/4200/index-4215.fits
http://data.astrometry.net/4200/index-4216.fits
http://data.astrometry.net/4200/index-4217.fits
http://data.astrometry.net/4200/index-4218.fits
http://data.astrometry.net/4200/index-4219.fits
)
medium? ( ${SRC_4205} ${SRC_4206} ${SRC_4207} )
small? ( ${SRC_4202} ${SRC_4203} ${SRC_4204} )
tiny? ( ${SRC_4200} ${SRC_4201} )
tycho2? (
http://data.astrometry.net/4100/index-4108.fits
http://data.astrometry.net/4100/index-4109.fits
http://data.astrometry.net/4100/index-4109.fits
http://data.astrometry.net/4100/index-4110.fits
http://data.astrometry.net/4100/index-4111.fits
http://data.astrometry.net/4100/index-4112.fits
http://data.astrometry.net/4100/index-4113.fits
http://data.astrometry.net/4100/index-4114.fits
http://data.astrometry.net/4100/index-4115.fits
http://data.astrometry.net/4100/index-4116.fits
http://data.astrometry.net/4100/index-4117.fits
http://data.astrometry.net/4100/index-4118.fits
http://data.astrometry.net/4100/index-4119.fits
)"
IUSE="tiny small medium large tycho2"
REQUIRED_USE="|| ( tiny small medium large tycho2 )"
DEPEND="sci-astronomy/astrometry"
S="${WORKDIR}/astrometry-data"
src_unpack() {
for FILE in [ -f "${DISTDIR}/index-4[1-2][0-1][0-9]*.fits" ]; do
cp "${FILE}" "${S}"/
done
}
src_install() {
insinto /usr/share/astrometry/data
newins "${S}"/index*.fits
}
|