summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/ycruncher/package.py
blob: 8519fadeffe02366d897aafea740194decccfd6d (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
# 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 Ycruncher(Package):
    """
    y-cruncher is a program that can compute Pi and other constants to
    trillions of digits. It is the first of its kind that is multi-threaded
    and scalable to multi-core systems
    """

    homepage = "http://www.numberworld.org/y-cruncher/"
    url = "http://www.numberworld.org/y-cruncher/y-cruncher%20v0.7.10.9513-static.tar.xz"
    maintainers("saqibkh")

    version(
        "0.7.10.9513", sha256="292006496bba83bf0f8c354ceb1c2ea571f0c67b9fe46297701a8d387773db1b"
    )

    depends_on("autoconf")

    def install(self, spec, prefix):
        install_tree(".", prefix)