def make(parameters=''): """build source with given parameters""" if ctx.config.get_option("verbose") and ctx.config.get_option("debug"): command = 'make VERBOSE=1 {0} {1}'.format(get.makeJOBS(), parameters) else: command = 'make {0} {1} '.format(get.makeJOBS(), parameters) if system(command): raise MakeError(_('Make failed.'))
def ninja_build(parameters=""): if system("ninja {} {} -C inaryPackageBuild".format( get.makeJOBS(), parameters)): raise NinjaBuildError(_("Build failed.")) if get.buildTYPE() == "emul32": fixpc() if isDirectory("{}/emul32".format(get.installDIR())): removeDir("/emul32")
def setup(): autotools.rawConfigure("--parallel=%s \ --system-libs \ --no-qt-gui \ --no-system-jsoncpp \ --prefix=/usr \ --datadir=/share/cmake \ --docdir=/share/doc/cmake \ --mandir=/share/man" % get.makeJOBS().replace("-j", ""))
def ninja_install(parameters=""): insdir = util.join_path( get.installDIR(), "emul32") if get.buildTYPE() == "emul32" else get.installDIR() if system('DESTDIR="{}" ninja install {} -C inaryPackageBuild'.format( insdir, get.makeJOBS())): raise NinjaBuildError(_("Install failed.")) if isDirectory("{}/emul32".format(get.installDIR())): if isDirectory("{}/emul32/lib32".format(get.installDIR())): copy("{}/emul32/lib32".format(get.installDIR()), "{}/".format(get.installDIR())) if isDirectory("{}/emul32/usr/lib32".format(get.installDIR())): copy("{}/emul32/usr/lib32".format(get.installDIR()), "{}/usr/".format(get.installDIR())) removeDir("/emul32")
def setup(): shelltools.system( 'export DISTRIBUTION_PATCHES="patches/fontconfig-paths.diff \ patches/openjdk7_nonreparenting-wm.diff\ patches/giflib_5.1.diff"') shelltools.export("CC", "gcc") shelltools.export("CXX", "g++") autotools.rawConfigure("\ --disable-tests \ --disable-Werror \ --with-parallel-jobs=%s \ --enable-nss \ --with-rhino \ --disable-system-kerberos \ --disable-system-pcsc \ --disable-system-sctp \ --enable-bootstrap \ --with-jdk-home=/usr/lib/jvm/java-7-openjdk \ --with-pkgversion='Sulin build 7.u121_2.6.19' \ " % get.makeJOBS().replace("-j", ""))
def ninja_check(): if system('ninja test {} -C inaryPackageBuild'.format(get.makeJOBS())): raise MesonError(_("Check failed."))
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from inary.actionsapi import get from inary.actionsapi import autotools from inary.actionsapi import inarytools from inary.actionsapi import shelltools shelltools.export("ALT_PARALLEL_COMPILE_JOBS", get.makeJOBS()) shelltools.export("HOTSPOT_BUILD_JOBS", get.makeJOBS()) shelltools.export("LC_ALL", "C") def setup(): shelltools.system( 'export DISTRIBUTION_PATCHES="patches/fontconfig-paths.diff \ patches/openjdk7_nonreparenting-wm.diff\ patches/giflib_5.1.diff"') shelltools.export("CC", "gcc") shelltools.export("CXX", "g++") autotools.rawConfigure("\ --disable-tests \ --disable-Werror \ --with-parallel-jobs=%s \ --enable-nss \ --with-rhino \ --disable-system-kerberos \
def make(parameters=''): """make source with given parameters = "all" || "doc" etc.""" if system('make {0} {1}'.format(get.makeJOBS(), parameters)): raise MakeError(_('Make failed.'))
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from inary.actionsapi import get from inary.actionsapi import autotools from inary.actionsapi import inarytools from inary.actionsapi import shelltools shelltools.export("JOBS", get.makeJOBS().replace("-j", "")) MODULES = "idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2,\ pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4,\ auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4" def setup(): inarytools.flags.add("-D_FILE_OFFSET_BITS=64", "-D_GNU_SOURCE", "-DLDAP_DEPRECATED", "-fPIC") shelltools.system("""sed -i -e '/"dns.resolver":/d' third_party/wscript""") shelltools.system("""sed -i -e '/"iso8601":/d' third_party/wscript""") shelltools.system("sed -e 's:<gpgme\.h>:<gpgme/gpgme.h>:' \ -i source4/dsdb/samdb/ldb_modules/password_hash.c ") autotools.configure("\ --libdir=/usr/lib \ --with-cachedir=/var/lib/samba \ --with-configdir=/etc/samba \ --with-lockdir=/var/cache/samba \ --with-logfilebase=/var/log/samba \
def make(parameters=''): if system('scons {0} {1}'.format(get.makeJOBS(), parameters)): raise MakeError(_('Make failed.'))
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from inary.actionsapi import get from inary.actionsapi import autotools from inary.actionsapi import inarytools jobs = get.makeJOBS().replace("-j", "") def setup(): autotools.configure("PYTHON=/usr/bin/python3 \ --builtin-libraries=replace \ --bundled-libraries=NONE \ --disable-rpath \ ") def build(): autotools.make("JOBS=%s" % jobs) def install(): autotools.rawInstall("DESTDIR=%s JOBS=%s" % (get.installDIR(), jobs)) # inarytools.remove("/usr/lib/*.a")
def ninja_install(parameters=""): insdir = util.join_path(get.installDIR(), "emul32") if get.buildTYPE() == "emul32" else get.installDIR() if system('DESTDIR="{}" ninja install {} -C inaryPackageBuild'.format(insdir, get.makeJOBS())): raise NinjaBuildError(_("Install failed."))
def ninja_build(parameters=""): if system("ninja {} {} -C inaryPackageBuild".format(get.makeJOBS(), parameters)): raise NinjaBuildError(_("Build failed."))