text: ##############################################################################
  # Copyright (c) 2013-2019, 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/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
  # 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 Doxygen(CMakePackage):
      """Doxygen is the de facto standard tool for generating documentation
      from annotated C++ sources, but it also supports other popular programming
      languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba,
      Microsoft, and UNO/OpenOffice flavors), Fortran, VHDL, Tcl, and to some
      extent D.."""
  
      homepage = "http://www.doxygen.nl/"
      url = "https://sourceforge.net/projects/doxygen/files/rel-1.8.14/doxygen-1.8.14.src.tar.gz/download"
  
      version('1.8.14', '41d8821133e8d8104280030553e2b42b')
      version('1.8.12', '08e0f7850c4d22cb5188da226b209a96')
      version('1.8.11', 'f4697a444feaed739cfa2f0644abc19b')
      version('1.8.10', '79767ccd986f12a0f949015efb5f058f')
  
      # graphviz appears to be a run-time optional dependency
      variant('graphviz', default=False,
              description='Build with dot command support from Graphviz.')
  
      depends_on("cmake@2.8.12:", type='build')
      depends_on("flex", type='build')
      depends_on("bison", type='build')
  
      # optional dependencies
      depends_on("graphviz", when="+graphviz", type='run')
  