def install(): shelltools.cd("build") autotools.rawInstall("install_root=%s" % get.installDIR()) inarytools.dodir("/etc/ld.so.conf.d") if get.buildTYPE() != "emul32": #Install locales once. autotools.rawInstall("install_root=%s localedata/install-locales" % get.installDIR()) if get.buildTYPE() == "emul32": inarytools.dosym("/lib32/ld-linux.so.2", "/lib/ld-linux.so.2") shelltools.echo( "%s/etc/ld.so.conf.d/60-glibc-32bit.conf" % get.installDIR(), ldconf32bit) inarytools.removeDir("/tmp32") # We'll take care of the cache ourselves if shelltools.isFile("%s/etc/ld.so.cache" % get.installDIR()): inarytools.remove("/etc/ld.so.cache") # Prevent overwriting of the /etc/localtime symlink if shelltools.isFile("%s/etc/localtime" % get.installDIR()): inarytools.remove("/etc/localtime") # Nscd needs this to work inarytools.dodir("/var/run/nscd") inarytools.dodir("/var/db/nscd") # remove zoneinfo files since they are coming from timezone packages # we disable timezone build with a patch, keeping these lines for easier maintenance if shelltools.isDirectory("%s/usr/share/zoneinfo" % get.installDIR()): inarytools.removeDir("/usr/share/zoneinfo") #while bootstrapping whole system zic should not be removed. timezone package does not build without it. # 2013 #for i in ["zdump","zic"]: #if shelltools.isFile("%s/usr/sbin/%s" % (get.installDIR(), i)): #inarytools.remove("/usr/sbin/%s" % i) shelltools.cd("..") #remove unused locale for l in ["ku", "hy"]: shelltools.system("rm -rf {}/usr/lib/locale/{}_*".format( get.installDIR(), l)) shelltools.system("rm -rf {}/usr/share/locale/{}*".format( get.installDIR(), l)) shelltools.system("rm -rf {}/usr/share/i18n/locales/{}_*".format( get.installDIR(), l)) #clean if shelltools.isFile("%s/usr/lib/locale/locale-archive" % get.installDIR()): inarytools.remove("/usr/lib/locale/locale-archive") inarytools.dodoc("NEWS", "README*", "LICENSES")
def install(): autotools.install() #verMINOR = getMinorVersion() inarytools.dosym("libx264.so.%s" % (verMAJOR), "/usr/lib/libx264.so.%s" % (verMINOR)) # No static libs if shelltools.isFile("%s/%s" % (get.installDIR(), staticlibfile)): inarytools.remove(staticlibfile)
def install(): cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) inarytools.dodoc("NEWS") shelltools.cd("Source") for path in paths: for doc in docs: if shelltools.isFile("%s/%s" % (path, doc)): inarytools.insinto("%s/%s/%s" % (get.docDIR(), get.srcNAME(), path), "%s/%s" % (path, doc))
def install(): mesontools.ninja_install() inarytools.dodoc("NEWS") shelltools.cd("Source") for path in paths: for doc in docs: if shelltools.isFile("%s/%s" % (path, doc)): inarytools.insinto( "%s/%s/%s" % (get.docDIR(), get.srcNAME(), path), "%s/%s" % (path, doc))
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 testIsFile(self): from inary.actionsapi.shelltools import isFile assert isFile('/bin/bash') assert not isFile('/tests/database')