def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) inarytools.doman("doc/man/man3/*.3") # inarytools.dohtml("doc/html/*") inarytools.dodoc("README.md") for i in shelltools.ls("doc/*"): if shelltools.isFile(i): inarytools.dodoc(i) inarytools.dodir(exampledir) for i in shelltools.ls("sample/*"): if i.endswith(".h") or i.endswith(".c"): inarytools.insinto(exampledir, i)
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) for file in shelltools.ls("%s/bin" % get.installDIR()): inarytools.dosym("/bin/%s" % file, "/usr/bin/%s" % file) inarytools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")
def install(): autotools.rawInstall("-j1 DESTDIR=%s%s" % (get.installDIR(), suffix)) #autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # emul32 stop here if get.buildTYPE() == "emul32": shelltools.move("%s%s/lib32" % (get.installDIR(), suffix), "%s/lib32" % (get.installDIR())) shelltools.move("%s%s/usr/lib32" % (get.installDIR(), suffix), "%s/usr/lib32" % (get.installDIR())) for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()): inarytools.dosed( "%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "emul32", "usr") return #add link inarytools.dosym("/sbin/udevadm", "/bin/udevadm") # Create vol_id and scsi_id symlinks in /sbin probably needed by multipath-tools inarytools.dosym("/lib/udev/scsi_id", "/sbin/scsi_id") # Create /sbin/systemd-udevd -> /sbin/udevd sysmlink, we need it for MUDUR, do not touch this sysmlink. # inarytools.dosym("/lib/systemd/systemd-udevd", "/sbin/systemd-udevd") # Create /etc/udev/rules.d for backward compatibility inarytools.dodir("/etc/udev/rules.d") inarytools.dodir("/run/udev") # Add man files inarytools.doman("man/*.5", "man/*.7", "man/*.8") inarytools.dodoc("README*", "NOTES")
def install(): autotools.rawInstall('-j1 DESTDIR="%s"' % get.installDIR()) if get.buildTYPE() == "_emul32": inarytools.domove("/_emul32/bin/icu-config", "/usr/bin", "icu-config-32") inarytools.removeDir("/_emul32") for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()): inarytools.dosed( "%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "_emul32", "usr") for i in [ "libicudata.so", "libicui18n.so", "libicuio.so", "libicutest.so", "libicutu.so", "libicuuc.so" ]: inarytools.remove("/usr/lib32/" + i) inarytools.removeDir("/usr/lib32/icu") inarytools.removeDir("/usr/lib32/pkgconfig") return inarytools.dohtml("../*.html") inarytools.removeDir("/usr/bin") inarytools.removeDir("/usr/sbin") inarytools.removeDir("/usr/share") inarytools.removeDir("/usr/include") inarytools.removeDir("/usr/lib/icu") inarytools.removeDir("/usr/lib/pkgconfig") for i in [ "libicudata.so", "libicui18n.so", "libicuio.so", "libicutest.so", "libicutu.so", "libicuuc.so" ]: inarytools.remove("/usr/lib/" + i)
def install(): qt.install("INSTALL_ROOT=%s" % get.installDIR()) qt.install("INSTALL_ROOT=%s install_docs" % get.installDIR()) #I hope qtchooser will manage this issue for bin in shelltools.ls("%s/usr/lib/qt5/bin" % get.installDIR()): inarytools.dosym("/usr/lib/qt5/bin/%s" % bin, "/usr/bin/%s-qt5" % bin)
def install(): pythonmodules.install() inarytools.dodoc("COPYING.txt", "PKG-INFO", "README.txt") #Remove .py extensions from scripts in /usr/bin for f in shelltools.ls("%s/usr/bin" % get.installDIR()): inarytools.domove("/usr/bin/%s" % f, "/usr/bin", f.replace(".py", ""))
def install(): autotools.rawInstall('DESTDIR=%s INSTALL="install -p"' % get.installDIR()) for i in shelltools.ls("examples"): if i.endswith(".png") or i.endswith(".c"): inarytools.insinto("/%s/%s/examples/" % (get.docDIR(), get.srcNAME()), "examples/%s" % i) inarytools.dodoc("AUTHORS", "COPYING", "README", "NEWS")
def install(): for package in shelltools.ls("."): if package.startswith(SkipList): continue shelltools.cd(package) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd("../")
def build(): for package in shelltools.ls("."): if package.startswith(Skip): continue shelltools.cd(package) autotools.make() shelltools.cd("../")
def install(): qt.install("INSTALL_ROOT=%s install_docs" % get.installDIR()) #I hope qtchooser will manage this issue for bin in shelltools.ls("%s/usr/lib/qt5/bin" % get.installDIR()): inarytools.dosym("/usr/lib/qt5/bin/%s" % bin, "/usr/bin/%s-qt5" % bin) inarytools.insinto("/usr/share/licenses/qt5-svg/", "LICENSE.*")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) for manp in shelltools.ls("man3"): inarytools.doman("man3/%s" % manp) inarytools.dohtml("docs/*.htm*") inarytools.dodoc("ChangeLog", "COPYING.LIB", "README", "TODO", "docs/COPYING*", "docs/README.SDL")
def install(): autotools.install() for lang in shelltools.ls("debian/po/*.po"): inarytools.domo(lang, shelltools.baseName(lang).replace(".po", ""), "libpaper.mo") inarytools.dodoc("README", "ChangeLog")
def install(): qt.install("INSTALL_ROOT=%s" % get.installDIR()) #I hope qtchooser will manage this issue for bin in shelltools.ls("%s/usr/lib/qt5/bin" % get.installDIR()): inarytools.dosym("/usr/lib/qt5/bin/%s" % bin, "/usr/bin/%s-qt5" % bin) # kde5 need qdbus and qtpaths in /usr/bin inarytools.dosym("/usr/bin/qdbus-qt5", "/usr/bin/qdbus") inarytools.dosym("/usr/bin/qtpaths-qt5", "/usr/bin/qtpaths")
def install(): pythonmodules.install() shelltools.cd("../build_python/%s" % WorkDir) pythonmodules.install() shelltools.cd("../../build_python3/%s" % WorkDir) pythonmodules.install(pyVer="3") #Remove .py extensions from scripts in /usr/bin for f in shelltools.ls("%s/usr/bin" % get.installDIR()): inarytools.domove("/usr/bin/%s" % f, "/usr/bin", f.replace(".py", ""))
def install(): inarytools.insinto("/usr/share/fonts/dejavu", "build/*.ttf") # Create symlinks for fontconfig files for conf in shelltools.ls("fontconfig"): inarytools.insinto("/etc/fonts/conf.avail", "fontconfig/%s" % conf) inarytools.dosym("/etc/fonts/conf.avail/%s" % conf, "/etc/fonts/conf.d/%s" % conf) inarytools.dosym("/usr/share/fonts/dejavu", "/etc/X11/fontpath.d/dejavu") inarytools.dodoc("AUTHORS", "LICENSE", "NEWS")
def install(): autotools.rawInstall('-j1 DESTDIR="%s"' % get.installDIR()) if get.buildTYPE() == "_emul32": inarytools.domove("/_emul32/bin/icu-config", "/usr/bin", "icu-config-32") inarytools.removeDir("/_emul32") for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()): inarytools.dosed( "%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "_emul32", "usr") return inarytools.dohtml("../*.html")
def install(): #inarytools.insinto("/usr/lib/qt5/qml", "qml/QtQml") #inarytools.insinto("/usr/lib/qt5/qml", "qml/Qt") #inarytools.insinto("/usr/lib/qt5/qml", "qml/QtQuick") #inarytools.insinto("/usr/lib/qt5/qml", "qml/QtQuick.2") #inarytools.insinto("/usr/lib/qt5/qml", "qml/QtTest") qt.install("INSTALL_ROOT=%s install_docs" % get.installDIR()) #I hope qtchooser will manage this issue for bin in shelltools.ls("%s/usr/lib/qt5/bin" % get.installDIR()): inarytools.dosym("/usr/lib/qt5/bin/%s" % bin, "/usr/bin/%s-qt5" % bin) inarytools.insinto("/usr/share/licenses/qt5-declarative/", "LICENSE*")
def build(): for package in shelltools.ls("."): if package.startswith(SkipList): continue shelltools.cd(package) if package.startswith("xfwp"): inarytools.dosed("io.c", "^(#include <unistd.h>)", r"#define __USE_XOPEN\n\1") print("\nBuilding %s..." % package) print("-" * (len(package) + 15)) autotools.make() shelltools.cd("../")
def setup(): for package in shelltools.ls("."): if package.startswith(Skip): continue shelltools.cd(package) if package.startswith("xorg-cf-files"): inarytools.dosed("host.def", "_SULIN_CC_", get.CC()) inarytools.dosed("host.def", "_SULIN_CXX_", get.CXX()) inarytools.dosed("host.def", "_SULIN_AS_", get.AS()) inarytools.dosed("host.def", "_SULIN_LD_", get.LD()) inarytools.dosed("host.def", "_SULIN_CFLAGS_", get.CFLAGS()) inarytools.dosed("host.def", "_SULIN_LDFLAGS_", get.LDFLAGS()) autotools.configure("--with-config-dir=/usr/share/X11/config") shelltools.cd("../")
def install(): if get.buildTYPE() == "emul32": qt.install("INSTALL_ROOT=%s32" % get.installDIR()) shelltools.move("%s32/usr/lib32" % get.installDIR(), "%s/usr" % get.installDIR()) return inarytools.dodir(qt.libdir) qt.install("INSTALL_ROOT=%s" % get.installDIR()) #I hope qtchooser will manage this issue for bin in shelltools.ls("%s/usr/lib/qt5/bin" % get.installDIR()): inarytools.dosym("/usr/lib/qt5/bin/%s" % bin, "/usr/bin/%s-qt5" % bin) mkspecPath = "%s/mkspecs" % qt.archdatadir inarytools.dodoc("LICENSE.*")
def install(): for package in shelltools.ls("*-*"): shelltools.cd(package) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd("../") fontpaths = { "misc": "misc:unscaled:pri=10", "75dpi": "75dpi:unscaled", "100dpi": "100dpi:unscaled", "cyrillic": "cyrillic", } for fontdir, sym in fontpaths.items(): fontpath = "/usr/share/fonts/%s" % fontdir inarytools.dosym(fontpath, "/etc/X11/fontpath.d/%s" % sym) inarytools.remove("/usr/share/fonts/*/fonts.dir")
def install(): shelltools.system( "sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile") if get.buildTYPE() == "emul32": autotools.make(" install_sw DESTDIR=%s MANDIR=/usr/share/man" % get.installDIR()) else: autotools.rawInstall("DESTDIR=%s MANDIR=/usr/share/man" % get.installDIR()) if get.buildTYPE() == "emul32": #from distutils.dir_util import copy_tree shelltools.copytree("%s/emul32/lib32/" % get.installDIR(), "%s/usr/lib32" % get.installDIR()) path = "%s/usr/lib32/pkgconfig" % get.installDIR() inarytools.dodir("/usr/lib32/openssl") inarytools.domove("/usr/lib32/engines-1.1", "/usr/lib32/openssl") for f in shelltools.ls(path): inarytools.dosed("%s/%s" % (path, f), "^(prefix=\/)_emul32", r"\1usr") inarytools.removeDir("/emul32") return # Rename conflicting manpages inarytools.rename("/usr/share/man/man1/passwd.1", "ssl-passwd.1") inarytools.remove("/usr/share/man/man1/openssl-passwd.1") inarytools.dosym("ssl-passwd.1", "/usr/share/man/man1/openssl-passwd.1") inarytools.rename("/usr/share/man/man1/rand.1", "ssl-rand.1") inarytools.remove("/usr/share/man/man1/openssl-rand.1") inarytools.dosym("ssl-passwd.1", "/usr/share/man/man1/openssl-rand.1") # Move engines to /usr/lib/openssl/engines inarytools.dodir("/usr/lib/openssl") # Certificate stuff inarytools.dobin("tools/c_rehash") # Create needed dirs for cadir in ["misc", "private"]: inarytools.dodir("/etc/ssl/%s" % cadir) inarytools.dohtml("doc/*") inarytools.dodoc("CHANGES*", "FAQ", "LICENSE", "NEWS", "README", "doc/*.txt")
def install(): shelltools.cd("../build") autotools.rawInstall("DESTDIR=%s" % get.installDIR()) #autotools.install() for header in ["limits.h", "syslimits.h"]: inarytools.insinto( "/usr/lib/gcc/%s/%s/include" % (get.HOST(), verMajor), "gcc/include-fixed/%s" % header) # Not needed inarytools.removeDir("/usr/lib/gcc/*/*/include-fixed") inarytools.removeDir("/usr/lib/gcc/*/*/install-tools") # This one comes with binutils inarytools.remove("/usr/lib*/libiberty.a") # cc symlink inarytools.dosym("/usr/bin/gcc", "/usr/bin/cc") # /lib/cpp symlink for legacy X11 stuff inarytools.dosym("/usr/bin/cpp", "/lib/cpp") inarytools.dosym("/usr/bin/x86_64-pc-linux-gnu-gcc-ar", "/usr/bin/x86_64-pc-linux-gnu-ar") # Remove our options section from crt stuff removeSulinLinuxSection("%s/usr/lib/" % get.installDIR()) if get.ARCH() == "x86_64": removeSulinLinuxSection("%s/usr/lib32/" % get.installDIR()) # autoload gdb pretty printers gdbpy_dir = "/usr/share/gdb/auto-load/usr/lib/" inarytools.dodir(gdbpy_dir) gdbpy_files = shelltools.ls("%s/usr/lib/libstdc++*gdb.py*" % get.installDIR()) for i in gdbpy_files: inarytools.domove("/usr/lib/%s" % shelltools.baseName(i), gdbpy_dir) if arch == "x86-64": inarytools.remove("/usr/lib32/libstdc++*gdb.py*") inarytools.rename("/usr/bin/go", "go1.12.2") inarytools.rename("/usr/bin/gofmt", "gofmt1.12.2")
def install(): autotools.rawInstall("-j1 DESTDIR=%s%s" % (get.installDIR(), suffix)) # emul32 stop here if get.buildTYPE() == "emul32": shelltools.move("%s%s/usr/lib32" % (get.installDIR(), suffix), "%s/usr/lib32" % (get.installDIR())) for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()): inarytools.dosed( "%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "emul32", "usr") else: # Create /etc/udev/rules.d for backward compatibility inarytools.dodir("/etc/udev/rules.d") inarytools.dodir("/run/udev") # Add man files inarytools.doman("man/*.5", "man/*.7", "man/*.8") inarytools.dodoc("README*", "NOTES")
def setup(): options = "--disable-static \ --enable-flac \ --enable-alsa \ --enable-largefile \ " inarytools.dosed("examples/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS") inarytools.dosed("tests/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS") shelltools.unlink("M4/libtool.m4") for i in shelltools.ls("M4/lt*.m4"): shelltools.unlink(i) autotools.autoreconf("-fi -I M4") autotools.configure(options) inarytools.dosed("doc/Makefile", "^htmldocdir.*", "htmldocdir = /usr/share/doc/%s/html" % get.srcNAME())
def setup(): # Speed up xkbcomp shelltools.export("CFLAGS", "%s -DHAVE_STRCASECMP" % get.CFLAGS()) for package in shelltools.ls("."): if package.startswith(SkipList): continue print("\nConfiguring %s..." % package) print("-" * (len(package) + 15)) shelltools.cd(package) if package.startswith("luit"): inarytools.dosed("configure.ac", "(-D_XOPEN_SOURCE)=500", "\\1=600") autotools.autoreconf("-vif") autotools.autoreconf("-vif") autotools.configure() shelltools.cd("../")
def fixpc(): """ fix .pc files in installDIR()/usr/lib32/pkgconfig""" path = "{}/usr/lib32/pkgconfig".format(get.installDIR()) if isDirectory(path): for f in ls("{}/*.pc".format(path)): dosed(f, get.emul32prefixDIR(), get.defaultprefixDIR())
def install(): jvmdir = "/usr/lib/jvm/java-7-openjdk" inarytools.dodoc("AUTHORS", "ChangeLog", "COPYING", "HACKING", "README", "NEWS") #cd main output directory shelltools.cd("openjdk.build") #---- install openjdk7-doc inarytools.insinto("/usr/share/doc/openjdk7-doc", "docs/*") #install openjdk7-src inarytools.insinto(jvmdir, "images/j2sdk-image/src.zip") #---- instal jdk7-openjdk for d in ["include", "lib", "bin"]: inarytools.insinto(jvmdir, "images/j2sdk-image/%s" % d) #install openjdk7-src # inarytools.insinto(jvmdir, "images/j2re-image/src.zip") for f in shelltools.ls("%s/usr/lib/jvm/java-7-openjdk/bin/" % get.installDIR()): if not f in [ "java", "java-rmi.cgi", "keytool", "orbd", "pack200", "policytool", "rmid", "rmiregistry", "servertool", "tnameserv", "unpack200" ]: inarytools.dosym("/usr/lib/jvm/java-7-openjdk/bin/%s" % f, "/usr/bin/%s" % f) #install man pages inarytools.doman("images/j2sdk-image/man/man1/*") inarytools.insinto("/usr/share/man/ja/man1", "images/j2sdk-image/man/ja_JP.UTF-8/man1/*.1") inarytools.insinto("/usr/share/applications", "../jconsole.desktop") shelltools.system("chmod go+r %s%s/lib/sa-jdi.jar" % (get.installDIR(), jvmdir)) #---- instal jre7-openjdk inarytools.insinto("%s/jre/bin" % jvmdir, "images/j2sdk-image/jre/bin/*") #inarytools.insinto("%s/jre/lib/amd64" % jvmdir , "j2sdk-image/jre/lib/amd64/xawt") for binfile in shelltools.ls("images/j2sdk-image/jre/bin"): try: inarytools.dosym("%s/jre/bin/%s" % (jvmdir, binfile), "/usr/bin/%s" % binfile) except: pass inarytools.insinto("/usr/share/applications", "../policytool.desktop") for size in [16, 24, 32, 48]: fullsize = "%dx%d" % ((size, ) * 2) inarytools.insinto( "/usr/share/icons/hicolor/%s/apps/" % fullsize, "../openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon%d.png" % size, "java.png") #---- install jre7-openjdk-headless inarytools.insinto("%s/jre/" % jvmdir, "images/j2sdk-image/jre/lib") inarytools.insinto("%s/jre/bin" % jvmdir, "images/j2sdk-image/jre/bin/*") # inarytools.rename("%s/jre/lib/fontconfig.Ubuntu.properties.src" % jvmdir , "fontconfig.properties") # inarytools.rename("%s/jre/lib/fontconfig.Ubuntu.bfc" % jvmdir , "fontconfig.bfc") #inarytools.remove("%s/jre/lib/fontconfig.*.bfc" % jvmdir) #inarytools.remove("%s/jre/lib/fontconfig.*.properties.src" % jvmdir) inarytools.domove("%s/jre/lib/*.properties*" % jvmdir, "/etc/java-7-openjdk/") for propfile in shelltools.ls("%s/etc/java-7-openjdk/" % get.installDIR()): inarytools.dosym("/etc/java-7-openjdk/%s" % propfile, "%s/jre/lib/%s" % (jvmdir, propfile)) inarytools.domove("%s/jre/lib/images/cursors/cursors.properties" % jvmdir, "/etc/java-7-openjdk/cursors/") inarytools.dosym("/etc/java-7-openjdk/cursors/cursors.properties", "%s/jre/lib/images/cursors/cursors.properties" % jvmdir) inarytools.rename( "%s/jre/lib/management/jmxremote.password.template" % jvmdir, "jmxremote.password") inarytools.rename("%s/jre/lib/management/snmp.acl.template" % jvmdir, "snmp.acl") for f in [ "management.properties", "jmxremote.access", "jmxremote.password", "snmp.acl" ]: inarytools.domove("%s/jre/lib/management/%s" % (jvmdir, f), "/etc/java-7-openjdk/management/") inarytools.dosym("/etc/java-7-openjdk/management/%s" % f, "%s/jre/lib/management/%s" % (jvmdir, f)) for f in ["java.policy", "java.security", "nss.cfg"]: inarytools.domove("%s/jre/lib/security/%s" % (jvmdir, f), "/etc/java-7-openjdk/security/") inarytools.dosym("/etc/java-7-openjdk/security/%s" % f, "%s/jre/lib/security/%s" % (jvmdir, f)) #confs=os.listdir("%s/etc/java-7-openjdk/" % get.installDIR()) #for i in confs: #shelltools.system("chmod 0644 %s/etc/java-7-openjdk/%s" % (get.installDIR, i)) #inarytools.domove("%s/jre/lib/fontconfig.bfc" % jvmdir,"/etc/java-7-openjdk/") inarytools.domove("%s/jre/lib/amd64/jvm.cfg" % jvmdir, "/etc/java-7-openjdk/") inarytools.dosym("/etc/java-7-openjdk/jvm.cfg", "%s/jre/lib/amd64/jvm.cfg" % jvmdir) for license in ["LICENSE", "THIRD_PARTY_README", "ASSEMBLY_EXCEPTION"]: inarytools.insinto("/usr/share/doc/jre7-openjdk-headless", "images/j2re-image/%s" % license) inarytools.remove("%s/jre/lib/security/cacerts" % jvmdir) #seems we need to add this symlink into ca-certificates-java package ? inarytools.dosym("/etc/ssl/certs/java/cacerts", "%s/jre/lib/security/cacerts" % jvmdir)
def build(): for package in shelltools.ls("*-*"): shelltools.cd(package) autotools.make() shelltools.cd("../")
def setup(): for package in shelltools.ls("*-*"): shelltools.cd(package) option = "--with-fontrootdir=/usr/share/fonts" autotools.configure(option) shelltools.cd("../")