2019-12-31 14:36:56 +08:00
|
|
|
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
|
2018-10-08 04:52:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2016-09-03 01:41:35 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2016-09-03 01:41:35 +08:00
|
|
|
from spack import *
|
2016-12-06 00:28:35 +08:00
|
|
|
import glob
|
2016-09-03 01:41:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
class GhostscriptFonts(Package):
|
|
|
|
"""Ghostscript Fonts"""
|
|
|
|
|
|
|
|
homepage = "http://ghostscript.com/"
|
2017-01-31 22:56:35 +08:00
|
|
|
url = "https://www.imagemagick.org/download/delegates/ghostscript-fonts-std-8.11.tar.gz"
|
2016-09-03 01:41:35 +08:00
|
|
|
|
2019-10-11 13:44:41 +08:00
|
|
|
version('8.11', sha256='0eb6f356119f2e49b2563210852e17f57f9dcc5755f350a69a46a0d641a0c401')
|
2016-09-03 01:41:35 +08:00
|
|
|
|
|
|
|
def install(self, spec, prefix):
|
2016-12-06 00:28:35 +08:00
|
|
|
fdir = join_path(prefix.share, 'font')
|
|
|
|
mkdirp(fdir)
|
|
|
|
files = glob.glob('*')
|
|
|
|
for f in files:
|
|
|
|
if not f.startswith('spack-build'):
|
|
|
|
install(f, fdir)
|