Esempio n. 1
0
 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
Esempio n. 2
0
 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
Esempio n. 3
0
 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
Esempio n. 4
0
 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
Esempio n. 5
0
 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
Esempio n. 6
0
 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
Esempio n. 7
0
 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
Esempio n. 8
0
 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
Esempio n. 9
0
 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'
Esempio n. 11
0
 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
Esempio n. 12
0
 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
Esempio n. 13
0
 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
Esempio n. 14
0
 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
Esempio n. 15
0
    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'])
Esempio n. 16
0
 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
Esempio n. 17
0
 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
Esempio n. 18
0
 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'))
Esempio n. 19
0
 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'))
Esempio n. 20
0
 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
Esempio n. 21
0
 def __init__(self, name, branch=None, kconfigs=None, makeargs=None):
     Package.__init__(self, name, branch=branch)
     self.kconfigs = kconfigs
     self.makeargs = makeargs
Esempio n. 22
0
 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
Esempio n. 23
0
 def __init__(self, name, runtime=False, **kwargs):
     Package.__init__(self, name, **kwargs)
     self.runtime = runtime
Esempio n. 24
0
 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
Esempio n. 25
0
 def __init__(self, name, runtime=False, **kwargs):
     Package.__init__(self, name, **kwargs)
     self.runtime = runtime
Esempio n. 26
0
 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
Esempio n. 27
0
 def __init__(self, name, branch=None, kconfigs=None, makeargs=None):
     Package.__init__(self, name, branch=branch)
     self.kconfigs = kconfigs
     self.makeargs = makeargs
Esempio n. 28
0
 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
Esempio n. 29
0
 def eval_args(self, args):
     args = Package.eval_args(self, args)
     args = args.replace("${libsuffix}", "")
     return args
Esempio n. 30
0
 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
Esempio n. 31
0
 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
Esempio n. 32
0
 def __init__(self, name, branch=None, makeargs=""):
     Package.__init__(self, name, branch=branch)
     self.makeargs = makeargs
Esempio n. 33
0
 def __init__(self, name, branch, makeargs='',
              dependencies=[], after=[]):
     Package.__init__(self, name, dependencies, after)
     self.branch = branch
     self.makeargs = makeargs
Esempio n. 34
0
 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
Esempio n. 35
0
 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
Esempio n. 36
0
 def eval_args(self, args):
     args = Package.eval_args(self, args)
     args = args.replace('${libsuffix}', '')
     return args
Esempio n. 37
0
 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
Esempio n. 38
0
 def eval_args(self, args):
     args = Package.eval_args(self, args)
     args = args.replace('${libsuffix}', '')
     return args
Esempio n. 39
0
 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]
Esempio n. 40
0
 def __init__(self, name, branch=None, makeargs=''):
     Package.__init__(self, name, branch=branch)
     self.makeargs = makeargs
Esempio n. 41
0
 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