ghostcript-fonts: fix install on macOS (#2482)
This commit is contained in:
parent
2d1ab68656
commit
24093a932c
@ -23,6 +23,7 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
import glob
|
||||
|
||||
|
||||
class GhostscriptFonts(Package):
|
||||
@ -34,4 +35,9 @@ class GhostscriptFonts(Package):
|
||||
version('8.11', '6865682b095f8c4500c54b285ff05ef6')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
install_tree('.', join_path(prefix.share, 'font'))
|
||||
fdir = join_path(prefix.share, 'font')
|
||||
mkdirp(fdir)
|
||||
files = glob.glob('*')
|
||||
for f in files:
|
||||
if not f.startswith('spack-build'):
|
||||
install(f, fdir)
|
||||
|
Loading…
Reference in New Issue
Block a user