def install(): shelltools.system("make -C unix DESTDIR=%s install" % get.installDIR()) # Collect private headers, 3rd party apps like Tile depends on this inarytools.dodir("/usr/include/tk-private/generic") inarytools.dodir("/usr/include/tk-private/unix") shelltools.copy("unix/*.h", "%s/usr/include/tk-private/unix" % get.installDIR()) shelltools.copy("generic/*.h", "%s/usr/include/tk-private/generic" % get.installDIR()) # Remove duplicated headers inarytools.remove("/usr/include/tk-private/generic/tk.h") inarytools.remove("/usr/include/tk-private/generic/tkDecls.h") inarytools.remove("/usr/include/tk-private/generic/tkPlatDecls.h") # Remove tmp path from tclConfig.sh inarytools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(), "%s/unix" % get.curDIR(), "/usr/lib/") inarytools.dosed("%s/usr/lib/tkConfig.sh" % get.installDIR(), get.curDIR(), "/usr/include/tk-private") inarytools.dosym("wish8.6", "/usr/bin/wish") inarytools.dodoc("ChangeLog", "changes", "license.terms", "README.md")
def install(): # Install unicode.pf2 using downloaded font source. shelltools.system("./grub-mkfont -o unicode.pf2 unifont.bdf") # Create directory for grub.cfg file inarytools.dodir("/boot/grub2") inarytools.insinto("/boot/grub2", "unicode.pf2") # Insall our theme inarytools.insinto("/usr/share/grub/themes/", "themes/grub2-theme-breeze-5.13.1") #remove -r 0x0-0x7F entries to fix ugly fonts or find a suitable range parameter -r *** shelltools.system( "./grub-mkfont -o DejaVuSans-10.pf2 -r 0x0-0x7F -s 10 /usr/share/fonts/dejavu/DejaVuSans.ttf" ) shelltools.system( "./grub-mkfont -o DejaVuSans-12.pf2 -r 0x0-0x7F -s 12 /usr/share/fonts/dejavu/DejaVuSans.ttf" ) shelltools.system( "./grub-mkfont -o DejaVuSans-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSans.ttf" ) shelltools.system( "./grub-mkfont -o DejaVuSans-16.pf2 -r 0x0-0x7F -s 16 /usr/share/fonts/dejavu/DejaVuSans.ttf" ) shelltools.system( "./grub-mkfont -o DejaVuSans-Bold-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf" ) shelltools.system( "./grub-mkfont -o DejaVuSans-Mono-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSansMono.ttf" ) shelltools.copy( "ascii.pf2", "%s/usr/share/grub/themes/grub2-theme-breeze-5.13.1" % get.installDIR()) # Do not install auto generated dejavu* fonts fonts = [ "DejaVuSans-10.pf2", "DejaVuSans-12.pf2", "DejaVuSans-14.pf2", "DejaVuSans-16.pf2", "DejaVuSans-Mono-14.pf2", "DejaVuSans-Bold-14.pf2" ] for font in fonts: shelltools.copy( font, "%s/usr/share/grub/themes/grub2-theme-breeze-5.13.1" % get.installDIR()) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) inarytools.dodoc("ABOUT-NLS", "AUTHORS", "BUGS", "ChangeLog", "COPYING", "TODO", "README") shelltools.cd("../grub-%s-efi" % get.srcVERSION()) autotools.rawInstall("DESTDIR=%s/efi" % get.installDIR()) shelltools.copytree("/%s/efi/usr/lib/grub/x86_64-efi" % get.installDIR(), "%s/usr/lib/grub/x86_64-efi" % get.installDIR()) inarytools.removeDir("/efi")
def install(): mesontools.ninja_install() if get.buildTYPE() == "emul32": shelltools.copy("{}/emul32/usr/lib32".format(get.installDIR()), "{}/usr/".format(get.installDIR())) #shelltools.copy("{}/emul32/lib32".format(get.installDIR()),"{}/".format(get.installDIR())) shelltools.unlinkDir("{}/emul32".format(get.installDIR())) shelltools.unlinkDir("{}/usr/usr/".format(get.installDIR())) shelltools.unlinkDir("{}/usr/share/installed-tests/".format( get.installDIR()))
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 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 install(): shelltools.cd(NCURSESW) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) LIB = "/usr/lib32" if get.buildTYPE() == "_emul32" else "/usr/lib" print(LIB) for lib in ["ncurses", "form", "panel", "menu"]: shelltools.echo("lib%s.so" % lib, "INPUT(-l%sw)" % lib) inarytools.dolib("lib%s.so" % lib, destinationDirectory=LIB) #inarytools.dosym("lib%sw.a" % lib, "%s/lib%s.a" % (LIB, lib)) inarytools.dosym("libncurses++w.a", "%s/libncurses++.a" % LIB) shelltools.copy("%s/usr/share/pkgconfig/" % get.installDIR(), "%s/%s" % (get.installDIR(), LIB)) for lib in ["ncurses", "ncurses++", "form", "panel", "menu"]: inarytools.dosym("%sw.pc" % lib, "%s/pkgconfig/%s.pc" % (LIB, lib)) shelltools.echo("libcursesw.so", "INPUT(-lncursesw)") #inarytools.dolib("libcursesw.so", destinationDirectory = LIB) #inarytools.dosym("libncurses.so", "%s/libcurses.so" % LIB) #inarytools.dosym("libncursesw.a", "%s/libcursesw.a" % LIB) #inarytools.dosym("libncurses.a", "%s/libcurses.a" % LIB) #for fix inarytools.dosym("libncursesw.so.6.2", "%s/libncursesw.so.5" % LIB) inarytools.dosym("libncurses.so.6.2", "%s/libncurses.so.5" % LIB) inarytools.dosym("libncurses.so.6.2", "%s/libtinfo.so.5" % LIB) inarytools.dosym("libpanelw.so.6.2", "%s/libpanelw.so.5" % LIB) inarytools.dosym("libformw.so.6.2", "%s/libformw.so.5" % LIB) inarytools.dosym("libmenuw.so.6.2", "%s/libmenuw.so.5" % LIB) shelltools.cd("../%s" % NCURSES) for lib in ["ncurses", "form", "panel", "menu"]: inarytools.dolib("lib/lib%s.so.%s" % (lib, get.srcVERSION()), destinationDirectory=LIB) inarytools.dosym("lib%s.so.%s" % (lib, get.srcVERSION()), "%s/lib%s.so.6" % (LIB, lib)) if get.buildTYPE() == "_emul32": inarytools.removeDir("/_emul32") return shelltools.cd(WORKDIR) shelltools.system("grep -B 100 '$Id' README > license.txt") inarytools.dodoc("ANNOUNCE", "NEWS", "README*", "TO-DO", "license.txt")
def setup(): #shelltools.copy("makefiles/configure.in", "configure.in") shelltools.copy("makefiles/Makefile.am", "Makefile.am") shelltools.copy("makefiles/makefile.linux", "Makefile") #shelltools.sym("contrib/gcc/sdl-mngplay/acinclude.m4", "acinclude.m4") shelltools.system("sed -i -e 's/unroll-loops/& -fPIC/' Makefile ") autotools.autoreconf("-fiv") autotools.configure("--with-jpeg \ --with-lcms \ --disable-static \ --disable-dependency-tracking") if get.buildTYPE() == "emul32": options = " --libdir=/usr/lib32 \ --with-jpeg \ --disable-static \ --disable-dependency-tracking" shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS()) autotools.configure(options)
def setup(): shelltools.copy("../unifont*.bdf", "./unifont.bdf") shelltools.export("GRUB_CONTRIB", "%s/grub-2.04/grub-extras" % (get.workDIR())) inarytools.cflags.remove("-fstack-protector", "-fasynchronous-unwind-tables", "-fexceptions", "-fPIC") inarytools.cflags.sub("\s?(-O[\ds]|-D_FORTIFY_SOURCE=\d)\s?", " ") shelltools.system("./linguas.sh") shelltools.system("./autogen.sh") autotools.configure("--disable-werror \ --with-grubdir=grub2 \ --program-transform-name='s,grub,grub2,'\ --program-prefix= \ --enable-grub-mkfont \ --enable-grub-mount \ --with-platform=pc \ --target='i386' \ --htmldir='/usr/share/doc/grub2/html' ") shelltools.copytree("../grub-%s" % (get.srcVERSION().replace("_", "~")), "../grub-%s-efi" % get.srcVERSION()) shelltools.cd("../grub-%s-efi" % get.srcVERSION()) shelltools.system("./autogen.sh") autotools.configure("--disable-werror \ --with-grubdir=grub2 \ --program-transform-name='s,grub,grub2,'\ --program-prefix= \ --enable-grub-mkfont \ --enable-grub-mount \ --with-platform=efi \ --target=x86_64 \ --htmldir='/usr/share/doc/grub2/html' ") shelltools.cd("..")
def setup(): shelltools.copy("INSTALL/make.inc.gfortran", "make.inc") if get.ARCH() == "x86_64": inarytools.dosed("make.inc", "-O2", "%s -fPIC -m64 -funroll-all-loops" % get.CFLAGS()) inarytools.dosed("make.inc", "NOOPT =", "NOOPT =-m64 -fPIC ") else: inarytools.dosed("make.inc", "-O2", "%s -fPIC -funroll-all-loops" % get.CFLAGS()) shelltools.makedirs("build") shelltools.cd("build") options = "-DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=OFF" if get.buildTYPE() == "static": options = "-DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=OFF \ -DBUILD_TESTING=OFF" cmaketools.configure(options, sourceDir="..")
def install(): shelltools.cd("unix") if get.buildTYPE() == "emul32": autotools.rawInstall("DESTDIR=%s" % get.installDIR()) return autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # Collect private headers, 3rd party apps like Tile depends on this shelltools.cd("..") inarytools.dodir("/usr/include/tcl-private/generic") inarytools.dodir("/usr/include/tcl-private/unix") shelltools.copy("unix/*.h", "%s/usr/include/tcl-private/unix" % get.installDIR()) shelltools.copy("generic/*.h", "%s/usr/include/tcl-private/generic" % get.installDIR()) # Remove duplicated headers inarytools.remove("/usr/include/tcl-private/generic/tcl.h") inarytools.remove("/usr/include/tcl-private/generic/tclDecls.h") inarytools.remove("/usr/include/tcl-private/generic/tclPlatDecls.h") # Expect package needs these symlinks inarytools.dosym("../unix/tclUnixPort.h", "/usr/include/tcl-private/generic/tclUnixPort.h") inarytools.dosym("../unix/tclUnixThrd.h", "/usr/include/tcl-private/generic/tclUnixThrd.h") # Remove tmp path from tclConfig.sh inarytools.dosed("%s/usr/lib/tclConfig.sh" % get.installDIR(), "%s/unix" % get.curDIR(), "/usr/lib/") inarytools.dosed("%s/usr/lib/tclConfig.sh" % get.installDIR(), "%s" % get.curDIR(), "/usr/include/tcl-private") # Some apps need compat headers inarytools.dodir("/usr/include/tcl-private/compat") shelltools.copy("compat/*.h", "%s/usr/include/tcl-private/compat" % get.installDIR()) inarytools.dosym("tclsh8.6", "/usr/bin/tclsh") inarytools.dodoc("ChangeLog", "changes", "license.terms", "README.md")
def setup(): # Build against portaudio v19 shelltools.copy("src/portaudio19.h", "src/portaudio.h") # Remove binary voice dictionaries, we'll build them shelltools.system("rm -rf espeak-data/*_dict")
def setup(): shelltools.copy("tools/gnome-doc-utils.m4", "m4/") autotools.configure()