summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-04-29 14:24:50 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2017-04-29 12:24:50 -0700
commita32a0eacba7f9fe5287ae0e8e9ff047580d91de8 (patch)
tree39b0f67883505e27bb9551e88124a79db92cc961 /var
parent90a57cdf8f234dd74e26d7db2d11dd0a18ef3841 (diff)
downloadspack-a32a0eacba7f9fe5287ae0e8e9ff047580d91de8.tar.gz
spack-a32a0eacba7f9fe5287ae0e8e9ff047580d91de8.tar.bz2
spack-a32a0eacba7f9fe5287ae0e8e9ff047580d91de8.tar.xz
spack-a32a0eacba7f9fe5287ae0e8e9ff047580d91de8.zip
Add a new package for dash (#4050)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/dash/package.py48
-rw-r--r--var/spack/repos/builtin/packages/libedit/package.py3
-rw-r--r--var/spack/repos/builtin/packages/ncurses/package.py6
3 files changed, 48 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/dash/package.py b/var/spack/repos/builtin/packages/dash/package.py
new file mode 100644
index 0000000000..823c14a747
--- /dev/null
+++ b/var/spack/repos/builtin/packages/dash/package.py
@@ -0,0 +1,48 @@
+##############################################################################
+# 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 Dash(AutotoolsPackage):
+ """The Debian Almquist Shell."""
+
+ homepage = "https://git.kernel.org/pub/scm/utils/dash/dash.git"
+ url = "https://git.kernel.org/pub/scm/utils/dash/dash.git/snapshot/dash-0.5.9.1.tar.gz"
+ list_url = homepage
+
+ version('0.5.9.1', '0d800da0b8ddbefa1468978d314b7d09')
+
+ depends_on('libedit', type='link')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+
+ def configure_args(self):
+ # Compile with libedit support
+ # This allows the use of arrow keys at the command line
+ # See https://askubuntu.com/questions/704688
+ return ['--with-libedit']
diff --git a/var/spack/repos/builtin/packages/libedit/package.py b/var/spack/repos/builtin/packages/libedit/package.py
index 01110c0910..8b09436921 100644
--- a/var/spack/repos/builtin/packages/libedit/package.py
+++ b/var/spack/repos/builtin/packages/libedit/package.py
@@ -39,6 +39,3 @@ class Libedit(AutotoolsPackage):
def url_for_version(self, version):
url = "http://thrysoee.dk/editline/libedit-{0}-{1}.tar.gz"
return url.format(version[-1], version.up_to(-1))
-
- def configure_args(self):
- return ['LIBS=-lncursesw']
diff --git a/var/spack/repos/builtin/packages/ncurses/package.py b/var/spack/repos/builtin/packages/ncurses/package.py
index 869bc4e5ae..0a8d597b7f 100644
--- a/var/spack/repos/builtin/packages/ncurses/package.py
+++ b/var/spack/repos/builtin/packages/ncurses/package.py
@@ -87,12 +87,6 @@ class Ncurses(AutotoolsPackage):
with working_dir('build_ncursesw'):
make()
- def check(self):
- with working_dir('build_ncurses'):
- make('check')
- with working_dir('build_ncursesw'):
- make('check')
-
def install(self, spec, prefix):
with working_dir('build_ncurses'):
make('install')