def setup(): inarytools.dosed("config/override.m4", "2.64", "2.69") shelltools.system( 'sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure') shelltools.makedirs("build") shelltools.cd("build") shelltools.export("PYTHON", "/usr/bin/python3") shelltools.system("../configure \ --prefix=/{0} \ --build={1} \ --mandir=/{2} \ --libdir=/{0}/lib \ --infodir=/{3} \ --datadir=/{4} \ --sysconfdir=/{5} \ --localstatedir=/{6} \ --libexecdir=/{7} \ --with-system-readline \ --with-separate-debug-dir=/usr/lib/debug \ --with-gdb-datadir=/usr/share/gdb \ --with-python=/usr/bin/{8} \ --with-pythondir=/usr/lib/{8}/site-packages \ --disable-nls \ --disable-rpath \ --with-expat".format(get.defaultprefixDIR(), get.HOST(), get.manDIR(), get.infoDIR(), get.dataDIR(), get.confDIR(), get.localstateDIR(), get.libexecDIR(), get.curPYTHON()))
def configure(parameters=''): """configure source with given parameters = "--with-nls --with-libusb --with-something-usefull""" if can_access_file('configure'): gnuconfig_update() prefix = get.emul32prefixDIR() if get.buildTYPE( ) == "emul32" else get.defaultprefixDIR() args = './configure \ --prefix=/{0} \ --build={1} \ --mandir=/{2} \ --infodir=/{3} \ --datadir=/{4} \ --sysconfdir=/{5} \ --localstatedir=/{6} \ --libexecdir=/{7} \ {8}{9}'.format( prefix, get.HOST(), get.manDIR(), get.infoDIR(), get.dataDIR(), get.confDIR(), get.localstateDIR(), get.libexecDIR(), "--libdir=/usr/lib32 " if get.buildTYPE() == "emul32" else "", parameters) if system(args): raise ConfigureError(_('Configure failed.')) else: raise ConfigureError( _('No configure script found. (\"{}\" file not found.)'.format( "configure")))
def meson_configure(parameters=""): if can_access_file('meson.build'): prefix = get.defaultprefixDIR() args = "meson \ --prefix=/{0} \ --buildtype=plain \ --libdir=/{0}/lib{1} \ --libexecdir=/{2} \ --sysconfdir=/{3} \ --localstatedir=/{4} \ {5} inaryPackageBuild".format( prefix, "32 " if get.buildTYPE() == "emul32" else "", get.libexecDIR(), get.confDIR(), get.localstateDIR(), parameters) if system(args): raise MesonError(_('Configure failed.')) else: raise ConfigureError( _('No configure script found. (\"{}\" file not found.)'.format( "meson.build")))
def configure(parameters=''): """configure source with given parameters = "--with-nls --with-libusb --with-something-usefull""" prefix = get.defaultprefixDIR() if get.buildTYPE() == "emul32": prefix = get.emul32prefixDIR() args = '--prefix=/{0} \ --build={1} \ --mandir=/{2} \ --infodir=/{3} \ --datadir=/{4} \ --sysconfdir=/{5} \ --localstatedir=/{6} \ --libexecdir=/{7} \ --libdir=/{8}\ {9}'.format(prefix, get.HOST(), get.manDIR(), get.infoDIR(), get.dataDIR(), get.confDIR(), get.localstateDIR(), get.libexecDIR(), get.libDIR(), parameters) rawConfigure(args)
def setup(): autotools.autoreconf("-vif") args = '../configure \ --prefix=/{0} \ --build={1} \ --mandir=/{2} \ --infodir=/{3} \ --datadir=/{4} \ --sysconfdir=/{5} \ --localstatedir=/{6} \ --libexecdir=/{7} \ --libdir=/usr/lib '.format(get.defaultprefixDIR(), get.HOST(), get.manDIR(), get.infoDIR(), get.dataDIR(), get.confDIR(), get.localstateDIR(), get.libexecDIR()) shelltools.makedirs("build-python3") shelltools.cd("build-python3") shelltools.system(args + "PYTHON=/usr/bin/python3 --with-python") shelltools.cd("..") shelltools.makedirs("build-python2") shelltools.cd("build-python2") shelltools.system(args + "PYTHON=/usr/bin/python2 --with-python")