ghostcript-fonts: fix install on macOS (#2482)

This commit is contained in:
Denis Davydov 2016-12-05 17:28:35 +01:00 committed by Todd Gamblin
parent 2d1ab68656
commit 24093a932c

View File

@ -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)