From 539a454900c74655abc57bbbf85dc0614196ec91 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Wed, 22 Feb 2017 09:29:34 -0800 Subject: [PATCH] Convert Jaspert to AutotoolsPackage (#3212) --- .../repos/builtin/packages/jasper/package.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/var/spack/repos/builtin/packages/jasper/package.py b/var/spack/repos/builtin/packages/jasper/package.py index f450c7d155..d4bb00b39e 100644 --- a/var/spack/repos/builtin/packages/jasper/package.py +++ b/var/spack/repos/builtin/packages/jasper/package.py @@ -25,7 +25,7 @@ from spack import * -class Jasper(Package): +class Jasper(AutotoolsPackage): """Library for manipulating JPEG-2000 images""" homepage = "https://www.ece.uvic.ca/~frodo/jasper/" @@ -45,19 +45,14 @@ class Jasper(Package): # see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469786 patch('fix_alpha_channel_assert_fail.patch') - def install(self, spec, prefix): - configure_options = [ - '--prefix={0}'.format(prefix), - '--mandir={0}'.format(spec.prefix.man), - ] + def configure_args(self): + spec = self.spec + args = ['--mandir={0}'.format(spec.prefix.man)] if '+shared' in spec: - configure_options.append('--enable-shared') + args.append('--enable-shared') if '+debug' not in spec: - configure_options.append('--disable-debug') + args.append('--disable-debug') - configure(*configure_options) - - make() - make('install') + return args