blob: fdc7fd42f7eef9b41b2f9cc97faec0db459c78c8 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools flag-o-matic
DESCRIPTION="ESO astronomical image visualizer with catalog access"
HOMEPAGE="https://www.eso.org/sci/observing/tools/skycat.html"
SRC_URI="https://archive.eso.org/cms/tools-documentation/skycat-download/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="threads"
DEPEND="
dev-tcltk/blt:=
dev-tcltk/expect:=
dev-tcltk/itcl:=
dev-tcltk/iwidgets:=
dev-tcltk/tkimg:=
sci-astronomy/wcstools:=
sci-libs/cfitsio:=
x11-libs/libXext:=
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-3.1.3-string-issues.patch
"${FILESDIR}"/${PN}-3.1.3-remove-tclx-dep.patch
"${FILESDIR}"/${PN}-3.1.2-m4.patch
"${FILESDIR}"/${PN}-3.1.2-makefile-qa.patch
"${FILESDIR}"/${PN}-3.0.2-systemlibs.patch
"${FILESDIR}"/${PN}-3.0.2-tk8.5.patch
)
src_prepare() {
default
rm -r astrotcl/{cfitsio,libwcs} || die
# prefix it
sed -e "s:/usr:${EPREFIX}/usr:g" \
-i */configure.in */aclocal.m4 || die
local f
for f in configure.in */configure.in ; do
mv "$f" "${f/.in/.ac}" || die
done
# bug #626162 . lazy sed to avoid a big patch
sed -i -e 's/static char/static unsigned char/g' $(find . -name \*.xbm) || die
eautoreconf
}
src_configure() {
# bug #514604
append-cppflags -DUSE_INTERP_RESULT
econf $(use_enable threads) --enable-merge
}
src_install() {
default
local d f
for d in tclutil astrotcl rtd cat skycat; do
for f in README CHANGES VERSION; do
newdoc ${f} ${f}.${d}
done
done
}
|