texlive-core.

This commit is contained in:
4fury-c3440d8
2021-01-02 09:35:59 +00:00
parent 6256d20378
commit 1023d5517a
2 changed files with 14 additions and 10 deletions
+7 -3
View File
@@ -4,9 +4,9 @@
# Licensed under the GNU General Public License, version 3. # Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt # See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
WorkDir = "." WorkDir = "."
revnr = get.srcVERSION().split(".")[1] revnr = get.srcVERSION().split(".")[1]
@@ -25,12 +25,16 @@ def install():
# prepare and install installed packs list # prepare and install installed packs list
pisitools.dodir("/var/lib/texmf/pisilinux/installedpacks") pisitools.dodir("/var/lib/texmf/pisilinux/installedpacks")
pisitools.dosed("CONTENTS", "^#", deleteLine=True) pisitools.dosed("CONTENTS", "^#", deleteLine=True)
pisitools.insinto("/var/lib/texmf/pisilinux/installedpkgs", "CONTENTS", "%s_%s.list" % (get.srcNAME(), revnr)) pisitools.insinto("/var/lib/texmf/pisilinux/installedpacks", "CONTENTS", "%s_%s.list" % (get.srcNAME(), revnr))
for i in shelltools.ls("texmf-dist"): for i in shelltools.ls("texmf-dist"):
shelltools.copytree("texmf-dist/%s/" % i, "%s/usr/share/texmf-dist/" % get.installDIR()) shelltools.copytree("texmf-dist/%s/" % i, "%s/usr/share/texmf-dist/" % get.installDIR())
shelltools.system("find texmf-dist -type f -executable -exec chmod 755 %s/usr/share/{} \;" % get.installDIR()) shelltools.system("find texmf-dist -type f -executable -exec chmod 755 %s/usr/share/{} \;" % get.installDIR())
# for i in shelltools.ls("."):
# if shelltools.isDirectory(i) and not i.startswith("texmf"):
# shelltools.copytree(i, "%s/usr/share/texmf-dist/" % get.installDIR())
for i in ["tlpkg"]: for i in ["tlpkg"]:
shelltools.copytree("%s/" % i, "%s/usr/share/" % get.installDIR()) shelltools.copytree("%s/" % i, "%s/usr/share/" % get.installDIR())