summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMathias Anselmann <mathias.anselmann@posteo.de>2020-03-06 15:47:35 +0100
committerGitHub <noreply@github.com>2020-03-06 08:47:35 -0600
commit8687ace8f9b87583d40fc3d0e20891c5e7af6fd4 (patch)
treeb0b9194e8090ed79ea52d9760c16e4088843c4bd /var
parent83778f009e041982d2747fa838ac8a47b159e4e5 (diff)
downloadspack-8687ace8f9b87583d40fc3d0e20891c5e7af6fd4.tar.gz
spack-8687ace8f9b87583d40fc3d0e20891c5e7af6fd4.tar.bz2
spack-8687ace8f9b87583d40fc3d0e20891c5e7af6fd4.tar.xz
spack-8687ace8f9b87583d40fc3d0e20891c5e7af6fd4.zip
Cscope: fix linking and update to v15.9 (#15358)
* explicitly link against libtinfo * Update to v15.9 * fixed indentation * fixed url definition * added url vor current version again * fixed indentation * moving url_version to the bottom
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cscope/package.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/cscope/package.py b/var/spack/repos/builtin/packages/cscope/package.py
index f0cc8f9fc5..2682ffea70 100644
--- a/var/spack/repos/builtin/packages/cscope/package.py
+++ b/var/spack/repos/builtin/packages/cscope/package.py
@@ -10,8 +10,9 @@ class Cscope(AutotoolsPackage):
"""Cscope is a developer's tool for browsing source code."""
homepage = "http://cscope.sourceforge.net/"
- url = "http://downloads.sourceforge.net/project/cscope/cscope/15.8b/cscope-15.8b.tar.gz"
+ url = "https://sourceforge.net/projects/cscope/files/cscope/v15.9/cscope-15.9.tar.gz"
+ version('15.9', sha256='c5505ae075a871a9cd8d9801859b0ff1c09782075df281c72c23e72115d9f159')
version('15.8b', sha256='4889d091f05aa0845384b1e4965aa31d2b20911fb2c001b2cdcffbcb7212d3af')
depends_on('ncurses')
@@ -20,4 +21,11 @@ class Cscope(AutotoolsPackage):
depends_on('bison', type='build')
depends_on('pkgconfig', type='build')
- build_targets = ['CURSES_LIBS=-lncursesw']
+ build_targets = ['CURSES_LIBS=-lncursesw -ltinfo']
+
+ def url_for_version(self, version):
+ url = "https://sourceforge.net/projects/cscope/files/cscope/{0}{1}/cscope-{1}.tar.gz"
+ if version >= Version('15.9'):
+ return url.format('v', version)
+ else:
+ return url.format('', version)