
Package repositories now look like this: top-level-dir/ repo.yaml packages/ libelf/ package.py mpich/ package.py ... This leaves room at the top level for additional metadata, source, per-repo configs, indexes, etc., and it makes it easy to see that something is a spack repo (just look for repo.yaml and packages).
18 lines
501 B
Python
18 lines
501 B
Python
from spack import *
|
|
|
|
class Bear(Package):
|
|
"""Bear is a tool that generates a compilation database for clang tooling from non-cmake build systems."""
|
|
homepage = "https://github.com/rizsotto/Bear"
|
|
url = "https://github.com/rizsotto/Bear/archive/2.0.4.tar.gz"
|
|
|
|
version('2.0.4', 'fd8afb5e8e18f8737ba06f90bd77d011')
|
|
|
|
depends_on("cmake")
|
|
depends_on("python")
|
|
|
|
def install(self, spec, prefix):
|
|
cmake('.', *std_cmake_args)
|
|
|
|
make("all")
|
|
make("install")
|