2016-05-11 21:22:25 -07:00
|
|
|
##############################################################################
|
2018-03-24 12:13:52 -07:00
|
|
|
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
|
2016-05-11 21:22:25 -07:00
|
|
|
# Produced at the Lawrence Livermore National Laboratory.
|
|
|
|
#
|
|
|
|
# This file is part of Spack.
|
|
|
|
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
|
|
|
# LLNL-CODE-647188
|
|
|
|
#
|
2017-11-04 17:08:04 -07:00
|
|
|
# For details, see https://github.com/spack/spack
|
2017-06-24 22:22:55 -07:00
|
|
|
# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
|
2016-05-11 21:22:25 -07:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License (as
|
|
|
|
# published by the Free Software Foundation) version 2.1, February 1999.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
# conditions of the GNU Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
##############################################################################
|
2016-02-29 22:59:28 -05:00
|
|
|
from spack import *
|
|
|
|
|
2016-06-22 09:52:17 -05:00
|
|
|
|
2017-01-07 20:07:00 -06:00
|
|
|
class NetcdfFortran(AutotoolsPackage):
|
2016-02-29 22:59:28 -05:00
|
|
|
"""Fortran interface for NetCDF4"""
|
|
|
|
|
2016-03-05 23:05:45 -05:00
|
|
|
homepage = "http://www.unidata.ucar.edu/software/netcdf"
|
2016-02-29 22:59:28 -05:00
|
|
|
url = "http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.4.3.tar.gz"
|
|
|
|
|
2016-06-22 09:52:17 -05:00
|
|
|
version('4.4.4', 'e855c789cd72e1b8bc1354366bf6ac72')
|
2016-02-29 22:59:28 -05:00
|
|
|
version('4.4.3', 'bfd4ae23a34635b273d3eb0d91cbde9e')
|
|
|
|
|
|
|
|
depends_on('netcdf')
|
2017-04-07 11:18:34 +02:00
|
|
|
|
|
|
|
@property
|
|
|
|
def libs(self):
|
|
|
|
libraries = ['libnetcdff']
|
|
|
|
|
|
|
|
# This package installs both shared and static libraries. Permit
|
|
|
|
# clients to query which one they want.
|
|
|
|
query_parameters = self.spec.last_query.extra_parameters
|
|
|
|
shared = 'shared' in query_parameters
|
|
|
|
|
|
|
|
return find_libraries(
|
2017-08-03 17:21:40 +02:00
|
|
|
libraries, root=self.prefix, shared=shared, recursive=True
|
2017-04-07 11:18:34 +02:00
|
|
|
)
|