summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/gccxml/package.py
blob: 72ea0799851052b4171d5a0db2c6aa7a8c15c4f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *


class Gccxml(CMakePackage):
    """gccxml dumps an XML description of C++ source code using an extension of
    the GCC C++ compiler."""

    homepage = "http://gccxml.github.io"
    git      = "https://github.com/gccxml/gccxml.git"

    version('develop', branch='master')
    version('latest', commit='3afa8ba5be6866e603dcabe80aff79856b558e24',
            preferred=True)

    patch('darwin-gcc.patch', when='%gcc platform=darwin')
    # taken from https://github.com/gccxml/gccxml/issues/11#issuecomment-140334118
    patch('gcc-5.patch', when='%gcc@5:')