/
package.py
36 lines (26 loc) · 1.15 KB
/
package.py
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
31
32
33
34
35
36
# 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 Montage(MakefilePackage):
"""Montage is a toolkit for assembling Flexible Image Transport System
(FITS) images into custom mosaics."""
homepage = "http://montage.ipac.caltech.edu/"
url = "http://montage.ipac.caltech.edu/download/Montage_v6.0.tar.gz"
maintainers("snehring")
license("BSD-3-Clause")
version("6.0", sha256="1f540a7389d30fcf9f8cd9897617cc68b19350fbcde97c4d1cdc5634de1992c6")
depends_on("freetype")
depends_on("bzip2")
depends_on("libnsl")
depends_on("libpng")
def flag_handler(self, name, flags):
if self.spec.satisfies("%gcc@10:") and name.lower() == "cflags":
flags.append("-fcommon")
return (flags, None, None)
def install(self, spec, prefix):
# not using autotools, just builds bin and lib in the source directory
mkdirp(prefix.bin, prefix.lib)
install_tree("bin", prefix.bin)
install_tree("lib", prefix.lib)