Convert Image-Magick to AutotoolsPackage (#3828)
This commit is contained in:
parent
bec6d99b15
commit
331f42b991
@ -25,7 +25,7 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class ImageMagick(Package):
|
class ImageMagick(AutotoolsPackage):
|
||||||
"""ImageMagick is a software suite to create, edit, compose,
|
"""ImageMagick is a software suite to create, edit, compose,
|
||||||
or convert bitmap images."""
|
or convert bitmap images."""
|
||||||
|
|
||||||
@ -45,10 +45,9 @@ class ImageMagick(Package):
|
|||||||
depends_on('ghostscript')
|
depends_on('ghostscript')
|
||||||
depends_on('ghostscript-fonts')
|
depends_on('ghostscript-fonts')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def configure_args(self):
|
||||||
|
spec = self.spec
|
||||||
gs_font_dir = join_path(spec['ghostscript-fonts'].prefix.share, "font")
|
gs_font_dir = join_path(spec['ghostscript-fonts'].prefix.share, "font")
|
||||||
configure('--prefix={0}'.format(prefix),
|
return [
|
||||||
'--with-gs-font-dir={0}'.format(gs_font_dir))
|
'--with-gs-font-dir={0}'.format(gs_font_dir)
|
||||||
make()
|
]
|
||||||
make('check')
|
|
||||||
make('install')
|
|
||||||
|
Loading…
Reference in New Issue
Block a user