Ejemplo n.º 1
0
def install():

    # Installing texmf, texmf-dist, tlpkg
    for texmf in ["texmf", "texmf-dist"]:
        shelltools.copytree("%s/%s" % (CoreSource, texmf), "%s/usr/share/%s" % (get.installDIR(), texmf))
    shelltools.copytree("tlpkg", "%s/usr/share/tlpkg" % get.installDIR())

    shelltools.cd(CoreSource)

    autotools.install("bindir=%s/usr/bin texmf=%s/usr/share/texmf/ run_texlinks=true run_mktexlsr=true" % (get.installDIR(), get.installDIR()))

    # Install documents
    docs = ["ChangeLog", "README", "BUGS", "NEWS", "README.14m", "PROJECTS"]
    dirs = ["kpathsea", "dviljk", "dvipsk", "makeindexk", "ps2pkm", "web2c"]

    pisitools.dodoc("texk/ChangeLog", "texk/README")
    for d in docs:
        for dir in dirs:
            if shelltools.can_access_file("%s/texk/%s/%s" % (get.curDIR(), dir, d)):
                pisitools.insinto("usr/share/doc/%s/texk/%s" % (get.srcNAME(), dir) , "texk/%s/%s" % (dir, d))

    # Remove these directories
    pisitools.removeDir("/usr/share/texmf/doc")
    pisitools.removeDir("/usr/share/texmf-dist/doc")

    for d in ["web2c", "updmap.d", "fmtutil.d", "texmf.d", "language.dat.d", "language.def.d"]:
        pisitools.dodir("/etc/texmf/%s" % d)

    # Remove those as they will be regenerated by texmf-update
    pisitools.remove("/usr/share/texmf/web2c/fmtutil.cnf")
    pisitools.remove("/usr/share/texmf/web2c/texmf.cnf")

    pisitools.domove("/usr/share/texmf/web2c/updmap.cfg","/etc/texmf/updmap.d/", "00updmap.cfg")
    pisitools.dodir("/etc/texmf/dvips.d")
    pisitools.dodir("/etc/texmf/dvips/config")
    pisitools.domove("/usr/share/texmf/dvips/config/config.ps", "/etc/texmf/dvips.d/", "00%s-config.ps" % get.srcNAME())

    # Create symlinks from format to engines
    texlivemodules.createSymlinksFormat2Engines()

    # Handle config files
    shelltools.cd("%s/usr/share/texmf" % get.installDIR())
    texlivemodules.handleConfigFiles(".", "cfg", "cnf")

    pisitools.dodir("/usr/share/texmf-site")

    # Symlinks for regenerated files by texmf-update
    for sym in ["fmtutil.cnf", "texmf.cnf", "updmap.cfg"]:
        pisitools.dosym("/etc/texmf/web2c/%s" % sym, "/usr/share/texmf/web2c/%s" % sym)
    pisitools.dosym("/etc/texmf/dvips/config/config.ps", "/usr/share/dvips/config/config.ps")
    pisitools.dosym("tex", "/usr/bin/virtex")
    pisitools.dosym("pdftex", "/usr/bin/pdfvirtex")

    pisitools.dodir("/var/lib/texmf")

    # Rename mpost to leave room for mplib
    pisitools.domove("/usr/bin/mpost", "/usr/bin/", "mpost-%s" % get.srcNAME())
    pisitools.dosym("mpost-%s" % get.srcNAME(), "/usr/bin/mpost")
Ejemplo n.º 2
0
def install():
    pisitools.insinto("/var/lib/texmf", "texmf-var/*")

    for i in ["xmt", "cfg", "xml", "tex"]:
        pisitools.insinto("/usr/share/texmf-site/tex/xmltex/base/", "*.%s" %i)

    pisitools.insinto("/usr/share/texmaf-site/tex/xmltex/config/", "*.ini")

    texlivemodules.createSymlinksFormat2Engines()

    pisitools.insinto("/etc/texmf/fmtutil.d/", "texmf/fmtutil/format.xmltex.cnf")

    pisitools.dodoc("readme.txt")
    pisitools.dohtml("*.html")
Ejemplo n.º 3
0
def install():
    for runfiles in ["dsssl.def", "jadetex.ltx", "jadetex.cfg", "jadetex.ini"]:
        pisitools.insinto("/usr/share/texmf/tex/jadetex", runfiles)

    for styfiles in shelltools.ls(get.curDIR()):
        if styfiles.endswith("sty"):
            pisitools.insinto("/usr/share/texmf/tex/jadetex", styfiles)

    pisitools.insinto("/var/lib/texmf", "texmf-var/*")

    # The fotmat.jadetex.cnf is copied to texmf/fmtutil/ (see pspec.xml) , thus we can use the function below
    texlivemodules.createSymlinksFormat2Engines()

    pisitools.dodoc("ChangeLog*")
    pisitools.doman("*.1")
    pisitools.dohtml("index.html")
Ejemplo n.º 4
0
def install():
    for runfiles in ["dsssl.def" ,"jadetex.ltx" , "jadetex.cfg", "jadetex.ini"]:
            pisitools.insinto("/usr/share/texmf/tex/jadetex" , runfiles)

    for styfiles in shelltools.ls(get.curDIR()):
        if styfiles.endswith("sty"):
            pisitools.insinto("/usr/share/texmf/tex/jadetex" , styfiles)

    pisitools.insinto("/var/lib/texmf" , "texmf-var/*")

    # The fotmat.jadetex.cnf is copied to texmf/fmtutil/ (see pspec.xml) , thus we can use the function below
    texlivemodules.createSymlinksFormat2Engines()

    pisitools.dodoc("ChangeLog*")
    pisitools.doman("*.1")
    pisitools.dohtml("index.html")
Ejemplo n.º 5
0
def install():
    pisitools.insinto("/var/lib/texmf", "texmf-var/*")

    for i in ["xmt", "cfg", "xml", "tex"]:
        pisitools.insinto("/usr/share/texmf-site/tex/xmltex/base/", "*.%s" %i)

    pisitools.insinto("/usr/share/texmf-site/tex/xmltex/config/", "*.ini")

    texlivemodules.createSymlinksFormat2Engines()

    pisitools.insinto("/etc/texmf/fmtutil.d/", "texmf/fmtutil/format.xmltex.cnf")

    pisitools.dodoc("readme.txt")
    pisitools.dohtml("*.html")

    pisitools.remove("/var/lib/texmf/web2c/pdftex/xmltex.log")
    pisitools.remove("/var/lib/texmf/web2c/pdftex/pdfxmltex.log")
    pisitools.remove("/var/lib/texmf/web2c/pdftex/xmltex.fmt")
    pisitools.remove("/var/lib/texmf/web2c/pdftex/pdfxmltex.fmt")
Ejemplo n.º 6
0
def install():

    # Installing texmf, texmf-dist, tlpkg
    for texmf in ["texmf", "texmf-dist"]:
        shelltools.copytree("%s/%s" % (CoreSource, texmf),
                            "%s/usr/share/%s" % (get.installDIR(), texmf))
    shelltools.copytree("tlpkg", "%s/usr/share/tlpkg" % get.installDIR())

    shelltools.cd(CoreSource)

    autotools.install(
        "bindir=%s/usr/bin texmf=%s/usr/share/texmf/ run_texlinks=true run_mktexlsr=true"
        % (get.installDIR(), get.installDIR()))

    # Install documents
    docs = ["ChangeLog", "README", "BUGS", "NEWS", "README.14m", "PROJECTS"]
    dirs = ["kpathsea", "dviljk", "dvipsk", "makeindexk", "ps2pkm", "web2c"]

    pisitools.dodoc("texk/ChangeLog", "texk/README")
    for d in docs:
        for dir in dirs:
            if shelltools.can_access_file("%s/texk/%s/%s" %
                                          (get.curDIR(), dir, d)):
                pisitools.insinto(
                    "usr/share/doc/%s/texk/%s" % (get.srcNAME(), dir),
                    "texk/%s/%s" % (dir, d))

    # Remove these directories
    pisitools.removeDir("/usr/share/texmf/doc")
    pisitools.removeDir("/usr/share/texmf-dist/doc")

    for d in [
            "web2c", "updmap.d", "fmtutil.d", "texmf.d", "language.dat.d",
            "language.def.d"
    ]:
        pisitools.dodir("/etc/texmf/%s" % d)

    # Remove those as they will be regenerated by texmf-update
    pisitools.remove("/usr/share/texmf/web2c/fmtutil.cnf")
    pisitools.remove("/usr/share/texmf/web2c/texmf.cnf")

    pisitools.domove("/usr/share/texmf/web2c/updmap.cfg",
                     "/etc/texmf/updmap.d/", "00updmap.cfg")
    pisitools.dodir("/etc/texmf/dvips.d")
    pisitools.dodir("/etc/texmf/dvips/config")
    pisitools.domove("/usr/share/texmf/dvips/config/config.ps",
                     "/etc/texmf/dvips.d/", "00%s-config.ps" % get.srcNAME())

    # Create symlinks from format to engines
    texlivemodules.createSymlinksFormat2Engines()

    # Handle config files
    shelltools.cd("%s/usr/share/texmf" % get.installDIR())
    texlivemodules.handleConfigFiles(".", "cfg", "cnf")

    pisitools.dodir("/usr/share/texmf-site")

    # Symlinks for regenerated files by texmf-update
    for sym in ["fmtutil.cnf", "texmf.cnf", "updmap.cfg"]:
        pisitools.dosym("/etc/texmf/web2c/%s" % sym,
                        "/usr/share/texmf/web2c/%s" % sym)
    pisitools.dosym("/etc/texmf/dvips/config/config.ps",
                    "/usr/share/dvips/config/config.ps")
    pisitools.dosym("tex", "/usr/bin/virtex")
    pisitools.dosym("pdftex", "/usr/bin/pdfvirtex")

    pisitools.dodir("/var/lib/texmf")

    # Rename mpost to leave room for mplib
    pisitools.domove("/usr/bin/mpost", "/usr/bin/", "mpost-%s" % get.srcNAME())
    pisitools.dosym("mpost-%s" % get.srcNAME(), "/usr/bin/mpost")