1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools flag-o-matic
7 DESCRIPTION="ESO astronomical image visualizer with catalog access"
8 HOMEPAGE="http://archive.eso.org/skycat"
9 SRC_URI="http://archive.eso.org/cms/tools-documentation/skycat-download/${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17 DEPEND="x11-libs/libXext
21 >=dev-tcltk/iwidgets-4.0.1
24 sci-astronomy/wcstools"
28 "${FILESDIR}"/${P}-m4.patch # fix buggy tcl.m4 for bash3 and add soname
29 "${FILESDIR}"/${P}-makefile-qa.patch
30 "${FILESDIR}"/${PN}-3.0.2-systemlibs.patch # use system libs
31 "${FILESDIR}"/${PN}-3.0.2-tk8.5.patch # need fix for tk-8.5
36 rm -fr astrotcl/{cfitsio,libwcs} \
37 || die "Failed to remove included libs"
40 -e "s:/usr:${EPREFIX}/usr:g" \
41 */configure.in */aclocal.m4 || die
43 for f in configure.in */configure.in ; do
44 mv "$f" "${f/.in/.ac}" || die
50 append-cppflags -DUSE_INTERP_RESULT # 514604
51 econf $(use_enable threads) --enable-merge
57 for d in tclutil astrotcl rtd cat skycat; do
58 for f in README CHANGES VERSION; do