Lines Matching refs:module
358 def GetFilenameOf(self, module):
359 return self.source_files[module]['filename']
361 def GetMd5Of(self, module):
362 return self.source_files[module]['md5']
364 def GetExtractDirOf(self, module):
365 return self.source_files[module]['extract-dir']
367 def GetAdditionalParameters(self, module, step):
369 if key in self.source_files[module]:
370 return self.source_files[module][key]
385 def Extract(self, module):
388 local_file = os.path.join(src, self.source_files.GetFilenameOf(module))
389 moduleMd5 = self.source_files.GetMd5Of(module)
408 for module in self.source_files.GetModules():
409 self.Extract(module)
445 def BuildModule(self, module):
447 build_dir = os.path.join(self.config.build_dir, self.config.arch, module)
448 module_dir = self.source_files.GetExtractDirOf(module)
465 if module == 'gcc': cmd += ('--oldincludedir=/opt/local/include',)
466 cmd += self.source_files.GetAdditionalParameters(module, 'configure')
467 self.RunCommand(cmd, module, 'config', skipable=True)
470 if module == 'gcc':
472 self.RunCommand(cmd, module, 'build')
475 if module == 'gcc':
479 self.RunCommand(cmd, module, 'install')
483 print '%s module is now built and installed' % module
485 def RunCommand(self, cmd, module, stage, skipable=False):
487 if self.IsBuildStepComplete('%s.%s' % (module, stage)):
498 print '%s [%s] ...' % (module, stage),
509 raise Exception, 'Failed to %s %s\n' % (stage, module) + \
515 self.MarkBuildStepComplete('%s.%s' % (module, stage))