示例#1
0
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.'))
示例#2
0
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")
示例#3
0
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", ""))
示例#4
0
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")
示例#5
0
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", ""))
示例#6
0
def ninja_check():
    if system('ninja test {} -C inaryPackageBuild'.format(get.makeJOBS())):
        raise MesonError(_("Check failed."))
示例#7
0
#!/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 \
示例#8
0
def make(parameters=''):
    """make source with given parameters = "all" || "doc" etc."""
    if system('make {0} {1}'.format(get.makeJOBS(), parameters)):
        raise MakeError(_('Make failed.'))
示例#9
0
#!/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 \
示例#10
0
文件: scons.py 项目: sulincix/inary
def make(parameters=''):
    if system('scons {0} {1}'.format(get.makeJOBS(), parameters)):
        raise MakeError(_('Make failed.'))
示例#11
0
#!/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")
示例#12
0
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."))
示例#13
0
def ninja_build(parameters=""):
    if system("ninja {} {} -C inaryPackageBuild".format(get.makeJOBS(), parameters)):
        raise NinjaBuildError(_("Build failed."))