summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libgdsii/package.py
blob: 660ad7e479b07f51095e822129259c9b841ad1b9 (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
# Copyright 2013-2024 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 Libgdsii(AutotoolsPackage):
    """libGDSII is a C++ library for working with GDSII binary data files,
    intended primarily for use with the computational electromagnetism codes
    scuff-em and meep but sufficiently general-purpose to allow other uses as
    well."""

    homepage = "https://github.com/HomerReid/libGDSII"
    url = "https://github.com/HomerReid/libGDSII/archive/refs/tags/v0.21.tar.gz"

    license("GPL-2.0-or-later")

    version("0.21", sha256="1adc571c6b53df4c08d108f9ac4f4a7fd6fbefd4bc56f74e0b7b2801353671b8")

    depends_on("autoconf", type="build")
    depends_on("automake", type="build")
    depends_on("libtool", type="build")

    @run_before("autoreconf")
    def custom_prepare(self):
        mkdirp("m4")
        touch("ChangeLog")

    def configure_args(self):
        return ["--enable-maintainer-mode"]