summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/psrcat/package.py
diff options
context:
space:
mode:
authordownloadico <download@carc.unm.edu>2022-12-05 10:48:04 -0700
committerGitHub <noreply@github.com>2022-12-05 09:48:04 -0800
commit85b6bf99a446e2be4347dfafb55ca2e3ca092655 (patch)
tree1686eee50ba87467c0444e0472548e9bfbc3142f /var/spack/repos/builtin/packages/psrcat/package.py
parent78ec3d5662aaef03cac2f3ad9f9479b685c86c37 (diff)
downloadspack-85b6bf99a446e2be4347dfafb55ca2e3ca092655.tar.gz
spack-85b6bf99a446e2be4347dfafb55ca2e3ca092655.tar.bz2
spack-85b6bf99a446e2be4347dfafb55ca2e3ca092655.tar.xz
spack-85b6bf99a446e2be4347dfafb55ca2e3ca092655.zip
Add packages related to the LWA software stack (#34112)
* epsic: add epsic package to spack * psrcat: add psrcat to spack * psrchive: add psarchive to spack * tempo: add tempo package to spack
Diffstat (limited to 'var/spack/repos/builtin/packages/psrcat/package.py')
-rw-r--r--var/spack/repos/builtin/packages/psrcat/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/psrcat/package.py b/var/spack/repos/builtin/packages/psrcat/package.py
new file mode 100644
index 0000000000..850fd16bd3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/psrcat/package.py
@@ -0,0 +1,25 @@
+# Copyright 2013-2022 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.package import *
+
+
+class Psrcat(MakefilePackage):
+ """ATNF Pulsar Catalogue
+ A catalogue of pulsars provided by the Australian Telescope National
+ Facility"""
+
+ homepage = "https://www.atnf.csiro.au/research/pulsar/psrcat/"
+ url = "https://www.atnf.csiro.au/research/pulsar/psrcat/downloads/psrcat_pkg.v1.68.tar.gz"
+
+ version("1.68", sha256="fbe4710c9122e4f93dbca54cf42cc2906f948f76885b241d1da2f8caecfbc657")
+
+ def build(self, spec, prefix):
+ makeit = which("./makeit")
+ makeit()
+
+ def install(self, spec, prefix):
+ mkdirp(prefix.bin)
+ install("psrcat", bindir)