openlibm-0.5.4.ebuild 703 B

123456789101112131415161718192021222324
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils toolchain-funcs fortran-2
  5. DESCRIPTION="High quality system independent, open source libm"
  6. HOMEPAGE="https://github.com/JuliaLang/openlibm"
  7. SRC_URI="https://github.com/JuliaLang/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  8. LICENSE="MIT freedist public-domain BSD"
  9. SLOT="0/${PV}.0"
  10. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  11. IUSE="static-libs"
  12. src_install() {
  13. emake DESTDIR="${D}" prefix="${EPREFIX}/usr" \
  14. libdir="${EPREFIX}/usr/$(get_libdir)" install
  15. use static-libs || rm "${D}/${EPREFIX}/usr/$(get_libdir)/libopenlibm.a" || die "rm failed"
  16. dodoc README.md
  17. }