예제 #1
0
def install():
    shelltools.cd("squashfs-tools")
    autotools.install("INSTALL_DIR='%s/usr/sbin'" % get.installDIR())
예제 #2
0
def build():
    shelltools.cd("libraries/liblmdb")
    autotools.make("prefix=/usr")
예제 #3
0
def build():
    shelltools.cd("moz-build")
    shelltools.export("SHELL", "/bin/bash")
    autotools.make()
예제 #4
0
def setup():
    shelltools.export("PYTHON", "/usr/bin/python3")
    for dirs in ["tools", "projects"]:
        if not shelltools.can_access_directory(dirs):
            shelltools.makedirs(dirs)

    if not shelltools.can_access_directory("tools/clang"):
        shelltools.system("tar -xvf ../clang-%s.src.tar.xz -C tools" %
                          get.srcVERSION())
        shelltools.move("tools/clang-%s.src" % get.srcVERSION(), "tools/clang")

        shelltools.system(
            "tar -xvf ../clang-tools-extra-%s.src.tar.xz -C tools" %
            get.srcVERSION())
        shelltools.move("tools/clang-tools-extra-*", "tools/clang/extra")

    if get.buildTYPE() != "emul32":
        shelltools.system("tar -xvf ../lldb-%s.src.tar.xz -C tools" %
                          get.srcVERSION())
        shelltools.move("tools/lldb-*", "tools/lldb")

    if not shelltools.can_access_directory("tools/polly"):
        shelltools.system("tar -xvf ../polly-%s.src.tar.xz -C tools" %
                          get.srcVERSION())
        shelltools.move("tools/polly-*", "tools/polly")

    if not shelltools.can_access_directory("projects/compiler-rt"):
        shelltools.system("tar -xvf ../compiler-rt-%s.src.tar.xz -C projects" %
                          get.srcVERSION())
        shelltools.move("projects/compiler-rt-%s.src" % get.srcVERSION(),
                        "projects/compiler-rt")

        shelltools.export("CC", "gcc")
        shelltools.export("CXX", "g++")

    if get.buildTYPE() == "emul32":
        shelltools.export("CC", "gcc -m32")
        shelltools.export("CXX", "g++ -m32")
        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")

    shelltools.makedirs("inary-build")

    shelltools.cd("inary-build")

    if get.buildTYPE() != "emul32":
        options = "-DCMAKE_C_FLAGS:STRING=-m64 \
                            -DCMAKE_INSTALL_PREFIX=/usr \
                            -DCMAKE_CXX_FLAGS:STRING=-m64 \
                            -DLLVM_TARGET_ARCH:STRING=x86_64 \
                            -DLLVM_DEFAULT_TARGET_TRIPLE=%s " % get.HOST()

    if get.buildTYPE() == "emul32":
        options = "  -DCMAKE_C_FLAGS:STRING=-m32 \
                            -DCMAKE_INSTALL_PREFIX=/emul32 \
                            -DLLVM_TARGET_ARCH:STRING=i686  \
                            -DLLVM_INCLUDE_TESTS=NO \
                            -DLLVM_LIBDIR_SUFFIX=32 \
                            -DLLVM_DEFAULT_TARGET_TRIPLE='i686-pc-linux-gnu' \
                            -DCMAKE_CXX_FLAGS:STRING=-m32"

    cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
                             %s \
                             -DLLVM_BUILD_LLVM_DYLIB=ON \
                             -DLLVM_LINK_LLVM_DYLIB=ON \
                             -DLLVM_INSTALL_UTILS=ON \
                             -DLLVM_ENABLE_RTTI=ON \
                             -DLLVM_ENABLE_FFI=ON \
                             -DLLVM_BUILD_TESTS=OFF \
                             -DLLVM_BUILD_DOCS=OFF \
                             -DLLVM_ENABLE_SPHINX=OFF \
                             -DLLVM_ENABLE_DOXYGEN=OFF \
                             -DPOLLY_ENABLE_GPGPU_CODEGEN=ON \
                             -DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include \
                             -DSPHINX_WARNINGS_AS_ERRORS=OFF \
                             -DLLVM_BINUTILS_INCDIR=/usr/include" % options,
                         sourceDir="..")
예제 #5
0
def install():
    shelltools.cd("build")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
예제 #6
0
def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")
    cmaketools.configure(sourceDir="..")
예제 #7
0
def build():
    if get.LDFLAGS():
        ld = "-j1 LD=%s %s" % (get.LD(), get.LDFLAGS())
    else:
        ld = "-j1 LD=%s" % get.LD()

    autotools.make(ld)

    shelltools.cd("contrib")
    autotools.make(ld)
    shelltools.cd("..")

    shelltools.cd("contrib/xml2")
    autotools.make(ld)
    shelltools.cd("../..")

    shelltools.cd("src/interfaces/libpq")
    autotools.make(ld)
    shelltools.cd("../../..")

    shelltools.cd("doc")
    autotools.make(ld)
    shelltools.cd("..")
예제 #8
0
def build():
    shelltools.cd("%s/runc/src/github.com/opencontainers/runc" % get.workDIR())

    build_runc = "GOPATH=%s/runc make" % get.workDIR()

    shelltools.system(build_runc)
예제 #9
0
def build():
    shelltools.cd("build")
    autotools.make()
예제 #10
0
def build():
    shelltools.cd("libvpx-build")
    shelltools.system("make -j1 LDFLAGS=\"{} -fPIC\"".format(get.LDFLAGS()))
예제 #11
0
def install():
    shelltools.cd("libvpx-build")
    autotools.rawInstall("DESTDIR=%s/" % get.installDIR())
    shelltools.cd("..")
    inarytools.dodoc("AUTHORS", "CHANGELOG", "LICENSE", "PATENTS")
예제 #12
0
def install():
    shelltools.cd("budgie-desktop")
    mesontools.ninja_install()
예제 #13
0
def build():
    shelltools.cd("budgie-desktop")
    mesontools.ninja_build()
예제 #14
0
def install():
    shelltools.cd("moz-build")
    shelltools.export("SHELL", "/bin/bash")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
예제 #15
0
def setup():
    for package in shelltools.ls("*-*"):
        shelltools.cd(package)
        option = "--with-fontrootdir=/usr/share/fonts"
        autotools.configure(option)
        shelltools.cd("../")
예제 #16
0
def build():
    autotools.make()
    shelltools.cd("doc")
    shelltools.system(
        "po4a -k 0 --rm-backups --variable 'srcdir=../doc/' po4a/po4a.cfg")
예제 #17
0
def build():
    for package in shelltools.ls("*-*"):
        shelltools.cd(package)
        autotools.make()
        shelltools.cd("../")
예제 #18
0
def build():
    shelltools.cd("js/src")
    autotools.make()
예제 #19
0
def build():
    shelltools.cd("build")
    cmaketools.make()
예제 #20
0
def setup():
    shelltools.cd("nss")
    shelltools.system('PATH="{}/path:$PATH" bash -x ./build.sh -v \
                      --opt --system-sqlite --system-nspr --enable-libpkix --disable-tests'
                      .format(get.srcDIR()))
예제 #21
0
def install():
    autotools.rawInstall("DESTDIR=%s LIBDIR=%s/usr/lib" %
                         (get.installDIR(), get.installDIR()))

    shelltools.cd("contrib")
    autotools.rawInstall("DESTDIR=%s LIBDIR=%s/usr/lib" %
                         (get.installDIR(), get.installDIR()))
    shelltools.cd("..")

    shelltools.cd("contrib/xml2")
    autotools.rawInstall("DESTDIR=%s LIBDIR=%s/usr/lib" %
                         (get.installDIR(), get.installDIR()))
    shelltools.cd("../..")

    shelltools.cd("src/interfaces/libpq")
    autotools.rawInstall("DESTDIR=%s LIBDIR=%s/usr/lib" %
                         (get.installDIR(), get.installDIR()))
    shelltools.cd("../../..")

    shelltools.cd("doc")
    autotools.rawInstall("DESTDIR=%s LIBDIR=%s/usr/lib" %
                         (get.installDIR(), get.installDIR()))
    shelltools.cd("..")

    # No static libs
    inarytools.remove("/usr/lib/*.a")

    inarytools.dodoc("README", "HISTORY", "COPYRIGHT")
    inarytools.dodoc("doc/MISSING_FEATURES", "doc/KNOWN_BUGS", "doc/TODO")
    inarytools.dodir("/var/lib/postgresql")
    inarytools.dodir("/var/lib/postgresql/data")
    inarytools.dodir("/var/lib/postgresql/backups")
예제 #22
0
def install():
    shelltools.cd("src")
    autotools.rawInstall("ROOT='%s' STRIP=/bin/true" % get.installDIR())

    inarytools.remove("/bin/pidof")
    inarytools.dosym("killall5", "/sbin/pidof")
예제 #23
0
def build():
    shelltools.export("PYTHON", "/usr/bin/python3")
    shelltools.makedirs("inary-build")
    shelltools.cd("inary-build")

    cmaketools.make()
예제 #24
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from inary.actionsapi import autotools
from inary.actionsapi import mesontools
from inary.actionsapi import cmaketools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import get

shelltools.cd("../libhandy-0.90.0")


def setup():
    shelltools.system("pwd")
    mesontools.meson_configure()


def build():
    mesontools.ninja_build()


def install():
    mesontools.ninja_install()
예제 #25
0
def build():
    autotools.make()
    shelltools.cd("python")
    pythonmodules.compile(pyVer="3")
    shelltools.cd("..")
예제 #26
0
def build():
    shelltools.cd("unix")
    autotools.make()
예제 #27
0
def setup():
    shelltools.makedirs("components/cli/src/github.com/docker")
    shelltools.cd("components/cli/src/github.com/docker")
    shelltools.system("ln -s ../../../../cli . ")
예제 #28
0
def build():
    shelltools.cd("build-gtk2")
    autotools.make()
    shelltools.cd("..")
    shelltools.cd("build-gtk3")
    autotools.make()
예제 #29
0
def install():
    shelltools.cd("moz-build")
    shelltools.export("SHELL", "/bin/bash")
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    #BUG: at issue #24 in gitlab
    inarytools.remove("/usr/lib/*.ajs")
예제 #30
0
def install():
    shelltools.cd("build")
    cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("..")
    inarytools.dodoc("COPYING*")