summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Zhu <ifanzhu@foxmail.com>2018-06-07 14:07:39 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2018-06-07 14:07:39 -0500
commit1a8bb78824686a6d15b32c5d6689ae864204d20b (patch)
tree86530174aa84a9b4c28cff8cecb579d844fbcec1
parent980817575a694419198a7ac2e3995a42c8c01b68 (diff)
downloadspack-1a8bb78824686a6d15b32c5d6689ae864204d20b.tar.gz
spack-1a8bb78824686a6d15b32c5d6689ae864204d20b.tar.bz2
spack-1a8bb78824686a6d15b32c5d6689ae864204d20b.tar.xz
spack-1a8bb78824686a6d15b32c5d6689ae864204d20b.zip
Fermi Science Tools: New package (#8126)
* fermisciencetools: new package * fermisciencetools: new package * added comments about the error in building the source distribution; fixed flake8 errors
-rw-r--r--var/spack/repos/builtin/packages/fermisciencetools/package.py45
1 files changed, 45 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fermisciencetools/package.py b/var/spack/repos/builtin/packages/fermisciencetools/package.py
new file mode 100644
index 0000000000..bdac786766
--- /dev/null
+++ b/var/spack/repos/builtin/packages/fermisciencetools/package.py
@@ -0,0 +1,45 @@
+##############################################################################
+# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+from distutils.dir_util import copy_tree
+
+
+class Fermisciencetools(Package):
+ """The Fermi Science Tools consists of the basic tools necessary to
+ analyze Fermi data.
+
+ This is the binary version for Linux x86_64 with libc-2.17."""
+
+ homepage = "https://fermi.gsfc.nasa.gov/ssc/data/analysis/software/"
+ url = "https://fermi.gsfc.nasa.gov/ssc/data/analysis/software/v11r5p3/ScienceTools-v11r5p3-fssc-20180124-x86_64-unknown-linux-gnu-libc2.17.tar.gz"
+
+ # Now we are using the binary distribution. The source distribution is also
+ # available, but there might be some logical errors in the configure codes,
+ # which leads to failing in building it from source. Hopefully someone else
+ # can figure it out and we can use the source distribution instead.
+ version('11r5p3', 'cf050ddddfe9251b6ebe8d3fd7de3c3f')
+
+ def install(self, spec, prefix):
+ copy_tree('x86_64-unknown-linux-gnu-libc2.17', prefix)