
* Bump the package API of the `builtin` repo to `v2.0` * Move `var/spack/repos/builtin` -> `var/spack/repos/spack_repo/builtin` * Move test repos `var/spack/repos/{builtin.mock,tutorial,...}` -> `var/spack/test_repos/` * Update package dir names to v2 format (`-` -> `_` etc) * Change absolute imports `from spack.pkg.builtin.my_pkg ...` to relative imports `from ..my_pkg.package ...` Users who have a repo on top of builtin should change imports from ```python from spack.pkg.builtin.my_pkg import MyPkg ``` to ```python from spack_repo.builtin.packages.my_pkg.package import MyPkg ``` and can configure their editors with ``` PYTHONPATH=$spack/lib/spack:$spack/var/spack/repos ``` [skip-verify-checksums]
40 lines
1.6 KiB
Python
40 lines
1.6 KiB
Python
# Copyright Spack Project Developers. See COPYRIGHT file for details.
|
|
#
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
from spack.package import *
|
|
|
|
|
|
class Acl(AutotoolsPackage):
|
|
"""Commands for Manipulating POSIX Access Control Lists."""
|
|
|
|
homepage = "https://savannah.nongnu.org/projects/acl"
|
|
url = "https://git.savannah.nongnu.org/cgit/acl.git/snapshot/acl-2.2.53.tar.gz"
|
|
|
|
license("LGPL-2.1-or-later AND GPL-2.0-or-later", checked_by="tgamblin")
|
|
|
|
version("2.2.53", sha256="9e905397ac10d06768c63edd0579c34b8431555f2ea8e8f2cee337b31f856805")
|
|
version("2.2.52", sha256="f3f31d2229c903184ff877aa0ee658b87ec20fec8aebb51e65eaa68d7b24e629")
|
|
version("2.2.51", sha256="31a43d96a274a39bfcb805fb903d45840515344884d224cef166b482693a9f48")
|
|
version("2.2.50", sha256="39e21d623a9f0da8c042cde346c01871b498d51400e92c2ab1490d5ffd724401")
|
|
version("2.2.49", sha256="c6e01460cac4e47673dd60a7f57b970b49f6998bb564eff141cca129aa8940d1")
|
|
version("2.2.48", sha256="877eaeccc1500baec58391935b46ac7dfc5ffd8c54fbc0385ccd8b2b18ac3fa6")
|
|
|
|
depends_on("c", type="build") # generated
|
|
|
|
depends_on("m4", type="build")
|
|
depends_on("autoconf", type="build")
|
|
depends_on("automake", type="build")
|
|
depends_on("libtool", type="build")
|
|
depends_on("attr")
|
|
depends_on("gettext")
|
|
|
|
def flag_handler(self, name, flags):
|
|
if name == "ldlibs" and "intl" in self.spec["gettext"].libs.names:
|
|
flags.append("-lintl")
|
|
return self.build_system_flags(name, flags)
|
|
|
|
def autoreconf(self, spec, prefix):
|
|
bash = which("bash")
|
|
bash("./autogen.sh")
|