Exemplo n.º 1
0
    def init_repos(self):
        if isinstance(self.source, repository.Subversion):

            def fixed_version(self):
                return '2009'

            self.source.version = misc.bind_method(fixed_version, self.source)
            self.texmf_repo = repository.Subversion(
                dir=self.get_repodir() + '-texmf',
                source=texlive_svn,
                branch='trunk',
                branchmodule='Master/texmf',
                revision='HEAD')
            self.texmf_dist_repo = repository.Subversion(
                dir=self.get_repodir() + '-texmf-dist',
                source=texlive_svn,
                branch='trunk',
                branchmodule='Master/texmf-dist',
                revision='HEAD')
        else:
            self.texmf_repo = repository.get_repository_proxy(
                self.get_repodir().replace('texlive', 'texlive-texmf-tiny'),
                (Texlive.source.replace('texlive',
                                        'texlive-texmf-tiny').replace(
                                            '.tar.gz', '.1.tar.gz')))
            self.texmf_dist_repo = repository.get_repository_proxy(
                self.get_repodir().replace('texlive',
                                           'texlive-texmf-dist-tiny'),
                (Texlive.source.replace('texlive',
                                        'texlive-texmf-dist-tiny').replace(
                                            '.tar.gz', '.1.tar.gz')))
Exemplo n.º 2
0
 def init_repos (self):
     if isinstance (self.source, repository.Subversion):
         def fixed_version (self):
             return '2009'
         self.source.version = misc.bind_method (fixed_version, self.source)
         self.texmf_repo = repository.Subversion (
             dir=self.get_repodir () + '-texmf',
             source=texlive_svn,
             branch='trunk',
             branchmodule='Master/texmf',
             revision='HEAD')
         self.texmf_dist_repo = repository.Subversion (
             dir=self.get_repodir () + '-texmf-dist',
             source=texlive_svn,
             branch='trunk',
             branchmodule='Master/texmf-dist',
             revision='HEAD')
     else:
         self.texmf_repo = repository.get_repository_proxy (self.get_repodir ().replace ('texlive', 'texlive-texmf-tiny'),
                                                            (Texlive.source
                                                             .replace ('texlive', 'texlive-texmf-tiny')
                                                             .replace ('.tar.gz', '.1.tar.gz')
                                                            ))
         self.texmf_dist_repo = repository.get_repository_proxy (self.get_repodir ().replace ('texlive', 'texlive-texmf-dist-tiny'),
                                                                 (Texlive.source
                                                                  .replace ('texlive', 'texlive-texmf-dist-tiny')
                                                                  .replace ('.tar.gz', '.1.tar.gz')
                                                                  ))
Exemplo n.º 3
0
 def module_repo (self, module):
     repo = repository.get_repository_proxy (self.settings.downloads + '/openoffice-tools',
                                             OpenOffice__tools.source.replace ('depth=files', 'branchmodule=' + module))
     def tracking (self):
         return True
     repo.is_tracking = misc.bind_method (tracking, repo)
     return repo
Exemplo n.º 4
0
 def _create_build (self):
     dir = os.path.join (self.settings.downloads, self.name ())
     branch = self.settings.__dict__.get ('%(_name)s_branch' % self.__dict__,
                                          self.build_class ().branch)
     source = self.url ()
     if not isinstance (source, repository.Repository):
         source = repository.get_repository_proxy (dir, source, branch)
     logging.default_logger.write_log ('cls:' + str (self.build_class ()) + '\n', 'output')
     return self.build_class () (self.settings, source)
Exemplo n.º 5
0
    def module_repo(self, module):
        repo = repository.get_repository_proxy(
            self.settings.downloads + '/openoffice-tools',
            OpenOffice__tools.source.replace('depth=files',
                                             'branchmodule=' + module))

        def tracking(self):
            return True

        repo.is_tracking = misc.bind_method(tracking, repo)
        return repo
Exemplo n.º 6
0
    def compile(self):
        # FIXME: ugh, no branches anymore in self.settings.branches['guile'],
        # let's hope/assume the user did not override guile source or branch...
        #guile_branch = guile.Guile (self.settings, guile.Guile.source).source.full_branch_name ()
        dir = os.path.join(self.settings.downloads, 'guile')
        guile_branch = repository.get_repository_proxy(
            dir, guile.Guile.source, guile.Guile.branch).full_branch_name()
        lilypond_branch = self.source.full_branch_name()
        compile_command = (sys.executable + misc.join_lines('''
bin/gib
--platform=%%(target_platform)s
--branch=guile=%(guile_branch)s
--branch=lilypond=%(lilypond_branch)s
lilypond
%%(compile_flags)s
''' % locals()))
        self.system(compile_command)
Exemplo n.º 7
0
    def compile (self):
        # FIXME: ugh, no branches anymore in self.settings.branches['guile'],
        # let's hope/assume the user did not override guile source or branch...
        #guile_branch = guile.Guile (self.settings, guile.Guile.source).source.full_branch_name ()
        dir = os.path.join (self.settings.downloads, 'guile')
        guile_branch = repository.get_repository_proxy (dir, guile.Guile.source, guile.Guile.branch).full_branch_name ()
        lilypond_branch = self.source.full_branch_name ()
        compile_command = (sys.executable
                + misc.join_lines ('''
bin/gib
--platform=%%(target_platform)s
--branch=guile=%(guile_branch)s
--branch=lilypond=%(lilypond_branch)s
lilypond
%%(compile_flags)s
''' % locals ()))
        self.system (compile_command)
Exemplo n.º 8
0
Arquivo: glibc.py Projeto: imace/gub
 def linuxthreads (self):
     return repository.get_repository_proxy (self.settings.downloads,
                                             self.expand ('http://ftp.gnu.org/pub/gnu/glibc/glibc-linuxthreads-%(version)s.tar.bz2&strip_components=0'))
Exemplo n.º 9
0
Arquivo: glibc.py Projeto: marnen/gub
 def linuxthreads(self):
     return repository.get_repository_proxy(
         self.settings.downloads,
         self.expand(
             'http://ftp.gnu.org/pub/gnu/glibc/glibc-linuxthreads-%(version)s.tar.bz2&strip_components=0'
         ))
Exemplo n.º 10
0
 def __init__ (self, settings, source):
     ghostscript.Ghostscript.__init__ (self, settings, source)
     self.fonts_source = repository.get_repository_proxy (self.settings.downloads, 'http://mirror2.cs.wisc.edu/pub/mirrors/ghost/GPL/gs860/ghostscript-fonts-std-8.11.tar.gz')