libharu: Make dependencies on zlib and libpng explicit (#6682)

This commit is contained in:
Scott Wittenburg 2017-12-14 00:58:42 -07:00 committed by Massimiliano Culpo
parent 5a66065dfa
commit ce832fca59

View File

@ -40,12 +40,25 @@ class Libharu(AutotoolsPackage):
version('master', branch='master',
git='https://github.com/libharu/libharu.git')
depends_on('libpng')
depends_on('zlib')
def autoreconf(self, spec, prefix):
"""execute their autotools wrapper script"""
if os.path.exists('./buildconf.sh'):
bash = which('bash')
bash('./buildconf.sh', '--force')
def configure_args(self):
"""Point to spack-installed zlib and libpng"""
spec = self.spec
args = []
args.append('--with-zlib={0}'.format(spec['zlib'].prefix))
args.append('--with-png={0}'.format(spec['libpng'].prefix))
return args
def url_for_version(self, version):
url = 'https://github.com/libharu/libharu/archive/RELEASE_{0}.tar.gz'
return url.format(version.underscored)