spack/var/spack/repos/builtin.mock/packages/dyninst/package.py
Harmen Stoppels d51af675ef
make version(...) kwargs explicit (#36998)
- [x] Replace `version(ver, checksum=None, **kwargs)` signature with
      `version(ver, checksum=None, *, sha256=..., ...)` explicitly listing all arguments.
- [x] Fix various issues in packages:
  - `tags` instead of `tag`
  - `default` instead of `preferred`
  - `sha26` instead of `sha256`
  - etc

Also, use `sha256=...` consistently.

Note: setting `sha256` currently doesn't validate the checksum length, so you could do
`sha256="a"*32` and it would get checked as `md5`... but that's something for another PR.
2023-04-19 14:17:47 -07:00

35 lines
977 B
Python

# 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 Dyninst(Package):
homepage = "https://paradyn.org"
url = "http://www.paradyn.org/release8.1/DyninstAPI-8.1.1.tgz"
version(
"8.2",
md5="0123456789abcdef0123456789abcdef",
url="http://www.paradyn.org/release8.2/DyninstAPI-8.2.tgz",
)
version(
"8.1.2",
md5="fedcba9876543210fedcba9876543210",
url="http://www.paradyn.org/release8.1.2/DyninstAPI-8.1.2.tgz",
)
version(
"8.1.1",
md5="123456789abcdef0123456789abcdef0",
url="http://www.paradyn.org/release8.1/DyninstAPI-8.1.1.tgz",
)
depends_on("libelf")
depends_on("libdwarf")
def install(self, spec, prefix):
mkdirp(prefix)
touch(join_path(prefix, "dummyfile"))