/[gentoo-x86]/sci-libs/openlibm/openlibm-0.3.ebuild
Gentoo

Contents of /sci-libs/openlibm/openlibm-0.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Apr 28 19:10:05 2014 UTC (5 years, 9 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Version bump

(Portage version: 2.2.8-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/openlibm/openlibm-0.2.ebuild,v 1.2 2014/04/02 23:01:16 bicatali Exp $
4
5 EAPI=5
6
7 inherit eutils toolchain-funcs fortran-2
8
9 DESCRIPTION="High quality system independent, open source libm"
10 HOMEPAGE="https://github.com/JuliaLang/openlibm"
11 SRC_URI="https://github.com/JuliaLang/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12
13 LICENSE="MIT freedist public-domain BSD"
14 SLOT="0/${PV}.0"
15 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
16
17 IUSE="static-libs"
18
19 src_prepare() {
20 epatch "${FILESDIR}"/${PN}-respect-toolchain.patch
21 }
22
23 src_compile() {
24 tc-export CC
25 tc-export AR
26 emake libopenlibm.so
27 use static-libs && emake libopenlibm.a
28 }
29
30 src_test() {
31 emake
32 }
33
34 src_install() {
35 dolib.so libopenlibm.so*
36 use static-libs && dolib.a libopenlibm.a
37 doheader include/{cdefs,types}-compat.h src/openlibm.h
38 dodoc README.md
39 }

  ViewVC Help
Powered by ViewVC 1.1.20