Skip to content

[gemaakmd] Spack exercise #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
from spack.package import *

class SpackExercise(CMakePackage):
"""FIXME: Put a proper description of your package here."""

# FIXME: Add a proper url for your package's homepage here.
homepage = "https://simulation-software-engineering.github.io/homepage/"
url = "https://github.com/Simulation-Software-Engineering/spack-exercise/archive/refs/tags/v0.3.0.tar.gz"
git = "https://github.com/Simulation-Software-Engineering/spack-exercise.git"

# FIXME: Add a list of GitHub accounts to
# notify when the package is updated.
maintainers("mgemaakbar")

# FIXME: Add the SPDX identifier of the project's license below.
# See https://spdx.org/licenses/ for a list. Upon manually verifying
# the license, set checked_by to your Github username.
license("MIT", checked_by="mgemaakbar")

version("main", git = git, branch="main")
version("0.1.0", sha256='cac78e641cb703e3fe51956f91fe8347ac52f74ef037d8eadae5777c65a19a00')
version("0.2.0", sha256='3dd6b4cc0f7aff179d8e290bc3879056237ae372738a4bd7222f6450fbcdfc77')
version("0.3.0", sha256='e54a4c037941d85a22fb3e6e73195df8448cf69a96aa44ef374ac518344812f0')

depends_on("cxx", type="build")

# FIXME: Add dependencies if required.
variant('boost', default=True, description='boost dependency')
variant('yaml-cpp', default=True, description='yaml-cpp dependency')
depends_on("boost@1.65.1:",when="@0.2.0:")
depends_on("yaml-cpp@0.7.0:",when="@0.3.0:")