From a32a0eacba7f9fe5287ae0e8e9ff047580d91de8 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Sat, 29 Apr 2017 14:24:50 -0500 Subject: Add a new package for dash (#4050) --- var/spack/repos/builtin/packages/dash/package.py | 48 ++++++++++++++++++++++ .../repos/builtin/packages/libedit/package.py | 3 -- .../repos/builtin/packages/ncurses/package.py | 6 --- 3 files changed, 48 insertions(+), 9 deletions(-) create mode 100644 var/spack/repos/builtin/packages/dash/package.py (limited to 'var') 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') -- cgit v1.2.3-60-g2f50