def __init__(self, config, name, version, source_url='', source_size='', source_md5=None,uri=[], patches=[], configure_commands=[], build_commands=[], install_commands=[], dependencies=[], after=[], suggests=[]): self.name = name self.version = version # create a fake TarballRepository, and give it the moduleset uri repo = TarballRepository(config, None, None) repo.moduleset_uri = uri branch = TarballBranch(repo, source_url, version, None, source_size, source_md5, None, source_subdir=None, expect_standard_tarball=False) branch.patches = patches # Set a second-level checkout root, because binary archives often unzip to cwd. We also set # expect_standard_tarball to False to allow these packages through. branch.checkoutroot = os.path.join(config.checkoutroot, "%s-%s-binary" % (name, version)) AutogenModule.__init__(self, name, branch, None, None, '', dependencies, after, suggests, supports_non_srcdir_builds=False, skip_autogen=False) self.static = True self.configure_commands = configure_commands self.build_commands = build_commands self.install_commands = install_commands
def __init__(self, config, name, version, source_url='', source_size='', source_md5=None, uri=[], patches=[], configure_commands=[], build_commands=[], install_commands=[], dependencies=[], after=[], suggests=[]): self.name = name self.version = version # create a fake TarballRepository, and give it the moduleset uri repo = TarballRepository(config, None, None) repo.moduleset_uri = uri branch = TarballBranch(repo, source_url, version, None, source_size, source_md5, None, source_subdir=None, expect_standard_tarball=False) branch.patches = patches # Set a second-level checkout root, because binary archives often unzip to cwd. We also set # expect_standard_tarball to False to allow these packages through. branch.checkoutroot = os.path.join(config.checkoutroot, "%s-%s-binary" % (name, version)) AutogenModule.__init__(self, name, branch, None, None, '', dependencies, after, suggests, supports_non_srcdir_builds=False, skip_autogen=False) self.static = True self.configure_commands = configure_commands self.build_commands = build_commands self.install_commands = install_commands