spack/var/spack/repos/builtin/packages/libseccomp/package.py
Tristan Carel dd6e91fcb6 Nix package: update dependencies (#10646)
* Add 'fiber' as a default library for boost
* Add autoconf/automake etc. dependencies to libseccomp package
* New package: brotli
* New package: editline
* Add brotli, editline, boost dependencies to Nix
2019-03-07 13:32:55 -06:00

30 lines
961 B
Python

# Copyright 2013-2019 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 import *
class Libseccomp(AutotoolsPackage):
"""The main libseccomp repository"""
homepage = "https://github.com/seccomp/libseccomp"
url = "https://github.com/seccomp/libseccomp/archive/v2.3.3.zip"
version('2.3.3', sha256='627e114b3be2e66ed8d88b90037498333384d9bea822423662a44c3a8520e187')
variant('python', default=True, description="Build Python bindings")
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
depends_on("py-cython", type="build", when="+python")
def configure_args(self):
args = []
if "+python" in self.spec:
args.append("--enable-python")
return args