Skip to content
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

add abt-io 0.7.0 #18

Merged
merged 1 commit into from
Feb 29, 2024
Merged
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
11 changes: 11 additions & 0 deletions packages/mochi-abt-io/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class MochiAbtIo(AutotoolsPackage):
git = "https://github.com/mochi-hpc/mochi-abt-io.git"
url = "https://github.com/mochi-hpc/mochi-abt-io/archive/refs/tags/v0.6.0.tar.gz"

version("0.7.0", sha256="068822df373a56188719deee1853a904cb5c264d6855487bf6e6fb9c2716ee7b")
version("0.6.0", sha256="b2936cdca2157ef76c970825e3734d1f288140e7defdf3392d80eefa99f3359a")
version("0.5.1", tag="v0.5.1")
version("0.5.0", tag="v0.5")
Expand All @@ -43,6 +44,8 @@ class MochiAbtIo(AutotoolsPackage):
version("develop", branch="main")
version("main", branch="main")

variant('liburing', default=False, description='Enable liburing support (Linux-specific)')

depends_on("json-c", when="@0.5:")
depends_on("argobots@1.0:")
depends_on("autoconf@2.67:", type=("build"))
Expand All @@ -53,6 +56,7 @@ class MochiAbtIo(AutotoolsPackage):
depends_on("coreutils", type=("build"))
depends_on("openssl", type=("build", "link", "run"), when="@:0.5.1")
depends_on("zlib", type=("build"))
depends_on("liburing", when='+liburing')

# NOTE: The default autoreconf steps should work fine for this package.
# The explicit definition is just here as a workaround; Spack"s
Expand All @@ -63,6 +67,13 @@ def autoreconf(self, spec, prefix):
sh("./prepare.sh")

def configure_args(self):
spec = self.spec
zlib_path = self.spec["zlib"].prefix
args = [f"--with-zlib={zlib_path}"]

if '+liburing' in spec:
args.append('--enable-liburing')
else:
args.append('--disable-liburing')

return args
Loading