Skip to content

Commit

Permalink
Add makedepf90 package for flexpart-cosmo (C2SM#907)
Browse files Browse the repository at this point in the history
* Add makedepf90 package for flexpart-cosmo

* GitHub Action: Apply Pep8-formatting

* Remove part of header

* Incorporate review

* GitHub Action: Apply Pep8-formatting

* Add homepage again

* spack install for system-test

* Remove tsa system test

* Update repos/c2sm/packages/makedepf90/package.py

Co-authored-by: Dominic Hofer <[email protected]>

* Simplify package

Co-authored-by: Dominic Hofer <[email protected]>

* Activate system test on tsa

Co-authored-by: Dominic Hofer <[email protected]>

* Update repos/c2sm/packages/makedepf90/package.py

* Fix indent

---------

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Dominic Hofer <[email protected]>
  • Loading branch information
3 people authored Jan 31, 2024
1 parent 1726698 commit 743a9e5
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions repos/c2sm/packages/flexpart-cosmo/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class FlexpartCosmo(MakefilePackage):

depends_on('eccodes +fortran')
depends_on('netcdf-fortran')
depends_on('makedepf90')

conflicts('%gcc@:10')
conflicts('%nvhpc')
Expand Down
25 changes: 25 additions & 0 deletions repos/c2sm/packages/makedepf90/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class Makedepf90(AutotoolsPackage):
""" Makedepf90 is a program for automatic creation of
Makefile-style dependency lists for Fortran source code."""

homepage = "https://salsa.debian.org/science-team/makedepf90"
git = "https://salsa.debian.org/science-team/makedepf90.git"
url = "https://salsa.debian.org/science-team/makedepf90/-/archive/debian/3.0.1-1/makedepf90-debian-3.0.1-1.tar.gz"
parallel = False # Makefile is not thread-safe.

maintainers("mjaehn")

depends_on("gmake@4:")

version('3.0.1', branch='debian/3.0.1-1')

def configure_args(self):
return ['--bindir={0}'.format(self.prefix.bin)]
3 changes: 3 additions & 0 deletions test/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ def test_libgrib1(self):
def test_libxml2(self):
spack_info('libxml2')

def test_makedepf90(self):
spack_info('makedepf90')

def test_nvidia_blas(self):
spack_info('nvidia-blas')

Expand Down
6 changes: 6 additions & 0 deletions test/system_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,12 @@ def test_install_version_22_01_2020(self):
spack_install_and_test('libgrib1 @22-01-2020')


class Makedepf90Test(unittest.TestCase):

def test_install(self):
spack_install('makedepf90 @3.0.1')


@pytest.mark.no_balfrin # Package is a workaround, only needed on Daint.
@pytest.mark.no_tsa # Package is a workaround, only needed on Daint.
class NvidiaBlasTest(unittest.TestCase):
Expand Down

0 comments on commit 743a9e5

Please sign in to comment.