summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoffer93 <czachow@smail.uni-koeln.de>2018-09-15 16:40:50 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2018-09-15 09:40:50 -0500
commitb3bdf92f266b89d50eae236e8d5e20d258ce2825 (patch)
treeca8224e542ea78fdc31bb9d22f3cfa8a1e3628a3
parent4942237278c0e4f24e13625155b3e852b51da679 (diff)
downloadspack-b3bdf92f266b89d50eae236e8d5e20d258ce2825.tar.gz
spack-b3bdf92f266b89d50eae236e8d5e20d258ce2825.tar.bz2
spack-b3bdf92f266b89d50eae236e8d5e20d258ce2825.tar.xz
spack-b3bdf92f266b89d50eae236e8d5e20d258ce2825.zip
changed to new install_tree formalism (#9181)
-rw-r--r--var/spack/repos/builtin/packages/dotnet-core-sdk/package.py53
1 files changed, 53 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dotnet-core-sdk/package.py b/var/spack/repos/builtin/packages/dotnet-core-sdk/package.py
new file mode 100644
index 0000000000..d89f451f33
--- /dev/null
+++ b/var/spack/repos/builtin/packages/dotnet-core-sdk/package.py
@@ -0,0 +1,53 @@
+##############################################################################
+# 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 os import symlink
+from spack import *
+
+
+class DotnetCoreSdk(Package):
+ """The .NET Core SDK is a powerful development environment to write
+ applications for all types of infrastructure."""
+
+ homepage = "https://www.microsoft.com/net/"
+ url = "https://github.com/dotnet/core/"
+
+ version('2.1.300',
+ url='https://download.microsoft.com/download/8/8/5/88544F33-836A'
+ '-49A5-8B67-451C24709A8F/dotnet-sdk-2.1.300-linux-x64.tar.gz',
+ sha224='80a6bfb1db5862804e90f819c1adeebe3d624eae0d6147e5d6694333'
+ 'f0458afd7d34ce73623964752971495a310ff7fcc266030ce5aef82d5de'
+ '7293d94d13770')
+
+ variant('telemetry', default=False,
+ description='allow collection of telemetry data')
+
+ def setup_environment(self, spack_env, run_env):
+ if '-telemetry' in self.spec:
+ spack_env.set('DOTNET_CLI_TELEMETRY_OPTOUT', 1)
+
+ def install(self, spec, prefix):
+ mkdirp('bin')
+ symlink('../dotnet', 'bin/dotnet')
+ install_tree(".", prefix)