def __init__(self, name, branch, autogenargs='', makeargs='', makeinstallargs='', dependencies=[], after=[], suggests=[], supports_non_srcdir_builds=True, skip_autogen=False, autogen_sh='autogen.sh', makefile='Makefile', autogen_template=None, check_target=True): Package.__init__(self, name, dependencies, after, suggests) self.branch = branch self.autogenargs = autogenargs self.makeargs = makeargs self.makeinstallargs = makeinstallargs self.supports_non_srcdir_builds = supports_non_srcdir_builds self.skip_autogen = skip_autogen self.autogen_sh = autogen_sh self.makefile = makefile self.autogen_template = autogen_template self.check_target = check_target
def __init__(self, name, branch, sconsargs='prefix=%(prefix)', dependencies=[], after=[], suggests=[], supports_non_srcdir_builds=False): Package.__init__(self, name, dependencies, after, suggests) self.branch = branch self.sconsargs = sconsargs self.supports_non_srcdir_builds = supports_non_srcdir_builds
def __init__( self, name, version, source_url, source_size, source_md5=None, patches=[], checkoutdir=None, autogenargs="", makeargs="", dependencies=[], after=[], supports_non_srcdir_builds=True, ): Package.__init__(self, name, dependencies, after) self.version = version self.source_url = source_url self.source_size = source_size self.source_md5 = source_md5 self.patches = patches self.checkoutdir = checkoutdir self.autogenargs = autogenargs self.makeargs = makeargs self.supports_non_srcdir_builds = supports_non_srcdir_builds
def __init__(self, name, branch=None, autogenargs='', makeargs='', makeinstallargs='', supports_non_srcdir_builds=True, skip_autogen=False, skip_install_phase=False, autogen_sh='autogen.sh', makefile='Makefile', autogen_template=None, check_target=True, supports_static_analyzer=True): Package.__init__(self, name, branch=branch) self.autogenargs = autogenargs self.makeargs = makeargs self.makeinstallargs = makeinstallargs self.supports_non_srcdir_builds = supports_non_srcdir_builds self.skip_autogen = skip_autogen self.skip_install_phase = skip_install_phase self.autogen_sh = autogen_sh self.makefile = makefile self.autogen_template = autogen_template self.check_target = check_target self.supports_install_destdir = True self.supports_static_analyzer = supports_static_analyzer
def __init__(self, name, branch=None, cmakeargs='', makeargs='',): Package.__init__(self, name, branch=branch) self.cmakeargs = cmakeargs self.makeargs = makeargs self.supports_non_srcdir_builds = True self.supports_install_destdir = True
def __init__(self, name, branch=None, supports_non_srcdir_builds=True, buildargs=''): Package.__init__(self, name, branch=branch) self.supports_non_srcdir_builds = supports_non_srcdir_builds self.supports_install_destdir = True self.buildargs = buildargs
def __init__(self, name, branch=None, waf_cmd='./waf', python_cmd='python'): Package.__init__(self, name, branch=branch) self.waf_cmd = waf_cmd self.python_cmd = python_cmd self.supports_install_destdir = True
def __init__(self, name, branch, dependencies=[], after=[], suggests=[], supports_non_srcdir_builds=True): Package.__init__(self, name, dependencies, after, suggests) self.branch = branch self.supports_non_srcdir_builds = supports_non_srcdir_builds
def __init__(self, name, branch, dependencies=[], after=[], suggests=[], waf_cmd='./waf'): Package.__init__(self, name, dependencies, after, suggests) self.branch = branch self.waf_cmd = waf_cmd
def __init__(self, name, branch=None, test_type=None, tested_pkgs=[]): Package.__init__(self, name, branch=branch) self.test_type = test_type self.tested_pkgs = tested_pkgs ### modify environ for tests to be working if os.environ.has_key('LDTP_DEBUG'): del os.environ['LDTP_DEBUG'] # get rid of verbose LDTP output if not os.environ.has_key('GNOME_ACCESSIBILITY') or os.environ['GNOME_ACCESSIBILITY'] != 1: os.environ['GNOME_ACCESSIBILITY'] = '1'
def __init__(self, name, branch, cmakeargs='', makeargs='', dependencies=[], after=[], suggests=[]): Package.__init__(self, name, dependencies, after, suggests) self.branch = branch self.cmakeargs = cmakeargs self.makeargs = makeargs
def __init__( self, name, branch=None, cmakeargs='', makeargs='', ): Package.__init__(self, name, branch=branch) self.cmakeargs = cmakeargs self.makeargs = makeargs self.supports_non_srcdir_builds = True self.supports_install_destdir = True
def eval_args(self, args): args = Package.eval_args(self, args) libsuffix = '' if self.config.use_lib64: libsuffix = '64' args = args.replace('${libsuffix}', libsuffix) return args
def test_sys_deps(self): '''deps ommitted because satisfied by system dependencies''' class TestBranch(jhbuild.versioncontrol.tarball.TarballBranch): version = None def __init__(self): pass self.moduleset.add(Package('syspkgalpha')) self.moduleset.modules['foo'].dependencies = ['bar'] self.moduleset.modules['bar'].dependencies = ['syspkgalpha'] self.moduleset.modules['syspkgalpha'].dependencies = ['baz'] self.moduleset.modules['syspkgalpha'].pkg_config = 'syspkgalpha.pc' self.moduleset.modules['syspkgalpha'].branch = TestBranch() self.moduleset.modules['syspkgalpha'].branch.version = '3' self.assertEqual(self.get_module_list(['foo']), ['baz', 'syspkgalpha', 'bar', 'foo']) self.moduleset.modules['syspkgalpha'].branch.version = '3.1' self.assertEqual(self.get_module_list(['foo']), ['baz', 'syspkgalpha', 'bar', 'foo']) self.moduleset.modules['syspkgalpha'].branch.version = '2' self.assertEqual(self.get_module_list(['foo']), ['baz', 'bar', 'foo']) self.moduleset.modules['syspkgalpha'].branch.version = '1' self.assertEqual(self.get_module_list(['foo']), ['baz', 'bar', 'foo']) self.moduleset.modules['syspkgalpha'].branch.version = '1.1' self.assertEqual(self.get_module_list(['foo']), ['baz', 'bar', 'foo']) self.moduleset.add(Package('syspkgbravo')) self.moduleset.modules['foo'].dependencies = ['bar'] self.moduleset.modules['bar'].dependencies = ['syspkgbravo'] self.moduleset.modules['syspkgbravo'].dependencies = ['baz'] self.moduleset.modules['syspkgbravo'].pkg_config = 'syspkgbravo.pc' self.moduleset.modules['syspkgbravo'].branch = TestBranch() self.moduleset.modules['syspkgbravo'].branch.version = '3' self.assertEqual(self.get_module_list(['foo']), ['baz', 'bar', 'foo']) self.moduleset.modules['syspkgbravo'].branch.version = '3.3' self.assertEqual(self.get_module_list(['foo']), ['baz', 'bar', 'foo']) self.moduleset.modules['syspkgbravo'].branch.version = '3.4' self.assertEqual(self.get_module_list(['foo']), ['baz', 'bar', 'foo']) self.moduleset.modules['syspkgbravo'].branch.version = '3.5' self.assertEqual(self.get_module_list(['foo']), ['baz', 'syspkgbravo', 'bar', 'foo']) self.moduleset.modules['syspkgbravo'].branch.version = '4' self.assertEqual(self.get_module_list(['foo']), ['baz', 'syspkgbravo', 'bar', 'foo'])
def __init__(self, name, branch, dependencies=[], after=[], autogenargs='', standardautogen=True, makeargs='', supports_non_srcdir_builds=True, autogen_sh='autogen.sh', makecommand=os.environ.get('MAKE', 'make'), makefile='Makefile', alwaysautogen=False, skipinstall=False): Package.__init__(self, name, dependencies, after) self.branch = branch self.autogenargs = autogenargs self.standardautogen = standardautogen self.makeargs = makeargs self.supports_non_srcdir_builds = supports_non_srcdir_builds self.autogen_sh = autogen_sh self.makecommand = makecommand self.makefile = makefile self.alwaysautogen = alwaysautogen self.skipinstall = skipinstall
def setUp(self): self.moduleset = jhbuild.moduleset.ModuleSet() self.moduleset.add(Package('foo')) self.moduleset.add(Package('bar')) self.moduleset.add(Package('baz')) self.moduleset.add(Package('qux')) self.moduleset.add(Package('quux')) self.moduleset.add(Package('corge'))
def setUp(self): super(ModuleOrderingTestCase, self).setUp() self.moduleset = jhbuild.moduleset.ModuleSet(config=self.config) self.moduleset.add(Package('foo')) self.moduleset.add(Package('bar')) self.moduleset.add(Package('baz')) self.moduleset.add(Package('qux')) self.moduleset.add(Package('quux')) self.moduleset.add(Package('corge'))
def __init__(self, name, branch=None, kconfigs=None, makeargs=None): Package.__init__(self, name, branch=branch) self.kconfigs = kconfigs self.makeargs = makeargs
def eval_args(self, args): args = Package.eval_args(self, args) args = args.replace('${libsuffix}', '') # liuhuan: support for custom checkoutroot args = args.replace('${checkoutroot}', self.config.checkoutroot) return args
def __init__(self, name, runtime=False, **kwargs): Package.__init__(self, name, **kwargs) self.runtime = runtime
def eval_args(self, args): args = Package.eval_args(self, args) args = args.replace('${libsuffix}', '') # liuhuan: support for custom checkoutroot args = args.replace('${checkoutroot}',self.config.checkoutroot) return args
def __init__(self, name, branch=None, waf_cmd='./waf'): Package.__init__(self, name, branch=branch) self.waf_cmd = waf_cmd self.supports_install_destdir = True
def eval_args(self, args): args = Package.eval_args(self, args) args = args.replace("${libsuffix}", "") return args
def __init__(self, name, branch=None, supports_non_srcdir_builds = True, buildargs=''): Package.__init__(self, name, branch=branch) self.supports_non_srcdir_builds = supports_non_srcdir_builds self.supports_install_destdir = True self.python = os.environ.get('PYTHON', 'python') self.buildargs = buildargs
def __init__(self, name, branch=None, makeargs=""): Package.__init__(self, name, branch=branch) self.makeargs = makeargs
def __init__(self, name, branch, makeargs='', dependencies=[], after=[]): Package.__init__(self, name, dependencies, after) self.branch = branch self.makeargs = makeargs
def __init__(self, name, branch, kconfigs, makeargs, dependencies, after, suggests): Package.__init__(self, name, dependencies, after, suggests) self.branch = branch self.kconfigs = kconfigs self.makeargs = makeargs
def eval_args(self, args): args = Package.eval_args(self, args) args = args.replace('${libsuffix}', '') return args
def __init__(self, name, branch, dependencies = [], after = [], suggests = [], supports_non_srcdir_builds = True): Package.__init__(self, name, dependencies, after, suggests) self.branch = branch self.supports_non_srcdir_builds = supports_non_srcdir_builds
def __init__(self, name, branch=None, supports_non_srcdir_builds = True): Package.__init__(self, name, branch=branch) self.supports_non_srcdir_builds = supports_non_srcdir_builds self.supports_install_destdir = True self.python = os.environ.get('PYTHON', 'python') self.pythons = [self.python]
def __init__(self, name, branch=None, makeargs=''): Package.__init__(self, name, branch=branch) self.makeargs = makeargs
def __init__(self, name, branch=None, supports_non_srcdir_builds = True): Package.__init__(self, name, branch=branch) self.supports_non_srcdir_builds = supports_non_srcdir_builds self.supports_install_destdir = True