cgdb: add depends_on('gdb', type='run') (#27753)

* Added gdb Dependency

When using spack to install cgdb, a spack-built gdb is necessary to
avoid dynamic link errors.

- Added maintainer: tuxfan
- Set preferred to 'master' (best version for spack currently)

* Update: The gdb dependency added by this PR is for runtime

Co-authored-by: Bernhard Kaindl <43588962+bernhardkaindl@users.noreply.github.com>
This commit is contained in:
Ben Bergen 2021-12-05 08:02:23 -07:00 committed by GitHub
parent 25a9888102
commit c2def5c2f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,15 +9,17 @@
class Cgdb(AutotoolsPackage):
"""A curses front-end to GDB"""
maintainers = ['tuxfan']
homepage = 'https://cgdb.github.io'
url = 'https://cgdb.me/files/cgdb-0.7.1.tar.gz'
git = 'https://github.com/cgdb/cgdb.git'
version('master', branch='master', submodule=False, preferred=False)
version('master', branch='master', submodule=False, preferred=True)
version('0.7.1', sha256='bb723be58ec68cb59a598b8e24a31d10ef31e0e9c277a4de07b2f457fe7de198')
version('0.7.0', sha256='bf7a9264668db3f9342591b08b2cc3bbb08e235ba2372877b4650b70c6fb5423')
# Required dependency
depends_on('gdb', type='run')
depends_on('ncurses')
depends_on('readline')
depends_on('autoconf', type='build', when='@master')