summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2023-04-28 06:35:56 -0500
committerGitHub <noreply@github.com>2023-04-28 04:35:56 -0700
commitfec20bb567af73fee6a796447fc19af65a0fc52f (patch)
tree2959527fae62e5d2d174e9567a60061b1dca0301
parent63869bba4759d02214f25645c4902e856b193bc7 (diff)
downloadspack-fec20bb567af73fee6a796447fc19af65a0fc52f.tar.gz
spack-fec20bb567af73fee6a796447fc19af65a0fc52f.tar.bz2
spack-fec20bb567af73fee6a796447fc19af65a0fc52f.tar.xz
spack-fec20bb567af73fee6a796447fc19af65a0fc52f.zip
new package: roentdek (#37265)
-rw-r--r--var/spack/repos/builtin/packages/roentdek/package.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/roentdek/package.py b/var/spack/repos/builtin/packages/roentdek/package.py
new file mode 100644
index 0000000000..2751001f89
--- /dev/null
+++ b/var/spack/repos/builtin/packages/roentdek/package.py
@@ -0,0 +1,33 @@
+# Copyright 2013-2023 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)
+
+import pathlib
+import shutil
+
+from spack.package import *
+
+
+class Roentdek(Package):
+ """Software for Roentdek detector."""
+
+ homepage = "https://www.roentdek.com"
+ url = "https://pswww.slac.stanford.edu/swdoc/tutorials/hexanode-proxy-0.0.3.tar.gz"
+
+ maintainers = ["valmar"]
+
+ version("0.0.3", sha256="8d88cf4edaddd6ff8befabd916a49e0ac884b2dccd318f6c36953647c30b0506")
+
+ def install(self, spec, prefix):
+ base_path = pathlib.Path(prefix)
+
+ pathlib.Path(base_path / "lib").mkdir(parents=True)
+ pathlib.Path(base_path / "include" / "roentdek").mkdir(parents=True)
+
+ shutil.copyfile(
+ "x86_64-centos7-gcc731/resort64c.h", base_path / "include" / "roentdek" / "resort64c.h"
+ )
+ shutil.copyfile(
+ "x86_64-centos7-gcc731/libResort64c_x64.a", base_path / "lib" / "libResort64c_x64.a"
+ )