summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authornvarini <nicola.varini@gmail.com>2017-04-18 18:12:58 +0200
committerMassimiliano Culpo <massimiliano.culpo@googlemail.com>2017-05-07 13:05:29 +0200
commitbb1a8efaca5825e6e4323bb14a40c5e5d9074344 (patch)
tree6b97732ce96df2c7ce218002b19c9803d6afd4db /var
parent12633b06e420bfec0fb3ebae09d212c41b47f1d3 (diff)
downloadspack-bb1a8efaca5825e6e4323bb14a40c5e5d9074344.tar.gz
spack-bb1a8efaca5825e6e4323bb14a40c5e5d9074344.tar.bz2
spack-bb1a8efaca5825e6e4323bb14a40c5e5d9074344.tar.xz
spack-bb1a8efaca5825e6e4323bb14a40c5e5d9074344.zip
Added scala package (#67)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/scala/package.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/scala/package.py b/var/spack/repos/builtin/packages/scala/package.py
new file mode 100644
index 0000000000..1a4ac51ca3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/scala/package.py
@@ -0,0 +1,50 @@
+##############################################################################
+# Copyright (c) 2013-2016, 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/llnl/spack
+# Please also see the LICENSE file 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 *
+
+
+class Scala(Package):
+ """Scala is a general-purpose programming language providing support for
+ functional programming and a strong static type system. Designed to be
+ concise, many of Scala's design decisions were designed to build from
+ criticisms of Java.
+ """
+
+ homepage = "https://www.scala-lang.org/"
+ url = "https://downloads.lightbend.com/scala/2.12.1/scala-2.12.1.tgz"
+
+ depends_on('jdk')
+ version('2.12.1', '3eaecbce019b0fa3067503846e292b32')
+
+ def install(self, spec, prefix):
+
+ def install_dir(dirname):
+ install_tree(dirname, join_path(prefix, dirname))
+
+ install_dir('bin')
+ install_dir('lib')
+ install_dir('doc')
+ install_dir('man')