summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/gccxml/package.py
blob: 11f89cefe26fee780b52365e0f5a18c7cf8ae238 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2013-2023 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.package import *


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

    homepage = "https://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:")