summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/antlr/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/antlr/package.py')
-rw-r--r--var/spack/repos/builtin/packages/antlr/package.py29
1 files changed, 10 insertions, 19 deletions
diff --git a/var/spack/repos/builtin/packages/antlr/package.py b/var/spack/repos/builtin/packages/antlr/package.py
index 88653a8ea9..50324dd82c 100644
--- a/var/spack/repos/builtin/packages/antlr/package.py
+++ b/var/spack/repos/builtin/packages/antlr/package.py
@@ -1,13 +1,13 @@
##############################################################################
-# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
+# Copyright (c) 2013-2017, 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.
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files 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
@@ -32,29 +32,20 @@ class Antlr(AutotoolsPackage):
frameworks. From a grammar, ANTLR generates a parser that can build and
walk parse trees."""
- homepage = "http://www.antlr.org"
- url = "https://github.com/antlr/antlr/tarball/v2.7.7"
+ homepage = "http://www.antlr2.org/"
+ url = "http://www.antlr2.org/download/antlr-2.7.7.tar.gz"
- # Notes from http://nco.sourceforge.net/#bld
- # The first steps to build (i.e., compile, for the most part) NCO from
- # source code are to install the pre-requisites: ANTLR version 2.7.7
- # (like this one not version 3.x or 4.x!) (required for ncap2)... ANTLR
- # binaries from major distributions are pre-built with the source patch
- # necessary to allow NCO to link to ANTLR... The ANTLR source file
- # CharScanner.hpp must include this line: #include <cstring> or else
- # ncap2 will not compile (this tarball is already patched).
- version('2.7.7', '914865e853fe8e1e61a9f23d045cb4ab',
- # Patched version as described above
- url='http://dust.ess.uci.edu/tmp/antlr-2.7.7.tar.gz')
- # Unpatched version
- # url='http://dust.ess.uci.edu/nco/antlr-2.7.7.tar.gz')
+ version('2.7.7', '01cc9a2a454dd33dcd8c856ec89af090')
+
+ # Fixes build with recent versions of GCC
+ patch('gcc.patch')
variant('cxx', default=True, description='Enable ANTLR for C++')
variant('java', default=False, description='Enable ANTLR for Java')
variant('python', default=False, description='Enable ANTLR for Python')
extends('python', when='+python')
- depends_on('jdk', type=('build', 'run'), when='+java')
+ depends_on('java', type=('build', 'run'), when='+java')
def configure_args(self):
spec = self.spec