2014-10-09 12:59:47 +08:00
|
|
|
##############################################################################
|
2016-05-12 12:22:25 +08:00
|
|
|
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
2014-10-09 12:59:47 +08:00
|
|
|
# Produced at the Lawrence Livermore National Laboratory.
|
|
|
|
#
|
|
|
|
# This file is part of Spack.
|
2016-05-12 12:22:25 +08:00
|
|
|
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
2014-10-09 12:59:47 +08:00
|
|
|
# LLNL-CODE-647188
|
|
|
|
#
|
2015-12-09 17:24:15 +08:00
|
|
|
# For details, see https://github.com/llnl/spack
|
2014-10-09 12:59:47 +08:00
|
|
|
# Please also see the LICENSE file for our notice and the LGPL.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
2016-05-12 12:22:25 +08:00
|
|
|
# it under the terms of the GNU Lesser General Public License (as
|
|
|
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
2014-10-09 12:59:47 +08:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
2016-05-12 12:22:25 +08:00
|
|
|
# conditions of the GNU Lesser General Public License for more details.
|
2014-10-09 12:59:47 +08:00
|
|
|
#
|
2016-05-12 12:22:25 +08:00
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
|
|
# License along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2014-10-09 12:59:47 +08:00
|
|
|
##############################################################################
|
|
|
|
from spack import *
|
|
|
|
|
2016-08-10 16:50:00 +08:00
|
|
|
|
2014-10-09 12:59:47 +08:00
|
|
|
class Mpfr(Package):
|
|
|
|
"""The MPFR library is a C library for multiple-precision
|
|
|
|
floating-point computations with correct rounding."""
|
|
|
|
homepage = "http://www.mpfr.org"
|
2016-03-10 04:18:44 +08:00
|
|
|
url = "https://gforge.inria.fr/frs/download.php/latestfile/159/mpfr-3.1.2.tar.bz2"
|
2014-10-09 12:59:47 +08:00
|
|
|
|
2016-03-10 04:18:44 +08:00
|
|
|
version('3.1.4', 'b8a2f6b0e68bef46e53da2ac439e1cf4')
|
2015-06-24 08:36:57 +08:00
|
|
|
version('3.1.3', '5fdfa3cfa5c86514ee4a241a1affa138')
|
2016-01-13 03:28:48 +08:00
|
|
|
version('3.1.2', 'ee2c3ac63bf0c2359bf08fc3ee094c19')
|
2014-10-09 12:59:47 +08:00
|
|
|
|
2016-01-22 00:02:33 +08:00
|
|
|
depends_on('gmp')
|
2015-08-02 04:00:13 +08:00
|
|
|
|
2014-10-09 12:59:47 +08:00
|
|
|
def install(self, spec, prefix):
|
|
|
|
configure("--prefix=%s" % prefix)
|
|
|
|
make()
|
|
|
|
make("install")
|