summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/ppopen-at/package.py
blob: 227244923ba440c893bd557c9ea0a92ba93fafb0 (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-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 PpopenAt(MakefilePackage):
    """ppOpen-AT is a part of the ppOpenHPC"""

    homepage = "http://ppopenhpc.cc.u-tokyo.ac.jp/ppopenhpc/"
    git = "https://github.com/Post-Peta-Crest/ppOpenHPC.git"

    license("MIT")

    version("master", branch="AT")

    def edit(self, spec, prefix):
        makefile_in = FileFilter("Makefile.in")
        makefile_in.filter("gcc", spack_cxx)
        makefile_in.filter("~/ppohAT_1.0.0", prefix)
        makefile_in.filter("mkdir", "mkdir -p")
        mkdirp("bin")

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