Add a new package for dash (#4050)
This commit is contained in:
parent
90a57cdf8f
commit
a32a0eacba
48
var/spack/repos/builtin/packages/dash/package.py
Normal file
48
var/spack/repos/builtin/packages/dash/package.py
Normal file
@ -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']
|
@ -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']
|
||||
|
@ -87,12 +87,6 @@ def build(self, spec, prefix):
|
||||
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')
|
||||
|
Loading…
Reference in New Issue
Block a user