def install(): autotools.rawInstall("DESTDIR=%s \ udevscriptdir=/lib/udev" % get.installDIR()) HAL_FDI = "usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi" UDEV_RULES = "lib/udev/rules.d/40-libgphoto2.rules" CAM_LIST = "usr/lib/libgphoto2/print-camera-list" CAM_LIBS = "usr/lib/libgphoto2/%s" % get.srcVERSION() # Create hal directory pisitools.dodir(shelltools.dirName(HAL_FDI)) # Export the necessary env variables shelltools.export("CAMLIBS", "%s/%s" % (get.installDIR(), CAM_LIBS)) shelltools.export("LIBDIR", "%s/usr/lib/" % get.installDIR()) shelltools.export("LD_LIBRARY_PATH", "%s/usr/lib/" % get.installDIR()) # Generate HAL FDI file f = open(os.path.join(get.installDIR(), HAL_FDI), "w") f.write(os.popen("%s/%s hal-fdi" % (get.installDIR(), CAM_LIST)).read()) f.close() # Generate UDEV rule which will replace the HAL FDI when HAL is deprecated pisitools.dodir("/lib/udev/rules.d") f = open(os.path.join(get.installDIR(), UDEV_RULES), "w") f.write( os.popen("%s/%s udev-rules version 136" % (get.installDIR(), CAM_LIST)).read()) f.close() pisitools.removeDir("/usr/share/doc/libgphoto2_port") pisitools.dodoc("ChangeLog", "NEWS*", "README", "AUTHORS", "TESTERS", "MAINTAINERS", "HACKING")
def install(): autotools.rawInstall("DESTDIR=%s \ udevscriptdir=/lib/udev" % get.installDIR()) HAL_FDI="usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi" UDEV_RULES="lib/udev/rules.d/40-libgphoto2.rules" CAM_LIST="usr/lib/libgphoto2/print-camera-list" CAM_LIBS="usr/lib/libgphoto2/%s" % get.srcVERSION() # Create hal directory pisitools.dodir(shelltools.dirName(HAL_FDI)) # Export the necessary env variables shelltools.export("CAMLIBS", "%s/%s" % (get.installDIR(), CAM_LIBS)) shelltools.export("LIBDIR", "%s/usr/lib/" % get.installDIR()) shelltools.export("LD_LIBRARY_PATH", "%s/usr/lib/" % get.installDIR()) # Generate HAL FDI file f = open(os.path.join(get.installDIR(), HAL_FDI), "w") f.write(os.popen("%s/%s hal-fdi" % (get.installDIR(), CAM_LIST)).read()) f.close() # Generate UDEV rule which will replace the HAL FDI when HAL is deprecated """ pisitools.dodir("/lib/udev/rules.d") f = open(os.path.join(get.installDIR(), UDEV_RULES), "w") f.write(os.popen("%s/%s udev-rules version 136 mode 0664 group pnp" % (get.installDIR(), CAM_LIST)).read()) f.close() """ pisitools.removeDir("/usr/share/doc/libgphoto2_port") pisitools.dodoc("ChangeLog", "NEWS*", "README", "AUTHORS", "TESTERS", "MAINTAINERS", "HACKING")
def install(): shelltools.cd("build-shared") autotools.make("libdb=libdb-3.2.a libcxx=libcxx_3.2.a prefix=%s/usr libdir=%s/usr/lib install" % (get.installDIR(), get.installDIR())) shelltools.cd("../build-static") # slot libraries pisitools.dolib_a("libdb.a") pisitools.rename("/usr/lib/libdb.a", "libdb-3.2.a") pisitools.dolib_a("libdb_cxx.a") pisitools.rename("/usr/lib/libdb_cxx.a", "libdb_cxx-3.2.a") # create needed symlink pisitools.remove("/usr/lib/libdb.so") pisitools.remove("/usr/lib/libdb_cxx.so") pisitools.dosym("/usr/lib/libdb-3.2.so", "/usr/lib/libdb.so.3") # slot all program names to avoid overwriting for file in shelltools.ls("%s/usr/bin/db_*" % get.installDIR()): sourceFile = file.replace(get.installDIR(), "") destinationFile = shelltools.baseName(file.replace("_", "3.2_")) destinationDirectory = shelltools.dirName(sourceFile) pisitools.domove(sourceFile, destinationDirectory, destinationFile) # remove unneeded docs pisitools.removeDir("/usr/docs") # slot headers pisitools.dodir("/usr/include/db3/") pisitools.domove("/usr/include/*.h", "/usr/include/db3/") shelltools.cd("../") pisitools.dodoc("README", "LICENSE")
def install(): shelltools.cd("build_unix") autotools.install("libdir=\"%s/usr/lib\"" % get.installDIR()) # slot all program names to avoid overwriting for file in shelltools.ls("%s/usr/bin/db_*" % get.installDIR()): sourceFile = file.replace(get.installDIR(), "") destinationFile = shelltools.baseName(file.replace("_", "4.2_")) destinationDirectory = shelltools.dirName(sourceFile) pisitools.domove(sourceFile, destinationDirectory, destinationFile) # install all headers in a slotted location for file in shelltools.ls("%s/usr/include/" % get.installDIR()): pisitools.domove("/usr/include/%s" % file, "/usr/include/db4.2") pisitools.dosym("/usr/include/db4.2/db.h", "/usr/include/db.h") pisitools.dosym("/usr/include/db4.2/db_185.h", "/usr/include/db_185.h") # not everybody wants this wad of documentation as it is primarily API docs pisitools.domove("/usr/docs/", "/usr/share/doc/%s/html/" % get.srcTAG()) pisitools.domove("/usr/bin/berkeley_db_svc", "/usr/sbin/", "berkeley_db42_svc")
def install(): shelltools.cd("build_unix") autotools.install("libdir=\"%s/usr/lib\"" % get.installDIR()) # slot all program names to avoid overwriting for file in shelltools.ls("%s/usr/bin/db_*" % get.installDIR()): sourceFile = file.replace(get.installDIR(), "") destinationFile = shelltools.baseName(file.replace("_", "4.2_")) destinationDirectory = shelltools.dirName(sourceFile) pisitools.domove(sourceFile, destinationDirectory, destinationFile) # install all headers in a slotted location for file in shelltools.ls("%s/usr/include/" % get.installDIR()): pisitools.domove("/usr/include/%s" % file, "/usr/include/db4.2") pisitools.dosym("/usr/include/db4.2/db.h", "/usr/include/db.h") pisitools.dosym("/usr/include/db4.2/db_185.h", "/usr/include/db_185.h") # not everybody wants this wad of documentation as it is primarily API docs pisitools.domove("/usr/docs/", "/usr/share/doc/%s/html/" % get.srcTAG()) pisitools.domove("/usr/bin/berkeley_db_svc", "/usr/sbin/", "berkeley_db42_svc")
def install(): shelltools.cd(buildDir) autotools.rawInstall("prefix=/usr DESTDIR=%s" % get.installDIR()) shelltools.system("pwd") #install biber pisitools.dobin("../../biber-2.14/bin/biber") #pisitools.dodir("/usr/share/tlpkg/TeXLive") #shelltools.move("%s/source/utils/biber/TeXLive/*.pm" % get.workDIR(), "%s/usr/share/tlpkg/TeXLive" % get.installDIR()) # remove aleph from fmtutil.cnf pisitools.dosed( "%s/usr/share/texmf-dist/web2c/fmtutil.cnf" % get.installDIR(), "^.*aleph.*$") pisitools.insinto("/etc/texmf/texconfig", "%s/usr/share/texmf-dist/texconfig/tcfmgr.map" % get.installDIR(), sym=True) # fix symlinks, some are incorrect # makefile patching is another way, but there ar/dvipdfmx.cfge lot of scripts # pathing each makefile makes it much harder, for now this is a "simpler" solution for binary in shelltools.ls(get.installDIR() + "/usr/bin"): real_path = shelltools.realPath(get.installDIR() + "/usr/bin/" + binary) if "texmf" in real_path and not os.path.exists( real_path): # modify only if it is broken base_path = real_path.replace(get.installDIR() + "/usr", "") new_path = "/usr/share" + base_path shelltools.unlink(get.installDIR() + "/usr/bin/" + binary) pisitools.dosym(new_path, "/usr/bin/" + binary) bibtexextra_scripts = [ "bbl2bib", "bib2gls", "bibdoiadd", "bibexport", "bibmradd", "biburl2doi", "bibzbladd", "convertgls2bib", "listbib", "ltx2crossrefxml", "multibibliography", "urlbst" ] core_scripts = [ "a2ping", "a5toa4", "adhocfilelist", "afm2afm", "allcm", "allec", "allneeded", "arara", "arlatex", "autoinst", "bundledoc", "checkcites", "checklistings", "chklref", "chkweb", "cjk-gs-integrate", "cluttex", "cllualatex", "clxelatex", "context", "contextjit", "ctanbib", "ctanify", "ctanupload", "ctan-o-mat", "de-macro", "depythontex", "deweb", "dosepsbin", "dtxgen", "dvi2fax", "dviasm", "dviinfox", "dvired", "e2pall", "epstopdf", "findhyph", "fmtutil", "fmtutil-sys", "fmtutil-user", "fontinst", "fragmaster", "ht", "htcontext", "htlatex", "htmex", "httex", "httexi", "htxelatex", "htxetex", "installfont-tl", "jfmutil", "ketcindy", "kpsepath", "kpsetool", "kpsewhere", "kpsexpand", "latex-git-log", "latex-papersize", "latex2man", "latex2nemeth", "latexdef", "latexdiff", "latexdiff-vc", "latexfileversion", "latexindent", "latexmk", "latexpand", "latexrevise", "listings-ext.sh", "ltxfileinfo", "ltximg", "luaotfload-tool", "luatools", "lwarpmk", "make4ht", "match_parens", "mf2pt1", "mk4ht", "mkjobtexmf", "mkt1font", "mktexfmt", "mktexlsr", "mktexmf", "mktexpk", "mktextfm", "mptopdf", "mtxrun", "mtxrunjit", "ot2kpx", "pamphletangler", "pdfatfi", "pdfbook2", "pdfcrop", "pdfjam", "pdflatexpicscale", "pdftex-quiet", "pdfxup", "pfarrei", "pkfix", "pkfix-helper", "ps2eps", "ps2frag", "pslatex", "purifyeps", "pythontex", "repstopdf", "rpdfcrop", "rungs", "simpdftex", "srcredact", "sty2dtx", "tex4ebook", "texconfig", "texconfig-dialog", "texconfig-sys", "texcount", "texdef", "texdiff", "texdirflatten", "texdoc", "texdoctk", "texexec", "texfot", "texhash", "texindy", "texlinks", "texliveonfly", "texloganalyser", "texmfstart", "texosquery", "texosquery-jre5", "texosquery-jre8", "texplate", "thumbpdf", "tlcockpit", "tlshell", "typeoutfileinfo", "updmap", "updmap-sys", "updmap-user", "vpl2ovp", "vpl2vpl", "xhlatex", "xindex", "xindy" ] games_scripts = ["rubikrotation"] humanities_scripts = ["diadia"] langcyrillic_scripts = ["rubibtex", "rumakeindex"] langkorean_scripts = ["jamo-normalize komkindex ttf2kotexfont"] langcjk_scripts = [ "convbkmk", "ptex2pdf", "kanji-fontmap-creator", "kanji-config-updmap", "kanji-config-updmap-sys", "kanji-config-updmap-user" ] langextra_scripts = ["ebong"] langgreek_scripts = ["mkgrkindex"] latexextra_scripts = [ "authorindex", "exceltex", "l3build", "makedtx", "makeglossaries", "makeglossaries-lite", "pdfannotextractor", "perltex", "ps4pdf", "splitindex", "svn-multi", "vpe", "webquiz", "wordcount", "yplan" ] music_scripts = [ "lily-glyph-commands", "lily-image-commands", "lily-rebuild-pdfs", "m-tx", "musixtex", "musixflx", "pmxchords" ] pictures_scripts = [ "cachepic", "epspdf", "epspdftk", "fig4latex", "getmapdl", "mathspic", "mathspic", "mkpic", "pn2pdf" ] pstricks_scripts = ["pedigree", "pst2pdf"] science_scripts = ["pygmentex", "ulqda"] # remove unneeded files and symlinks dirs = [] for g in [bibtexextra_scripts, core_scripts, games_scripts, humanities_scripts, \ langcjk_scripts, langcyrillic_scripts, langextra_scripts, \ langgreek_scripts, latexextra_scripts, music_scripts, \ pictures_scripts, pstricks_scripts, science_scripts, \ ["tlmgr"]]: for s in g: if shelltools.isLink("%s/usr/bin/%s" % (get.installDIR(), s)): realpath = shelltools.realPath("%s/usr/bin/%s" % (get.installDIR(), s)) dirname = shelltools.dirName(realpath) if not dirname in dirs: dirs.append(dirname) if not dirname == "%s/usr/bin" % get.installDIR(): if shelltools.isFile(realpath): shelltools.unlink(realpath) pisitools.remove("/usr/bin/%s" % s) # remove empty dirs while dirs: tmpdirs = dirs[:] for d in tmpdirs: if not shelltools.ls(d): shelltools.unlinkDir(d) dirname = shelltools.dirName(d) if not dirname in dirs: dirs.append(dirname) dirs.remove(d) pdftexsymlinks = [ "amstex", "cslatex", "csplain", "eplain", "etex", "jadetex", "latex", "mex", "mllatex", "mltex", "pdfetex", "pdfcslatex", "pdfcsplain", "pdfjadetex", "pdflatex", "pdfmex", "pdfxmltex", "texsis", "utf8mex", "xmltex" ] for symlink in pdftexsymlinks: pisitools.dosym("pdftex", "/usr/bin/%s" % symlink) luatexsymlinks = ["dvilualatex", "dviluatex", "lualatex"] for symlink in luatexsymlinks: pisitools.dosym("pdftex", "/usr/bin/%s" % symlink) pisitools.dosym("eptex", "/usr/bin/platex") pisitools.dosym("euptex", "/usr/bin/uplatex") pisitools.dosym("xetex", "/usr/bin/xelatex") pisitools.removeDir("/usr/share/texmf-dist")
def install(): shelltools.cd("%s/source/build/" % get.workDIR()) autotools.rawInstall("prefix=/usr DESTDIR=%s" % get.installDIR()) #install biber pisitools.dobin("../../biber") #pisitools.dodir("/usr/share/tlpkg/TeXLive") #shelltools.move("%s/source/utils/biber/TeXLive/*.pm" % get.workDIR(), "%s/usr/share/tlpkg/TeXLive" % get.installDIR()) # remove aleph from fmtutil.cnf pisitools.dosed( "%s/usr/share/texmf-dist/web2c/fmtutil.cnf" % get.installDIR(), "^.*aleph.*$") pisitools.insinto("/etc/texmf/texconfig", "%s/usr/share/texmf-dist/texconfig/tcfmgr.map" % get.installDIR(), sym=True) # fix symlinks, some are incorrect # makefile patching is another way, but there ar/dvipdfmx.cfge lot of scripts # pathing each makefile makes it much harder, for now this is a "simpler" solution for binary in shelltools.ls(get.installDIR() + "/usr/bin"): real_path = shelltools.realPath(get.installDIR() + "/usr/bin/" + binary) if "texmf" in real_path and not os.path.exists( real_path): # modify only if it is broken base_path = real_path.replace(get.installDIR() + "/usr", "") new_path = "/usr/share" + base_path shelltools.unlink(get.installDIR() + "/usr/bin/" + binary) pisitools.dosym(new_path, "/usr/bin/" + binary) bibtexextra_scripts = [ "bibexport", "listbib", "multibibliography", "urlbst" ] core_scripts = [ "a2ping", "a5toa4", "adhocfilelist", "afm2afm", "allcm", "allec", "allneeded", "arara", "arlatex", "autoinst", "bundledoc", "checkcites", "chkweb", "context", "ctanify", "ctanupload", "ctxtools", "de-macro", "deweb", "dosepsbin", "dtxgen", "dvi2fax", "dviasm", "dvired", "e2pall", "epstopdf", "findhyph", "fmtutil", "fmtutil-sys", "fontinst", "fragmaster", "installfont-tl", "kpsepath", "kpsetool", "kpsewhere", "kpsexpand", "latex2man", "latexdiff", "latexdiff-vc", "latexfileversion", "latexmk", "latexpand", "latexrevise", "listings-ext.sh", "ltxfileinfo", "lua2dox_filter", "luaotfload-tool", "luatools", "match_parens", "mf2pt1", "mkjobtexmf", "mkluatexfontdb", "mkt1font", "mktexfmt", "mptopdf", "mtxrun", "ot2kpx", "pdf180", "pdf270", "pdf90", "pdfatfi", "pdfbook", "pdfcrop", "pdfflip", "pdfjam", "pdfjam-pocketmod", "pdfjam-slides3up", "pdfjam-slides6up", "pdfjoin", "pdfnup", "pdfpun", "pfarrei", "pkfix", "pkfix-helper", "ps2eps", "ps2frag", "pslatex", "pstopdf", "purifyeps", "repstopdf", "rpdfcrop", "rungs", "simpdftex", "sty2dtx", "texconfig", "texconfig-dialog", "texconfig-sys", "texcount", "texdef", "texdiff", "texdirflatten", "texdoc", "texdoctk", "texexec", "texindy", "texlinks", "texliveonfly", "texloganalyser", "texmfstart", "thumbpdf", "typeoutfileinfo", "updmap", "updmap-sys", "vpl2ovp", "vpl2vpl", "xindy" ] htmlxml_scripts = [ "ht", "htcontext", "htlatex", "htmex", "httex", "httexi", "htxelatex", "htxetex", "mk4ht" ] langcyrillic_scripts = ["rubibtex", "rumakeindex"] langcjk_scripts = [ "convbkmk", "ptex2pdf", "kanji-fontmap-creator", "kanji-config-updmap", "kanji-config-updmap-sys" ] langextra_scripts = ["ebong"] langgreek_scripts = ["mkgrkindex"] latexextra_scripts = [ "authorindex", "exceltex", "makeglossaries", "pdfannotextractor", "perltex", "ps4pdf", "splitindex", "svn-multi", "vpe" ] music_scripts = ["m-tx", "musixtex", "musixflx", "pmx2pdf"] pictures_scripts = [ "cachepic", "epspdf", "epspdftk", "fig4latex", "mathspic" ] pstricks_scripts = ["pedigree", "pst2pdf"] science_scripts = ["ulqda"] # remove unneeded files and symlinks dirs = [] for g in [bibtexextra_scripts, core_scripts, htmlxml_scripts, \ langcjk_scripts, langcyrillic_scripts, langextra_scripts, \ langgreek_scripts, latexextra_scripts, music_scripts, \ pictures_scripts, pstricks_scripts, science_scripts, \ ["tlmgr"]]: for s in g: if shelltools.isLink("%s/usr/bin/%s" % (get.installDIR(), s)): realpath = shelltools.realPath("%s/usr/bin/%s" % (get.installDIR(), s)) dirname = shelltools.dirName(realpath) if not dirname in dirs: dirs.append(dirname) if not dirname == "%s/usr/bin" % get.installDIR(): if shelltools.isFile(realpath): shelltools.unlink(realpath) pisitools.remove("/usr/bin/%s" % s) # remove empty dirs while dirs: tmpdirs = dirs[:] for d in tmpdirs: if not shelltools.ls(d): shelltools.unlinkDir(d) dirname = shelltools.dirName(d) if not dirname in dirs: dirs.append(dirname) dirs.remove(d) pdftexsymlinks = [ "amstex", "cslatex", "csplain", "eplain", "etex", "jadetex", "latex", "mex", "mllatex", "mltex", "pdfetex", "pdfcslatex", "pdfcsplain", "pdfjadetex", "pdflatex", "pdfmex", "pdfxmltex", "texsis", "utf8mex", "xmltex" ] for symlink in pdftexsymlinks: pisitools.dosym("pdftex", "/usr/bin/%s" % symlink) luatexsymlinks = ["dvilualatex", "dviluatex", "lualatex"] for symlink in luatexsymlinks: pisitools.dosym("pdftex", "/usr/bin/%s" % symlink) pisitools.dosym("eptex", "/usr/bin/platex") pisitools.dosym("euptex", "/usr/bin/uplatex") pisitools.dosym("xetex", "/usr/bin/xelatex") pisitools.removeDir("/usr/share/texmf-dist")
def install(): shelltools.cd("%s/source/build/" % get.workDIR()) autotools.rawInstall("prefix=/usr DESTDIR=%s" % get.installDIR()) # replace upstream texmf.cnf with ours pisitools.remove("/usr/share/texmf-dist/web2c/texmf.cnf") # remove aleph from fmtutil.cnf pisitools.dosed("%s/usr/share/texmf-dist/web2c/fmtutil.cnf" % get.installDIR(), "^.*aleph.*$") pisitools.insinto("/etc/texmf/texconfig", "%s/usr/share/texmf-dist/texconfig/tcfmgr.map" % get.installDIR(), sym=True) # fix symlinks, some are incorrect # makefile patching is another way, but there ar/dvipdfmx.cfge lot of scripts # pathing each makefile makes it much harder, for now this is a "simpler" solution for binary in shelltools.ls(get.installDIR() + "/usr/bin"): real_path = shelltools.realPath(get.installDIR() + "/usr/bin/" + binary) if "texmf" in real_path and not os.path.exists(real_path): # modify only if it is broken base_path = real_path.replace(get.installDIR() + "/usr", "") new_path = "/usr/share" + base_path shelltools.unlink(get.installDIR() + "/usr/bin/" + binary) pisitools.dosym(new_path, "/usr/bin/" + binary) bibtexextra_scripts=["bibexport", "listbib" ,"multibibliography", "urlbst"] core_scripts=["a2ping","a5toa4", "adhocfilelist", "afm2afm", "allcm", "allec", "allneeded", "arara","arlatex" ,"autoinst", "bundledoc", "checkcites", "chkweb", "context", "ctanify", "ctanupload", "ctxtools", "de-macro", "deweb" ,"dosepsbin", "dtxgen", "dvi2fax", "dviasm", "dvired", "e2pall", "epstopdf", "findhyph", "fmtutil", "fmtutil-sys" ,"fontinst", "fragmaster", "installfont-tl", "kpsepath", "kpsetool", "kpsewhere", "kpsexpand", "latex2man", "latexdiff" ,"latexdiff-vc", "latexfileversion", "latexmk", "latexpand", "latexrevise", "listings-ext.sh", "ltxfileinfo", "lua2dox_filter" ,"luaotfload-tool", "luatools", "match_parens", "mf2pt1", "mkjobtexmf", "mkluatexfontdb", "mkt1font", "mktexfmt", "mptopdf" ,"mtxrun", "ot2kpx", "pdf180", "pdf270", "pdf90", "pdfatfi", "pdfbook", "pdfcrop", "pdfflip", "pdfjam", "pdfjam-pocketmod" ,"pdfjam-slides3up", "pdfjam-slides6up", "pdfjoin", "pdfnup", "pdfpun", "pfarrei", "pkfix", "pkfix-helper", "ps2eps", "ps2frag" ,"pslatex", "pstopdf", "purifyeps", "repstopdf", "rpdfcrop", "rungs", "simpdftex", "sty2dtx", "texconfig", "texconfig-dialog" ,"pythontex", "depythontex","ltximg","texfot", "latex-git-log", "latexindent" ,"texconfig-sys", "texcount", "texdef", "texdiff", "texdirflatten", "texdoc", "texdoctk", "texexec", "texindy", "texlinks" ,"texliveonfly", "texloganalyser", "texmfstart", "thumbpdf", "typeoutfileinfo", "updmap", "updmap-sys", "vpl2ovp", "vpl2vpl", "xindy"] htmlxml_scripts=["ht", "htcontext", "htlatex", "htmex", "httex", "httexi", "htxelatex", "htxetex", "mk4ht"] langcyrillic_scripts=["rubibtex", "rumakeindex"] langcjk_scripts=["convbkmk", "ptex2pdf", "kanji-fontmap-creator", "kanji-config-updmap", "kanji-config-updmap-sys"] langextra_scripts=["ebong"] langgreek_scripts=["mkgrkindex"] latexextra_scripts=["authorindex", "exceltex", "makeglossaries", "pdfannotextractor", "perltex", "ps4pdf", "splitindex" ,"svn-multi", "vpe"] music_scripts=["m-tx", "musixtex", "musixflx", "pmx2pdf"] pictures_scripts=["cachepic", "epspdf", "epspdftk", "fig4latex", "mathspic"] pstricks_scripts=["pedigree", "pst2pdf"] science_scripts=["ulqda"] # remove unneeded files and symlinks dirs = [] for g in [bibtexextra_scripts, core_scripts, htmlxml_scripts, \ langcjk_scripts, langcyrillic_scripts, langextra_scripts, \ langgreek_scripts, latexextra_scripts, music_scripts, \ pictures_scripts, pstricks_scripts, science_scripts, \ ["tlmgr"]]: for s in g: if shelltools.isLink("%s/usr/bin/%s" % (get.installDIR(), s)): realpath = shelltools.realPath("%s/usr/bin/%s" % (get.installDIR(), s)) dirname = shelltools.dirName(realpath) if not dirname in dirs: dirs.append(dirname) if not dirname == "%s/usr/bin" % get.installDIR(): if shelltools.isFile(realpath): shelltools.unlink(realpath) pisitools.remove("/usr/bin/%s" % s) # remove empty dirs while dirs: tmpdirs = dirs[:] for d in tmpdirs: if not shelltools.ls(d): shelltools.unlinkDir(d) dirname = shelltools.dirName(d) if not dirname in dirs: dirs.append(dirname) dirs.remove(d) pdftexsymlinks=["amstex", "cslatex", "csplain", "eplain", "etex", "jadetex", "latex", "mex", "mllatex", "mltex" ,"pdfetex", "pdfcslatex", "pdfcsplain", "pdfjadetex", "pdflatex", "pdfmex", "pdfxmltex", "texsis", "utf8mex", "xmltex"] for symlink in pdftexsymlinks: pisitools.dosym("pdftex", "/usr/bin/%s" % symlink) luatexsymlinks=["dvilualatex", "dviluatex", "lualatex"] for symlink in luatexsymlinks: pisitools.dosym("pdftex", "/usr/bin/%s" % symlink) pisitools.dosym("eptex", "/usr/bin/platex") pisitools.dosym("euptex", "/usr/bin/uplatex") pisitools.dosym("xetex", "/usr/bin/xelatex") #remove conflicts files with texlive-core pisitools.remove("/usr/share/texmf-dist/web2c/fmtutil.cnf") pisitools.remove("/usr/share/texmf-dist/texconfig/tcfmgr") pisitools.remove("/usr/share/texmf-dist/texconfig/tcfmgr.map") pisitools.removeDir("/usr/share/texmf-dist/xindy") #rm chktexrc in TEXMFCONFIG pisitools.remove("/usr/share/texmf-dist/chktex/chktexrc")
def install(): pisitools.dobin("biber", "/usr/bin") pisitools.dodir("/usr/share/tlpkg/TeXLive") shelltools.copy("source/utils/biber/TeXLive/*.pm", "%s/usr/share/tlpkg/TeXLive" % get.installDIR()) shelltools.cd("source/build") autotools.rawInstall("DESTDIR=%s" % get.installDIR()) bibtexextra_scripts=["bibexport", "listbib" ,"multibibliography", "urlbst"] core_scripts=["a2ping","a5toa4", "adhocfilelist", "afm2afm", "allcm", "allec", "allneeded", "arara","arlatex" ,"autoinst", "bundledoc", "checkcites", "chkweb", "context", "ctanify", "ctanupload", "ctxtools", "de-macro", "deweb" ,"dosepsbin", "dtxgen", "dvi2fax", "dviasm", "dvired", "e2pall", "epstopdf", "findhyph", "fmtutil", "fmtutil-sys" ,"fontinst", "fragmaster", "installfont-tl", "kpsepath", "kpsetool", "kpsewhere", "kpsexpand", "latex2man", "latexdiff" ,"latexdiff-vc", "latexfileversion", "latexmk", "latexpand", "latexrevise", "listings-ext.sh", "ltxfileinfo", "lua2dox_filter" ,"luaotfload-tool", "luatools", "match_parens", "mf2pt1", "mkjobtexmf", "mkluatexfontdb", "mkt1font", "mktexfmt", "mptopdf" ,"mtxrun", "ot2kpx", "pdf180", "pdf270", "pdf90", "pdfatfi", "pdfbook", "pdfcrop", "pdfflip", "pdfjam", "pdfjam-pocketmod" ,"pdfjam-slides3up", "pdfjam-slides6up", "pdfjoin", "pdfnup", "pdfpun", "pfarrei", "pkfix", "pkfix-helper", "ps2eps", "ps2frag" ,"pslatex", "pstopdf", "purifyeps", "repstopdf", "rpdfcrop", "rungs", "simpdftex", "sty2dtx", "texconfig", "texconfig-dialog" ,"texconfig-sys", "texcount", "texdef", "texdiff", "texdirflatten", "texdoc", "texdoctk", "texexec", "texindy", "texlinks" ,"texliveonfly", "texloganalyser", "texmfstart", "thumbpdf", "typeoutfileinfo", "updmap", "updmap-sys", "vpl2ovp", "vpl2vpl", "xindy"] htmlxml_scripts=["ht", "htcontext", "htlatex", "htmex", "httex", "httexi", "htxelatex", "htxetex", "mk4ht"] langcyrillic_scripts=["rubibtex", "rumakeindex"] langcjk_scripts=["convbkmk", "ptex2pdf", "kanji-fontmap-creator", "kanji-config-updmap", "kanji-config-updmap-sys"] langextra_scripts=["ebong"] langgreek_scripts=["mkgrkindex"] latexextra_scripts=["authorindex", "exceltex", "makeglossaries", "pdfannotextractor", "perltex", "ps4pdf", "splitindex" ,"svn-multi", "vpe"] music_scripts=["m-tx", "musixtex", "musixflx", "pmx2pdf"] pictures_scripts=["cachepic", "epspdf", "epspdftk", "fig4latex", "mathspic"] pstricks_scripts=["pedigree", "pst2pdf"] science_scripts=["ulqda"] # remove unneeded files and symlinks dirs = [] for g in [bibtexextra_scripts, core_scripts, htmlxml_scripts, \ langcjk_scripts, langcyrillic_scripts, langextra_scripts, \ langgreek_scripts, latexextra_scripts, music_scripts, \ pictures_scripts, pstricks_scripts, science_scripts, \ ["tlmgr"]]: for s in g: if shelltools.isLink("%s/usr/bin/%s" % (get.installDIR(), s)): realpath = shelltools.realPath("%s/usr/bin/%s" % (get.installDIR(), s)) dirname = shelltools.dirName(realpath) if not dirname in dirs: dirs.append(dirname) if not dirname == "%s/usr/bin" % get.installDIR(): if shelltools.isFile(realpath): shelltools.unlink(realpath) pisitools.remove("/usr/bin/%s" % s) # remove empty dirs while dirs: tmpdirs = dirs[:] for d in tmpdirs: if not shelltools.ls(d): shelltools.unlinkDir(d) dirname = shelltools.dirName(d) if not dirname in dirs: dirs.append(dirname) dirs.remove(d) pdftexsymlinks=["amstex", "cslatex", "csplain", "eplain", "etex", "jadetex", "latex", "mex", "mllatex", "mltex" ,"pdfetex", "pdfcslatex", "pdfcsplain", "pdfjadetex", "pdflatex", "pdfmex", "pdfxmltex", "texsis", "utf8mex", "xmltex"] for symlink in pdftexsymlinks: pisitools.dosym("pdftex", "/usr/bin/%s" % symlink) luatexsymlinks=["dvilualatex", "dviluatex", "lualatex"] for symlink in luatexsymlinks: pisitools.dosym("pdftex", "/usr/bin/%s" % symlink) pisitools.dosym("eptex", "/usr/bin/platex") pisitools.dosym("euptex", "/usr/bin/uplatex") pisitools.dosym("xetex", "/usr/bin/xelatex") pisitools.removeDir("/usr/share/texmf-dist")