|
1 | | -# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other |
| 1 | +# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other |
2 | 2 | # Spack Project Developers. See the top-level COPYRIGHT file for details. |
3 | 3 | # |
4 | 4 | # SPDX-License-Identifier: (Apache-2.0 OR MIT) |
5 | 5 |
|
6 | | -from spack import * |
| 6 | +from spack.package import * |
7 | 7 |
|
8 | 8 |
|
9 | 9 | class TutorialMpileaks(AutotoolsPackage): |
10 | | - """Tool to detect and report MPI objects like MPI_Requests and |
11 | | - MPI_Datatypes.""" |
| 10 | + """Tool to detect and report MPI objects like MPI_Requests and MPI_Datatypes.""" |
12 | 11 |
|
13 | 12 | homepage = "https://github.com/LLNL/mpileaks" |
14 | | - url = "https://github.com/LLNL/mpileaks/releases/download/v1.0/mpileaks-1.0.tar.gz" |
| 13 | + url = "https://github.com/LLNL/mpileaks/archive/refs/tags/v1.0.tar.gz" |
15 | 14 |
|
16 | | - maintainers("adamjstewart") |
| 15 | + maintainers("alecbcs") |
17 | 16 |
|
18 | 17 | sanity_check_is_dir = ["bin", "lib", "shar"] |
19 | 18 |
|
20 | | - version("1.0", sha256="2e34cc4505556d1c1f085758e26f2f8eea0972db9382f051b2dcfb1d7d9e1825") |
| 19 | + license("BSD", checked_by="alecbcs") |
21 | 20 |
|
22 | | - variant("stackstart", values=int, default=0, |
23 | | - description="Specify the number of stack frames to truncate") |
| 21 | + version("1.0", sha256="24c706591bdcd84541e19389a9314813ce848035ee877e213d528b184f4b43f9") |
| 22 | + |
| 23 | + variant( |
| 24 | + "stackstart", |
| 25 | + values=int, |
| 26 | + default=0, |
| 27 | + description="Specify the number of stack frames to truncate", |
| 28 | + ) |
| 29 | + |
| 30 | + depends_on("c", type="build") |
| 31 | + depends_on("cxx", type="build") |
| 32 | + depends_on("fortran", type="build") |
| 33 | + |
| 34 | + depends_on("autoconf", type="build") |
| 35 | + depends_on("automake", type="build") |
| 36 | + depends_on("libtool", type="build") |
| 37 | + depends_on("m4", type="build") |
24 | 38 |
|
25 | 39 | depends_on("mpi") |
26 | 40 | depends_on("adept-utils") |
27 | 41 | depends_on("callpath") |
28 | 42 |
|
| 43 | + def autoreconf(self, spec, prefix): |
| 44 | + autoreconf("--install", "--verbose", "--force") |
| 45 | + |
29 | 46 | def configure_args(self): |
30 | 47 | args = [ |
31 | | - "--with-adept-utils={0}".format(self.spec["adept-utils"].prefix), |
32 | | - "--with-callpath={0}".format(self.spec["callpath"].prefix), |
| 48 | + f"--with-adept-utils={self.spec['adept-utils'].prefix}", |
| 49 | + f"--with-callpath={self.spec['callpath'].prefix}", |
33 | 50 | ] |
34 | 51 |
|
35 | 52 | stackstart = int(self.spec.variants["stackstart"].value) |
36 | 53 | if stackstart: |
37 | | - args.extend([ |
38 | | - "--with-stack-start-c={0}".format(stackstart), |
39 | | - "--with-stack-start-fortran={0}".format(stackstart), |
40 | | - ]) |
| 54 | + args.extend( |
| 55 | + [ |
| 56 | + f"--with-stack-start-c={stackstart}", |
| 57 | + f"--with-stack-start-fortran={stackstart}", |
| 58 | + ] |
| 59 | + ) |
41 | 60 |
|
42 | 61 | return args |
0 commit comments