blob: 3ec2be22edde0eecc2ad88137cc08b6985a2a568 (
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
29
30
|
# 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 Triangle(Package):
"""Triangle is a two-dimensional mesh generator and Delaunay
triangulator. Triangle generates exact Delaunay triangulations,
constrained Delaunay triangulations, conforming Delaunay
triangulations, Voronoi diagrams, and high-quality triangular
meshes."""
homepage = "https://www.cs.cmu.edu/~quake/triangle.html"
url = "https://www.netlib.org/voronoi/triangle.zip"
license("Unlicense")
version("1.6", sha256="1766327add038495fa3499e9b7cc642179229750f7201b94f8e1b7bee76f8480")
depends_on("libx11", type="link")
def install(self, spec, prefix):
make()
mkdirp(prefix.bin)
install("triangle", prefix.bin)
install("showme", prefix.bin)
|