Commit d2212cb7 authored by Łukasz Nowak's avatar Łukasz Nowak

Allow to override configure command.

parent 4321b38a
...@@ -362,8 +362,9 @@ class Cmmi(Script): ...@@ -362,8 +362,9 @@ class Cmmi(Script):
url = self.download(self.options['url'], self.options.get('md5sum')) url = self.download(self.options['url'], self.options.get('md5sum'))
extract_dir = self.extract(url) extract_dir = self.extract(url)
workdir = guessworkdir(extract_dir) workdir = guessworkdir(extract_dir)
configure_command = ["./configure", "--prefix=%(location)s"] configure_command = self.options.get('configure-command')
configure_command.extend(%(configure-options)r.split()) if configure_command is None:
configure_command = ["./configure", "--prefix=%(location)s"] + [%(configure-options)r.split()]
self.logger.info('Configuring with: %%s' %% configure_command) self.logger.info('Configuring with: %%s' %% configure_command)
self.applyPatchList(self.options.get('patches'), self.options.get('patch-options'), self.options.get('patch-binary'), workdir) self.applyPatchList(self.options.get('patches'), self.options.get('patch-options'), self.options.get('patch-binary'), workdir)
call(configure_command, cwd=workdir, env=env) call(configure_command, cwd=workdir, env=env)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment