summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAudrey Thoma <las_thoma15@iastate.edu>2017-11-08 15:01:31 -0600
committerChristoph Junghans <christoph.junghans@gmail.com>2017-11-08 14:01:31 -0700
commit743a87abb36f415f601c4bac961d888e91bd6171 (patch)
tree103826111561bc393ed03ecbb1240d81a6c3d107 /var
parent6556a5c914a5f3cc8cdf8eb5e9819abc65d6028a (diff)
downloadspack-743a87abb36f415f601c4bac961d888e91bd6171.tar.gz
spack-743a87abb36f415f601c4bac961d888e91bd6171.tar.bz2
spack-743a87abb36f415f601c4bac961d888e91bd6171.tar.xz
spack-743a87abb36f415f601c4bac961d888e91bd6171.zip
fpc: new package (#6162)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/fpc/package.py54
1 files changed, 54 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fpc/package.py b/var/spack/repos/builtin/packages/fpc/package.py
new file mode 100644
index 0000000000..905aae3314
--- /dev/null
+++ b/var/spack/repos/builtin/packages/fpc/package.py
@@ -0,0 +1,54 @@
+##############################################################################
+# Copyright (c) 2013-2017, 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 *
+
+
+class Fpc(Package):
+ """Free Pascal is a 32, 64 and 16 bit professional Pascal compiler."""
+
+ homepage = "https://www.freepascal.org/"
+ url = "https://downloads.sourceforge.net/project/freepascal/Linux/3.0.2/fpc-3.0.2.x86_64-linux.tar"
+
+ version('3.0.2', 'e5721c1843cff301c5b46abfee17c890')
+
+ def install(self, spec, prefix):
+ install = Executable('./install.sh')
+
+ # Questions:
+ #
+ # Install prefix:
+ # Install Textmode IDE (Y/n) ?
+ # Install documentation (Y/n) ?
+ # Install demos (Y/n) ?
+
+ install_answers = ['%s\n' % prefix, 'Y\n', 'Y\n', 'n\n']
+
+ install_answers_filename = 'spack-install.in'
+
+ with open(install_answers_filename, 'w') as f:
+ f.writelines(install_answers)
+
+ with open(install_answers_filename, 'r') as f:
+ install(input=f)