1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
10 DESCRIPTION="Astronomical World Coordinate System transformations library"
11 HOMEPAGE="http://www.atnf.csiro.au/people/mcalabre/WCS/"
12 SRC_URI="ftp://ftp.atnf.csiro.au/pub/software/${PN}/${P}.tar.bz2"
16 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
17 IUSE="doc fortran fits pgplot static-libs +tools"
20 fits? ( sci-libs/cfitsio:0= )
21 pgplot? ( sci-libs/pgplot:0= )"
28 --docdir="${EPREFIX}"/usr/share/doc/${PF}
29 --htmldir="${EPREFIX}"/usr/share/doc/${PF}
31 $(use_enable tools utils)
33 # hacks because cfitsio and pgplot directories are hard-coded
36 --with-cfitsioinc="${EPREFIX}/usr/include"
37 --with-cfitsiolib="${EPREFIX}/usr/$(get_libdir)"
40 myconf+=( --without-cfitsio )
44 --with-pgplotinc="${EPREFIX}/usr/include"
45 --with-pgplotlib="${EPREFIX}/usr/$(get_libdir)"
48 myconf+=( --without-pgplot )
51 sed -i -e 's/COPYING\*//' GNUmakefile || die
55 # nasty makefile, debugging means probably full rewrite
65 # static libs share the same symbols as shared (i.e. compiled with PIC)
66 # so they are not compiled twice
67 use static-libs || rm "${ED}"/usr/$(get_libdir)/lib*.a
69 "${ED}"/usr/share/doc/${PF}/html \
70 "${ED}"/usr/share/doc/${PF}/*.pdf