summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2017-04-14 10:13:47 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2017-04-14 08:13:47 -0700
commit331f42b9911b0348cf287a5239d7d50cbdcd0ee5 (patch)
tree60d9a79f8e6831279e21c58de0d5a5157855d893 /var
parentbec6d99b15750a8dcf01bbae7ea79d66e17b91ac (diff)
downloadspack-331f42b9911b0348cf287a5239d7d50cbdcd0ee5.tar.gz
spack-331f42b9911b0348cf287a5239d7d50cbdcd0ee5.tar.bz2
spack-331f42b9911b0348cf287a5239d7d50cbdcd0ee5.tar.xz
spack-331f42b9911b0348cf287a5239d7d50cbdcd0ee5.zip
Convert Image-Magick to AutotoolsPackage (#3828)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/image-magick/package.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/image-magick/package.py b/var/spack/repos/builtin/packages/image-magick/package.py
index e32f1967e2..4683e422ea 100644
--- a/var/spack/repos/builtin/packages/image-magick/package.py
+++ b/var/spack/repos/builtin/packages/image-magick/package.py
@@ -25,7 +25,7 @@
from spack import *
-class ImageMagick(Package):
+class ImageMagick(AutotoolsPackage):
"""ImageMagick is a software suite to create, edit, compose,
or convert bitmap images."""
@@ -45,10 +45,9 @@ class ImageMagick(Package):
depends_on('ghostscript')
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")
- configure('--prefix={0}'.format(prefix),
- '--with-gs-font-dir={0}'.format(gs_font_dir))
- make()
- make('check')
- make('install')
+ return [
+ '--with-gs-font-dir={0}'.format(gs_font_dir)
+ ]