diff options
author | Justin Lecher <jlec@gentoo.org> | 2011-06-21 10:25:42 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2011-06-21 10:25:42 +0000 |
commit | 1ae84e8b43bf158d3bcf3c0a5ecb0d58a9c19d98 (patch) | |
tree | c7ca6d4d0822b991829aac2cf9da82d07c35669c /sci-libs/arprec | |
parent | Backport perl-5.14 compile fix, bug #372301 by Markus Peloquin <markus@cs.wis... (diff) | |
download | gentoo-2-1ae84e8b43bf158d3bcf3c0a5ecb0d58a9c19d98.tar.gz gentoo-2-1ae84e8b43bf158d3bcf3c0a5ecb0d58a9c19d98.tar.bz2 gentoo-2-1ae84e8b43bf158d3bcf3c0a5ecb0d58a9c19d98.zip |
Added fortran-2.eclass support
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/arprec')
-rw-r--r-- | sci-libs/arprec/ChangeLog | 6 | ||||
-rw-r--r-- | sci-libs/arprec/arprec-2.2.2.ebuild | 24 | ||||
-rw-r--r-- | sci-libs/arprec/arprec-2.2.7.ebuild | 35 |
3 files changed, 42 insertions, 23 deletions
diff --git a/sci-libs/arprec/ChangeLog b/sci-libs/arprec/ChangeLog index 8394b551a27c..939633c98ba3 100644 --- a/sci-libs/arprec/ChangeLog +++ b/sci-libs/arprec/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-libs/arprec # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/ChangeLog,v 1.4 2011/05/18 20:37:14 grozin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/ChangeLog,v 1.5 2011/06/21 10:25:42 jlec Exp $ + + 21 Jun 2011; Justin Lecher <jlec@gentoo.org> arprec-2.2.2.ebuild, + arprec-2.2.7.ebuild: + Added fortran-2.eclass support *arprec-2.2.7 (18 May 2011) diff --git a/sci-libs/arprec/arprec-2.2.2.ebuild b/sci-libs/arprec/arprec-2.2.2.ebuild index 9ae0d6c1a910..d3ac12629e92 100644 --- a/sci-libs/arprec/arprec-2.2.2.ebuild +++ b/sci-libs/arprec/arprec-2.2.2.ebuild @@ -1,19 +1,26 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/arprec-2.2.2.ebuild,v 1.3 2009/08/25 13:09:27 grozin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/arprec-2.2.2.ebuild,v 1.4 2011/06/21 10:25:42 jlec Exp $ + EAPI=2 -inherit eutils + +inherit eutils fortran-2 DESCRIPTION="Arbitrary precision float arithmetics and functions" -IUSE="fortran qd" HOMEPAGE="http://crd.lbl.gov/~dhbailey/mpdist/" -LICENSE="BSD" +SRC_URI="http://crd.lbl.gov/~dhbailey/mpdist/${P}.tar.gz" + SLOT="0" +LICENSE="BSD" KEYWORDS="~x86" - -SRC_URI="http://crd.lbl.gov/~dhbailey/mpdist/${P}.tar.gz" +IUSE="fortran qd" DEPEND="qd? ( sci-libs/qd )" +RDEPEND="${DEPEND}" + +pkg_setup() { + use fortran && fortran-2_pkg_setup +} src_prepare() { # bug #273996 @@ -21,7 +28,8 @@ src_prepare() { } src_configure() { - econf $(use_enable fortran enable_fortran) \ + econf \ + $(use_enable fortran enable_fortran) \ $(use_enable qd enable_qd) } diff --git a/sci-libs/arprec/arprec-2.2.7.ebuild b/sci-libs/arprec/arprec-2.2.7.ebuild index 54d10fc9f3f1..a5c933e743c6 100644 --- a/sci-libs/arprec/arprec-2.2.7.ebuild +++ b/sci-libs/arprec/arprec-2.2.7.ebuild @@ -1,44 +1,51 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/arprec-2.2.7.ebuild,v 1.1 2011/05/18 20:37:14 grozin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/arprec-2.2.7.ebuild,v 1.2 2011/06/21 10:25:42 jlec Exp $ + EAPI=4 -inherit eutils + +inherit eutils fortran-2 DESCRIPTION="Arbitrary precision float arithmetics and functions" -IUSE="fortran qd" HOMEPAGE="http://crd.lbl.gov/~dhbailey/mpdist/" -LICENSE="BSD" +SRC_URI="http://crd.lbl.gov/~dhbailey/mpdist/${P}.tar.gz" + SLOT="0" +LICENSE="BSD" KEYWORDS="~x86" - -SRC_URI="http://crd.lbl.gov/~dhbailey/mpdist/${P}.tar.gz" +IUSE="fortran qd" DEPEND="qd? ( sci-libs/qd )" +RDEPEND="${DEPEND}" + +pkg_setup() { + use fortran && fortran-2_pkg_setup +} src_configure() { - econf $(use_enable fortran enable_fortran) \ + econf \ + $(use_enable fortran enable_fortran) \ $(use_enable qd enable_qd) } src_compile() { - emake || die "emake failed" + emake if use fortran; then - emake toolkit || die "emake toolkit failed" + emake toolkit fi } src_install() { - emake DESTDIR="${D}" install || die "emake install failed" - dodoc README AUTHORS NEWS TODO || die "dodoc failed" + default if use fortran; then cd toolkit ./mathinit || die "mathinit failed" exeinto /usr/libexec/${PN} - doexe mathtool || die "mathtool install failed" + doexe mathtool insinto /usr/libexec/${PN} - doins *.dat || die "mathtool data install failed" + doins *.dat docinto toolkit - dodoc README || die "mathtool doc install failed" + dodoc README fi cd "${D}"/usr/share/doc || die "cd failed" mv ${PN}/${PN}.pdf ${PF}/ || die "mv failed" |