Пример #1
0
def configure(parameters = ''):
    '''configure source with given parameters = "--with-nls --with-libusb --with-something-usefull"'''
    # Set clang as compiler if supported
    if get.canClang():
		export ("CC", "clang")
		export ("CXX", "clang++")
		
    if can_access_file('configure'):
        gnuconfig_update()

        prefix = get.emul32prefixDIR() if get.buildTYPE() == "emul32" else get.defaultprefixDIR()
        args = './configure \
                --prefix=/%s \
                --build=%s \
                --mandir=/%s \
                --infodir=/%s \
                --datadir=/%s \
                --sysconfdir=/%s \
                --localstatedir=/%s \
                --libexecdir=/%s \
                %s' % (prefix, \
                       get.HOST(), get.manDIR(), \
                       get.infoDIR(), get.dataDIR(), \
                       get.confDIR(), get.localstateDIR(), get.libexecDIR(), parameters)

        if get.buildTYPE() == "emul32":
            args += " --libdir=/usr/lib32"

        if system(args):
            raise ConfigureError(_('Configure failed.'))
    else:
        raise ConfigureError(_('No configure script found.'))
Пример #2
0
def install(parameters = '', argument = 'install'):
    '''install source into install directory with given parameters'''
    # Set clang as compiler if supported
    if get.canClang():
		export ("CC", "clang")
		export ("CXX", "clang++")
		    
    args = 'make prefix=%(prefix)s/%(defaultprefix)s \
            datadir=%(prefix)s/%(data)s \
            infodir=%(prefix)s/%(info)s \
            localstatedir=%(prefix)s/%(localstate)s \
            mandir=%(prefix)s/%(man)s \
            sysconfdir=%(prefix)s/%(conf)s \
            %(parameters)s \
            %(argument)s' % {
                                'prefix': get.installDIR(),
                                'defaultprefix': get.defaultprefixDIR(),
                                'man': get.manDIR(),
                                'info': get.infoDIR(),
                                'localstate': get.localstateDIR(),
                                'conf': get.confDIR(),
                                'data': get.dataDIR(),
                                'parameters': parameters,
                                'argument':argument,
                            }

    if system(args):
        raise InstallError(_('Install failed.'))
    else:
        fixInfoDir()

    if get.buildTYPE() == "emul32":
        fixpc()
        if isDirectory("%s/emul32" % get.installDIR()): removeDir("/emul32")
Пример #3
0
def make(parameters = ''):
    '''make source with given parameters = "all" || "doc" etc.'''
    # Set clang as compiler if supported
    if get.canClang():
		export ("CC", "clang")
		export ("CXX", "clang++")
		    
    if system('make %s %s' % (get.makeJOBS(), parameters)):
        raise MakeError(_('Make failed.'))
Пример #4
0
def setup():
    shelltools.system("sed -i '/gtkdoc --rebase/s:^:# :' GNUmakefile.*")
    if not get.canClang(): build_config()
    autotools.configure("--disable-static \
                          --libexecdir=/usr/lib/WebKitGTK \
                          --with-gstreamer=1.0 \
                          --with-gnu-ld \
                          --enable-introspection \
                          --disable-geolocation \
                          --disable-gtk-doc-html")
    shelltools.system("sed -i '/gtkdoc --rebase/s:^:# :' GNUmakefile.*")
Пример #5
0
def setup():
    shelltools.system("sed -i '/gtkdoc --rebase/s:^:# :' GNUmakefile.*")
    if not get.canClang(): build_config()
    autotools.configure("--disable-static \
                         --libexecdir=/usr/lib/WebKitGTK \
                         --with-gstreamer=1.0 \
                         --with-gnu-ld \
                         --enable-introspection \
                         --disable-geolocation \
                         --disable-gtk-doc-html")
    shelltools.system("sed -i '/gtkdoc --rebase/s:^:# :' GNUmakefile.*")
Пример #6
0
def rawConfigure(parameters = ''):
    '''configure source with given parameters = "--prefix=/usr --libdir=/usr/lib --with-nls"'''
    # Set clang as compiler if supported
    if get.canClang():
		export ("CC", "clang")
		export ("CXX", "clang++")
		    
    if can_access_file('configure'):
        gnuconfig_update()

        if system('./configure %s' % parameters):
            raise ConfigureError(_('Configure failed.'))
    else:
        raise ConfigureError(_('No configure script found.'))
Пример #7
0
def rawInstall(parameters = '', argument = 'install'):
    '''install source into install directory with given parameters = PREFIX=%s % get.installDIR()'''
    # Set clang as compiler if supported
    if get.canClang():
		export ("CC", "clang")
		export ("CXX", "clang++")
		    
    if system('make %s %s' % (parameters, argument)):
        raise InstallError(_('Install failed.'))
    else:
        fixInfoDir()

    if get.buildTYPE() == "emul32":
        fixpc()
        if isDirectory("%s/emul32" % get.installDIR()): removeDir("/emul32")
Пример #8
0
def install():
    if not get.canClang(): build_config()
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
Пример #9
0
def build():
    if not get.canClang(): build_config()
    autotools.make()
Пример #10
0
def install():
    if not get.canClang(): build_config()
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
Пример #11
0
def build():
    if not get.canClang(): build_config()
    autotools.make()