def setup(): shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=lib", sourceDir="..")
def install(): shelltools.makedirs("build") shelltools.cd("build") cmaketools.install() inarytools.dodoc("../LICENSE")
def setup(): shelltools.makedirs(NCURSES) shelltools.makedirs(NCURSESW) shelltools.cd(NCURSESW) global CONFIGPARAMS if get.buildTYPE() == "_emul32": shelltools.export("PKG_CONFIG_LIBDIR", "/usr/lib32/pkgconfig") inarytools.dosed("%s/misc/gen-pkgconfig.in" % WORKDIR, "^(show_prefix=).*", "\\1'/usr'") CONFIGPARAMS += " --prefix=/_emul32 \ --libdir=/usr/lib32 \ --libexecdir=/_emul32/lib \ --bindir=/_emul32/bin \ --sbindir=/_emul32/sbin \ --mandir=/_emul32/share/man" else: CONFIGPARAMS += " --prefix=/usr \ --libdir=/usr/lib \ --libexecdir=/usr/lib \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --mandir=/usr/share/man" shelltools.system("%s/configure --enable-widec --enable-pc-files %s" % (WORKDIR, CONFIGPARAMS))
def setup(): shelltootls shelltools.system("sed -i 's/cp -p/cp/' build/make/Makefile ") shelltools.makedirs("libvpx-build") shelltools.cd("libvpx-build") shelltools.system("../configure --prefix=/usr \ --enable-shared \ --disable-static ")
def setup(): autotools.autoreconf("-vif") shelltools.makedirs("build") shelltools.cd("build") shelltools.system("../configure \ --prefix=/usr \ --sysconfdir=/etc \ --disable-sanitizers")
def setup(): shelltools.cd(minizip_dir) shelltools.makedirs("m4") autotools.autoreconf("-vif") # Don't create unnecessary empty /usr/bin inarytools.dosed("Makefile.in", "install-exec-am: install-binPROGRAMS install-libLTLIBRARIES", "install-exec-am: install-libLTLIBRARIES") autotools.configure("")
def setup(): shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("PYTHON=/usr/bin/python3 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DFCS_WITH_TEST_SUITE=OFF \ -DBUILD_STATIC_LIBRARY=OFF", sourceDir="..")
def setup(): shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_DESIGNER_PLUGIN=0 \ -DUSE_QT5=true", sourceDir="..")
def setup(): # shelltools.export("LDFLAGS", "%s -lX11" % get.LDFLAGS()) shelltools.makedirs("m4") shelltools.system("/usr/bin/xdt-autogen") autotools.configure("--disable-dependency-tracking \ --enable-libnotify \ --enable-taglib") inarytools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
def setup(): shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DENABLE_MAINTAINER_TOOLS=TRUE \ -DENABLE_FONTFORGE_EXTRAS=TRUE \ -DUNIX=TRUE ", sourceDir="..")
def setup(): shelltools.system(' sed -e "/torture_keyfiles/d" \ -i tests/unittests/CMakeLists.txt && \ sed -e "/^check_include_file.*HAVE_VALGRIND_VALGRIND_H/s/^/#DONT /" \ -i ConfigureChecks.cmake') shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \ -DWITH_GSSAPI=OFF", sourceDir="..")
def setup(): # autotools.autoreconf("-vfi") shelltools.makedirs("build") shelltools.cd("build") shelltools.system("meson --prefix=/usr \ --sysconfdir=/etc \ -Dselinux=false \ -Dteam=false \ -Dmobile_broadband_provider_info=false \ -Dgtk_doc=false .. ")
def setup(): shelltools.cd("..") shelltools.makedirs("build_python") shelltools.copytree("./%s" % WorkDir, "build_python") shelltools.cd(WorkDir) shelltools.cd("..") shelltools.makedirs("build_python3") shelltools.copytree("./%s" % WorkDir, "build_python3") shelltools.cd(WorkDir)
def testUnlinkDir(self): from inary.actionsapi.shelltools import makedirs from inary.actionsapi.shelltools import sym from inary.actionsapi.shelltools import unlinkDir makedirs('tests/testdirectory/sample') sym('testdirectory/sample', 'tests/history') self.assertEqual(os.path.islink('tests/history'), True) unlinkDir('tests/testdirectory/sample') self.assertEqual(os.path.islink('tests/testdirectory/sample'), False)
def setup(): inarytools.cxxflags.remove("-fPIC") shelltools.export("SHELL", "/bin/bash") shelltools.makedirs("moz-build") shelltools.cd("moz-build") shelltools.system(" ../configure --prefix=/usr \ --with-intl-api \ --with-system-zlib \ --with-system-icu \ --disable-jemalloc \ --enable-readline ")
def setup(): shelltools.cd("%s" % get.workDIR()) shelltools.move("runc-*", "runc") shelltools.cd("runc") shelltools.move("vendor", "src") shelltools.makedirs("src/github.com/opencontainers") shelltools.cd("src/github.com/opencontainers") shelltools.system("ln -rsf %s/runc ./runc" % get.workDIR())
def setup(): shelltools.makedirs("inary-build") shelltools.cd("inary-build") cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib{} \ -DCMAKE_BUILD_TYPE=Release \ -DJAS_ENABLE_OPENGL=ON \ -DJAS_ENABLE_LIBJPEG=ON \ -DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF \ -DCMAKE_SKIP_RPATH=ON".format( "32" if get.buildTYPE() == "emul32" else ""), sourceDir="..")
def setup(): exportFlags() # Maintainer mode off, do not force recreation of generated files #shelltools.system("contrib/gcc_update --touch") inarytools.dosed("gcc/Makefile.in", "\.\/fixinc\.sh", "-c true") inarytools.dosed("gcc/configure", "^(ac_cpp='\$CPP\s\$CPPFLAGS)", r"\1 -O2") inarytools.dosed("libiberty/configure", "^(ac_cpp='\$CPP\s\$CPPFLAGS)", r"\1 -O2") shelltools.cd("../") shelltools.makedirs("build") shelltools.cd("build") shelltools.system('.././gcc-%s/configure \ --prefix=/usr \ --bindir=/usr/bin \ --libdir=/usr/lib \ --libexecdir=/usr/lib \ --includedir=/usr/include \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-bugurl=http://gitlab.com/sulinos/main/issues \ --enable-languages=c,c++,go,fortran,lto,objc,obj-c++ \ --enable-shared \ --enable-threads=posix \ --with-system-zlib \ --enable-__cxa_atexit \ --disable-libunwind-exceptions \ --enable-clocale=gnu \ --disable-libstdcxx-pch \ --disable-libssp \ --enable-gnu-unique-object \ --enable-linker-build-id \ --enable-lto \ --enable-install-libiberty \ --enable-gnu-indirect-function \ --with-linker-hash-style=gnu \ --enable-plugin \ --with-pkgversion="Sulin" \ --disable-werror \ --enable-checking=release \ --enable-default-pie \ --enable-default-ssp \ --enable-cet=auto \ --build=x86_64-pc-linux-gnu \ --target=x86_64-pc-linux-gnu \ --host=x86_64-pc-linux-gnu \ %s \ %s \ %s ' % (verMajor, opt_unwind, opt_arch, opt_multilib))
def setup(): shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DUSE_QT5=ON \ -DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf \ -DUSE_WAYLAND=ON \ -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/sddm \ -DBUILD_MAN_PAGES=ON", sourceDir="..")
def testCopy(self): from inary.actionsapi.shelltools import echo from inary.actionsapi.shelltools import copy from inary.actionsapi.shelltools import makedirs makedirs('tests/testdirectory/sample') copy('tests', 'tests-copy') self.assertEqual(os.path.islink('tests-copy'), False) shutil.rmtree("tests-copy") echo('tests/echo-file', 'subject eco') copy('tests/echo-file', 'tests/echo-file-copy') self.assertEqual(os.path.islink('tests/echo-file-copy'), False) os.remove("tests/echo-file")
def setup(): shelltools.makedirs("build-gtk2") shelltools.makedirs("build-gtk3") autotools.autoreconf("-fi") shelltools.cd("build-gtk2") shelltools.system("../configure \ --prefix=/usr \ --sysconfdir=/etc") shelltools.cd("..") shelltools.cd("build-gtk3") shelltools.system("../configure \ --prefix=/usr \ --sysconfdir=/etc \ --enable-gtk3")
def setup(): shelltools.system(" sed -i \ -e '/ADD_SUBDIRECTORY (src\/ext)/d' \ CMakeLists.txt && rm -rf src/ext") shelltools.export("CFLAGS", "-lpthread") shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \ -DENABLE_ASCII_MODE=OFF \ -DENABLE_PACKAGING=OFF \ -DDISABLE_MULTITHREADING=OFF \ -DBUILD_CONTRIBS_LIB=ON \ -DLIB_DESTINATION:PATH=/usr/lib \ -DLUCENE_SYS_INCLUDES:PATH=/usr/lib \ -DDISABLE_MULTITHREADING=OFF", sourceDir="..")
def build(): shelltools.export("GOPATH", "%s" % get.workDIR()) shelltools.cd("%s" % get.workDIR()) shelltools.move("containerd-*", "containerd") shelltools.cd("containerd") shelltools.move("vendor", "src") shelltools.makedirs("src/github.com/containerd") shelltools.system("ln -rsf %s/containerd* src/github.com/containerd" % get.workDIR()) shelltools.cd("src/github.com/containerd/containerd") shelltools.system("LDFLAGS= GOPATH=%s make GIT_COMMIT=209a7fc" % get.curDIR())
def setup(): # we must include headers, but kernel headers chango too fast, maybe we should # go back to adding them as a patch # shelltools.sym("/lib/modules/%s/build" % KDIR, "linux") #~ shelltools.copytree("/lib/modules/%s/build" % KDIR, "linux") shelltools.makedirs("linux/include") shelltools.system("ln -s /usr/include/linux linux/include/") shelltools.system("ln -s /usr/include/asm linux/include/") shelltools.system("ln -s /usr/include/asm-generic linux/include/") # don't install kernel headers inarytools.dosed("scripts/Kbuild.install", ".*headers_install") # set the build directory #~ shelltools.echo("MCONFIG", "KRNLOBJ = /lib/modules/%s/build" % KDIR) #shelltools.sym("../linux-3.7","linux") # Workaround for prelink warnings shelltools.echo("70klibc", 'PRELINK_PATH_MASK="/usr/lib/klibc"') inarytools.dosed("Makefile", "/man", "/share/man")
def setup(): inarytools.cxxflags.remove("-fPIC") shelltools.export("SHELL", "/bin/bash") shelltools.makedirs("moz-build") shelltools.cd("moz-build") shelltools.system(" ../configure --prefix=/usr \ --disable-debug \ --disable-debug-symbols \ --disable-jemalloc \ --disable-strip \ --enable-hardening \ --enable-linker=gold \ --enable-optimize \ --enable-posix-nspr-emulation \ --enable-readline \ --enable-release \ --enable-shared-js \ --enable-tests \ --with-intl-api \ --with-system-zlib \ --without-system-icu")
def install(): shelltools.makedirs("inary-build") shelltools.cd("inary-build") cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) if get.buildTYPE() == "emul32": inarytools.domove("/emul32/lib32/", "/usr/") inarytools.insinto( "/usr/include/llvm/Config/", "%s/emul32/include/llvm/Config/llvm-config.h" % get.installDIR(), "llvm-config-32.h") inarytools.insinto("/usr/bin/", "%s/emul32/bin/llvm-config" % get.installDIR(), "llvm-config-32") inarytools.removeDir("/emul32") shelltools.cd("..") inarytools.dodoc("CREDITS.TXT", "LICENSE.TXT", "README.txt")
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")
def cmake_configure(parameters=""): makedirs("inaryPackageBuild") cd("inaryPackageBuild") if can_access_file(util.join_path("..", 'CMakeLists.txt')): args = 'cmake -DCMAKE_INSTALL_PREFIX=/{0} \ -DCMAKE_INSTALL_LIBDIR={1} \ -DCMAKE_C_FLAGS="{6} {2}" \ -DCMAKE_CXX_FLAGS="{6} {3}" \ -DCMAKE_LD_FLAGS="{4}" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo {5} -G Ninja ..'.format( get.defaultprefixDIR(), "/usr/lib32 " if get.buildTYPE() == "emul32" else "/usr/lib", get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS(), parameters, "-m32" if get.buildTYPE() == "emul32" else "-m64") if system(args): raise ConfigureError(_('CMake configure failed.')) else: raise ConfigureError( _('No configure script found. (\"{}\" file not found.)'.format( "CMakeLists.txt")))
def configure(parameters='', installPrefix=prefix, sourceDir='..'): """ parameters -DLIB_INSTALL_DIR="hede" -DSOMETHING_USEFUL=1""" shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \ -DKDE_INSTALL_LIBEXECDIR={0} \ -DCMAKE_INSTALL_LIBDIR=lib \ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ -DKDE_INSTALL_QMLDIR={1} \ -DKDE_INSTALL_SYSCONFDIR={2} \ -DKDE_INSTALL_PLUGINDIR={3} \ -DECM_MKSPECS_INSTALL_DIR={4} \ -DBUILD_TESTING=OFF \ -DKDE_INSTALL_LIBDIR=lib \ -Wno-dev \ -DCMAKE_INSTALL_PREFIX={5} \ {6}".format(libexecdir, qmldir, sysconfdir, plugindir, moduledir, prefix, parameters), installPrefix, sourceDir) shelltools.cd("..")
def setup(): if get.buildTYPE() == "emul32": inarytools.dosed("CMakeLists.txt", 'lib/cmake' 'lib32/cmake') inarytools.dosed("CMakeLists.txt", 'pkg_search_module.*ibus-1.0' 'lib32/cmake') options = "-DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_SUFFIX=32 \ -DSDL_STATIC=OFF \ -DSDL_DLOPEN=ON \ -DARTS=OFF \ -DESD=OFF \ -DNAS=OFF \ -DALSA=ON \ -DPULSEAUDIO_SHARED=ON \ -DVIDEO_WAYLAND=ON \ -DRPATH=OFF \ -DCLOCK_GETTIME=ON \ -DJACK_SHARED=ON \ -DSDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS=1 \ -DSDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY=1 " else: options = "-DCMAKE_INSTALL_PREFIX=/usr \ -DSDL_STATIC=OFF \ -DSDL_DLOPEN=ON \ -DARTS=OFF \ -DESD=OFF \ -DNAS=OFF \ -DALSA=ON \ -DPULSEAUDIO_SHARED=ON \ -DVIDEO_WAYLAND=ON \ -DRPATH=OFF \ -DCLOCK_GETTIME=ON \ -DJACK_SHARED=ON" shelltools.makedirs("build") shelltools.cd("build") cmaketools.configure(options, sourceDir="..")