# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-libs/qd/qd-2.3.12.ebuild,v 1.1 2012/01/12 22:53:04 bicatali Exp $ EAPI=4 inherit autotools eutils fortran-2 DESCRIPTION="Quad-double and double-double float arithmetics" HOMEPAGE="http://crd.lbl.gov/~dhbailey/mpdist/" SRC_URI="http://crd.lbl.gov/~dhbailey/mpdist/${P}.tar.gz" SLOT="0" LICENSE="BSD" KEYWORDS="~amd64 ~x86" IUSE="doc fortran static-libs" DEPEND="fortran? ( virtual/fortran )" RDEPEND="${DEPEND}" pkg_setup() { use fortran && fortran-2_pkg_setup } src_prepare() { epatch "${FILESDIR}"/${P}-autotools.patch eautoreconf } src_configure() { econf \ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ --enable-shared \ $(use_enable static-libs static) \ $(use_enable fortran enable_fortran) } src_install() { default use doc || rm "${ED}"/usr/share/doc/${PF}/*.pdf dosym qd_real.h /usr/include/qd/qd.h dosym dd_real.h /usr/include/qd/dd.h }