summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/gmodel/package.py
blob: c65558e0cca0c26ea462405883e9d9ac1faf7cb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Copyright 2013-2024 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 Gmodel(CMakePackage):
    """Gmsh model generation library

    Gmodel is a C++11 library that implements a minimal CAD kernel based
    on the .geo format used by the Gmsh mesh generation code, and is
    designed to make it easier for users to quickly construct CAD models
    for Gmsh.
    """

    homepage = "https://github.com/ibaned/gmodel"
    url = "https://github.com/ibaned/gmodel/archive/v2.1.0.tar.gz"

    license("BSD-2-Clause-FreeBSD")

    version("2.1.0", sha256="80df0c6dc413a9ffa0f0e7b65118b05b643ba3e1bfcac28fb91d2d3ad017fda0")

    # fix error [-Werror,-Wzero-as-null-pointer-constant]
    # fix error [-Werror,-Wunused-template]
    # Ref: https://github.com/ibaned/gmodel/commit/6b81ec190cf2ce9a6554a99cb6d759b023393cdd
    patch("fix_gmodel.cpp.patch")