Skip to content

Commit

Permalink
Fix up spack env
Browse files Browse the repository at this point in the history
  • Loading branch information
smutch committed Jan 23, 2024
1 parent f25dc03 commit 1be6c9b
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 47 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
spack.lock
.idea
justfile
src/.cache
Expand All @@ -10,6 +11,7 @@ lib/
._*
*.o
*.pyc
__pycache__
.deps
wiki
.sconsign.dblite
Expand Down
40 changes: 40 additions & 0 deletions spack-env/recipes/packages/criterion-git/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright 2013-2021 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.build_systems.meson import MesonBuilder

from spack import *

MesonBuilder._std_args_orig = MesonBuilder.std_args


def meson_args(pkg):
args = MesonBuilder._std_args_orig(pkg)
args.remove("-Dwrap_mode=nodownload")
args.append("-Dwrap_mode=default")
return args

MesonBuilder.std_args = meson_args


class CriterionGit(MesonPackage):
"""A dead-simple, yet extensible, C and C++ unit testing framework."""

homepage = "https://github.com/Snaipe/Criterion/tree/master"
git = "git@github.com:Snaipe/Criterion.git"

maintainers = [
"smutch",
]

version("2.4.2", tag="v2.4.2", submodules=True)

# depends_on("gettext")
depends_on("meson@0.55.0:", type="build")
depends_on("ninja", type="build")
depends_on("cmake", type="build")
depends_on("pkg-config", type="build")
depends_on("libffi", type="build")
depends_on("libgit2", type="build")
2 changes: 2 additions & 0 deletions spack-env/recipes/repo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
repo:
namespace: 'meraxes-repo'
19 changes: 14 additions & 5 deletions spack.yaml → spack-env/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@
spack:
# add package specs to the `specs` list
specs: [hdf5+hl+mpi^mpich, fftw+mpi+openmp^mpich, gsl, cmake, criterion-git]
view: true
packages:
all:
compiler: [gcc]
view: True
modules:
prefix_inspections:
include:
- CPATH
repos:
- ../spack-repo
- recipes
mirrors:
develop: https://binaries.spack.io/develop
packages:
m4:
buildable: True
externals: []
autoconf:
buildable: True
externals: []
libtool:
buildable: True
externals: []
19 changes: 0 additions & 19 deletions spack-repo/packages/criterion-git/package.py

This file was deleted.

2 changes: 0 additions & 2 deletions spack-repo/repo.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions src/bootstrap-dev.sh

This file was deleted.

0 comments on commit 1be6c9b

Please sign in to comment.