# 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 Libpspio(AutotoolsPackage): """Library to perform I/O operations on pseudopotential data files.""" homepage = "https://gitlab.com/ElectronicStructureLibrary/libpspio" url = "https://gitlab.com/ElectronicStructureLibrary/libpspio/-/archive/0.3.0/libpspio-0.3.0.tar.gz" maintainers("hmenke") license("MPL-2.0") version("0.3.0", sha256="4dc092457e481e5cd703eeecd87e6f17749941fe274043550c8a2557a649afc5") variant("fortran", default=False, description="Enable Fortran bindings") depends_on("autoconf", type="build") depends_on("automake", type="build") depends_on("libtool", type="build") depends_on("m4", type="build") depends_on("pkgconfig", type="build") depends_on("check") depends_on("gsl") def autoreconf(self, spec, prefix): Executable("./autogen.sh")() def configure_args(self): args = self.enable_or_disable("fortran") return args