summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-08-12 23:58:27 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-08-12 23:58:27 -0700
commitf34b04e55536c8907ccaffff193e26e64aa61412 (patch)
tree12e89ccc8603deee30408deafc8c7a97c270a28e /var
parent1792115b4df2f6ecca18bddf462ccd4a618d9698 (diff)
parentd6bf9c9887a26dc8237a8962cb1aad48d85cbaff (diff)
downloadspack-f34b04e55536c8907ccaffff193e26e64aa61412.tar.gz
spack-f34b04e55536c8907ccaffff193e26e64aa61412.tar.bz2
spack-f34b04e55536c8907ccaffff193e26e64aa61412.tar.xz
spack-f34b04e55536c8907ccaffff193e26e64aa61412.zip
Merge pull request #87 from alfredo-gimenez/develop
Added gui and cscope features to Vim package
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/cscope/package.py17
-rw-r--r--var/spack/packages/vim/package.py17
2 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/packages/cscope/package.py b/var/spack/packages/cscope/package.py
new file mode 100644
index 0000000000..9aac0f7304
--- /dev/null
+++ b/var/spack/packages/cscope/package.py
@@ -0,0 +1,17 @@
+from spack import *
+
+class Cscope(Package):
+ """Cscope is a developer's tool for browsing source code."""
+ homepage = "http://http://cscope.sourceforge.net/"
+ url = "http://downloads.sourceforge.net/project/cscope/cscope/15.8b/cscope-15.8b.tar.gz"
+
+ version('15.8b', '8f9409a238ee313a96f9f87fe0f3b176')
+
+ # Can be configured to use flex (not necessary)
+ # ./configure --with-flex
+
+ def install(self, spec, prefix):
+ configure('--prefix=%s' % prefix)
+
+ make()
+ make("install")
diff --git a/var/spack/packages/vim/package.py b/var/spack/packages/vim/package.py
index d0cf80b898..710d5dfffc 100644
--- a/var/spack/packages/vim/package.py
+++ b/var/spack/packages/vim/package.py
@@ -35,6 +35,12 @@ class Vim(Package):
variant('ruby', default=False, description="build with Ruby")
depends_on('ruby', when='+ruby')
+ variant('cscope', default=False, description="build with cscope support")
+ depends_on('cscope', when='+cscope')
+
+ variant('gui', default=False, description="build with gui (gvim)")
+ # virtual dependency?
+
def install(self, spec, prefix):
feature_set = None
for fs in self.feature_sets:
@@ -44,6 +50,11 @@ class Vim(Package):
feature_set,
fs))
feature_set = fs
+ if '+gui' in spec:
+ if feature_set is not None:
+ if feature_set is not 'huge':
+ tty.error("+gui variant requires 'huge' feature set, {} was specified".format(feature_set))
+ feature_set = 'huge'
if feature_set is None:
feature_set = 'normal'
@@ -60,6 +71,12 @@ class Vim(Package):
else:
configure_args.append("--enable-rubyinterp=dynamic")
+ if '+gui' in spec:
+ configure_args.append("--enable-gui=auto")
+
+ if '+cscope' in spec:
+ configure_args.append("--enable-cscope")
+
configure("--prefix=%s" % prefix, *configure_args)
make()