1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
13 DESCRIPTION="Library for algorithms for models in fundamental astronomy"
14 HOMEPAGE=" http://www.iausofa.org/current_C.html"
15 SRC_URI="http://www.iausofa.org/${YYYY}_${MMDD}_C/${PN}-${MYPV}.tar.gz"
19 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
25 PATCHES=( "${FILESDIR}"/${PN}-makefile.patch )
27 S="${WORKDIR}/sofa/${MYPV}/c/src"
31 sed -i -e "s:/lib:/$(get_libdir):" makefile || die
36 emake DESTDIR="${ED}" install
39 use doc && dodoc doc/*.lis doc/*.pdf