summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/adms/package.py
blob: 1cd460603c9222ea4c6c830a1db1d47a637e0e7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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 Adms(AutotoolsPackage):
    """ADMS is a code generator that converts electrical compact device models
    specified in high-level description language into ready-to-compile c code
    for the API of spice simulators."""

    homepage = "https://sourceforge.net/projects/mot-adms/"
    url = "https://github.com/Qucs/ADMS/releases/download/release-2.3.7/adms-2.3.7.tar.gz"
    git = "https://github.com/Qucs/ADMS.git"

    maintainers("cessenat")

    license("GPL-3.0-only")

    version("master", branch="master")
    version("2.3.7", sha256="3a78e1283ecdc3f356410474b3ff44c4dcc82cb89772087fd3bbde8a1038ce08")

    depends_on("bison@2.5:", type="build")
    depends_on("flex", type="build")
    depends_on("perl-xml-libxml", type="build")

    @when("@master")
    def autoreconf(self, spec, prefix):
        sh = which("sh")
        sh("./bootstrap.sh")