diff options
author | 2019-06-05 14:31:48 +0200 | |
---|---|---|
committer | 2019-06-05 14:31:48 +0200 | |
commit | 3bd7c735b525fa0da19460b732890a59f8d7691f (patch) | |
tree | f537602d46072df5c0eb64eee85225a375d52687 | |
parent | unbundle latexmk.pl (diff) | |
parent | add dep from tl-xetex to tl-luatex, bug #621544 (diff) | |
download | tex-3bd7c735b525fa0da19460b732890a59f8d7691f.tar.gz tex-3bd7c735b525fa0da19460b732890a59f8d7691f.tar.bz2 tex-3bd7c735b525fa0da19460b732890a59f8d7691f.zip |
Merge remote-tracking branch 'orig/master'
95 files changed, 943 insertions, 0 deletions
@@ -0,0 +1,2 @@ +TeX Live is now in the portage tree. This overlay is used to store the scripts +used to generate the new ebuilds when a new version comes out! diff --git a/licenses/literat b/licenses/literat new file mode 100644 index 0000000..01ea669 --- /dev/null +++ b/licenses/literat @@ -0,0 +1,56 @@ +FONT PACKAGE LICENSE + +Copyright (c) 1996 ParaGraph International +Copyright (c) 1996 Russian Foundation for Basic Research + +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. + +This is a free font package included into RFBR TeX distribution. +It contains four font shapes in three encodings: +- LaTeX T1 encoding +- LaTeX TS1 encoding +- ISO8859-5 encoding + +In the folowing paragraphs "fonts" stands for Type 1 fonts together with +metric files and also any conversions and renderings of them. + +You are allowed: +- to use fonts with any TeX distribution; +- to use fonts with any graphic editors for preparing pictures to be + included into TeX documents; +- to use fonts with other programs (such as WWW browsers) for + screening purpose only; +- to convert fonts into any format for above purposes; +- to include fonts into electronic documents (such as PDF) ; +- to distribute fonts together with RFBR TeX distribution. + +In all cases you must make reference to this license. + +Note: Use of these fonts as platform fonts in graphic environments such as + Microsoft Windows, OS/2 Presentation Manager, X Window, etc. permitted + according to above rules. + +You are not allowed: +- to make any changes to font and metric files, including reencoding; +- to use fonts for hardcopy making with any programs except TeX drivers; +- to distribute this fonts as an independent package; + +If you concerned in further development of this font family and if you try +to improve it by adding new or correcting existing character glyphs, you +must do all your work locally and you must send all your changes to addresses +given below. Be sure that further improvements will be distributed under terms +of this license. You may not distribute neither fonts under development nor +documents including such fonts. + +CONTACTING ADDRESSES: + +ParaGraph International: + 32 Krasikova street, 19th floor + Moscow 117418 Russia + phone: + 7 (095) 129-1500 + fax: + 7 (095) 129-0911 + http://www.paragraph.com + + + diff --git a/scripts/texlive/Makefile b/scripts/texlive/Makefile new file mode 100644 index 0000000..120bdb1 --- /dev/null +++ b/scripts/texlive/Makefile @@ -0,0 +1,4 @@ +all: + $(MAKE) -C lists dist + $(MAKE) -C lists ebuilds + $(MAKE) -C lists ebuilds-install diff --git a/scripts/texlive/common/Makefile.common b/scripts/texlive/common/Makefile.common new file mode 100644 index 0000000..cd46244 --- /dev/null +++ b/scripts/texlive/common/Makefile.common @@ -0,0 +1,17 @@ + +PORTDIR=$(shell portageq portdir) +DISTDIR=$(shell portageq distdir) + + +TEXLIVE_OVERLAY_LOCATION=~/dev/gentoo-x86 + +TEXLIVE_LIVE_MOUNTPOINT=/mnt/texlive +TEXLIVE_INST_MOUNTPOINT=/mnt/texlive-inst +CTAN_MIRROR=http://ctan.org/tex-archive +TL_TRUNK=/home/alexis/dev/texlive/trunk +TUG=ftp://tug.org/texlive + +MKDIRP=mkdir -p +RMF=rm -f +RMDIR=rmdir +CPF=cp -f diff --git a/scripts/texlive/tlpsrc/.gitignore b/scripts/texlive/tlpsrc/.gitignore new file mode 100644 index 0000000..d2f9763 --- /dev/null +++ b/scripts/texlive/tlpsrc/.gitignore @@ -0,0 +1,17 @@ +*.tlplic +*.cataloguehtml +*.tlpobj +*.unpacked +*versionnedzips +*.list +*.ebuild +*.base +*.installed +*.deps +*.desc +*.licenselist +*.gentoolicense +*.doclist +*.srclist +tldir +tlunpackdir diff --git a/scripts/texlive/tlpsrc/Makefile b/scripts/texlive/tlpsrc/Makefile new file mode 100644 index 0000000..900fad3 --- /dev/null +++ b/scripts/texlive/tlpsrc/Makefile @@ -0,0 +1,193 @@ + +include Makefile.common + +include Makefile.def + +include Makefile.revs + +include Makefile.inherits + +VERSIONNED_ZIPS = $(DESC:%=%.versionnedzips) $(EXTRA_DIST:%=%.versionnedzips) $(DESC:%=%.docversionnedzips) $(EXTRA_DIST:%=%.docversionnedzips) $(DESC:%=%.srcversionnedzips) $(EXTRA_DIST:%=%.srcversionnedzips) + +FULLDESC = $(DESC) $(EXTRA_DIST) + +lists : $(FULLDESC:%=%.list) $(FULLDESC:%=%.base) + +unpacked : $(FULLDESC:%=%.unpacked) + +%.base: + $(CPF) $(@:texlive-%.base=$(TL_TRUNK)/Master/tlpkg/tlpsrc/collection-%.tlpsrc) $@ + -sh $(@:%.base=%.baseexec) $@ + +%.list: %.base + grep -v "^#" $< | grep "depend " | awk '{print $$2}' | grep -v "collection" | tr '\n' ' ' > $@ + -sh $(@:%.list=%.extraexec) $@ + echo "$(@:texlive-%.list=collection-%)" >> $@ + +%.doclist: %.tlpobj + ./gendoc.sh $(shell cat $(<:%.tlpobj=%.list)) > $@ + +%.srclist: %.tlpobj + ./gensrc.sh $(shell cat $(<:%.tlpobj=%.list)) > $@ + +%.licenselist: %.tlplic + ./getlicense.sh $(shell cat $(@:%.licenselist=%.list)) | sort | uniq | tr '\n' ' ' > $@ + +%.gentoolicense: %.licenselist + (./cataloguelicense2gentoolicense.sh $(shell cat $<) ; printf "\nGPL-2\n") | sort | uniq | tr '\n' ' ' > $@ + +%.desc: %.base + grep "shortdesc " $< | sed -e "s/shortdesc //" | sed -e "s/.*/DESCRIPTION=\"TeXLive \0\"/" > $@ + +%.metadata: %.base + echo '<?xml version="1.0" encoding="UTF-8"?>' > $@ + echo '<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">' >> $@ + echo '<pkgmetadata>' >> $@ + echo ' <maintainer type="person">' >> $@ + echo ' <email>aballier@gentoo.org</email>' >> $@ + echo ' <name>Alexis Ballier</name>' >> $@ + echo ' </maintainer>' >> $@ + echo ' <maintainer type="project">' >> $@ + echo ' <email>tex@gentoo.org</email>' >> $@ + echo ' <name>Gentoo TeX Project</name>' >> $@ + echo ' </maintainer>' >> $@ + echo '<longdescription lang="en">' >> $@ + grep "longdesc " $< | sed -e "s/longdesc //" >> $@ + echo '</longdescription>' >> $@ + -cat $(@:%.metadata=%-extrametadata) >> $@ + echo '</pkgmetadata>' >> $@ + +%.deps: %.base + grep "depend " $< | awk '{print $$2}' | grep "collection" | grep -v "collection-basicbin" | grep -v "collection-fontbin" | sed -e "s/collection/texlive/g" | sed -e "s/^/>=dev-texlive\//" | sed -e "s/$$/-$(TEXLIVE_VERSION)/" > $@ + -cat $(@:.deps=.extradeps) >> $@ + +clean: + $(RMF) $(FULLDESC:%=%.list) + $(RMF) $(FULLDESC:%=%.srclist) + $(RMF) $(FULLDESC:%=%.doclist) + $(RMF) $(FULLDESC:%=%.fulllist) + $(RMF) $(FULLDESC:%=%.licenselist) + $(RMF) $(FULLDESC:%=%.base) + $(RMF) $(FULLDESC:%=%.versionnedzips) + $(RMF) $(FULLDESC:%=%.docversionnedzips) + $(RMF) $(FULLDESC:%=%.srcversionnedzips) + $(RMF) $(FULLDESC:%=%.unpacked) + $(RMF) $(DESC:%=%.dotbase) + $(RMF) $(DESC:%=%.deps) + $(RMF) $(DESC:%=%.metadata) + $(RMF) *.tlpobj + $(RMF) *.tlplic + $(RMF) *.unpacked + $(RMF) tldir + +%.versionnedzips: %.list + $(MAKE) CONTENTS="$(shell cat $<)" -f Makefile-dist versionnedzips + touch $@ + +%.docversionnedzips: %.doclist + $(MAKE) CONTENTS="$(shell cat $<)" -f Makefile-dist versionnedzips + touch $@ + +%.srcversionnedzips: %.srclist + $(MAKE) CONTENTS="$(shell cat $<)" -f Makefile-dist versionnedzips + touch $@ + +%.unpacked: %.list + $(MAKE) CONTENTS="$(shell cat $<)" -f Makefile-dist unpacked + touch $@ + +%.tlpobj: %.list + $(MAKE) CONTENTS="$(shell cat $<)" -f Makefile-dist tlpobj + touch $@ + +%.fulllist: %.list %.doclist %.srclist + cat $^ | tr '\n' ' ' > $@ + +%.tlplic: %.fulllist + $(MAKE) CONTENTS="$(shell cat $<)" -f Makefile-dist tlplic + touch $@ + +%-post-ebuild: + touch $@ + +%.extrardepend: + touch $@ + +%-preinherit-ebuild: + touch $@ + +%.ebuild: %.desc %.deps %.list %.doclist %.srclist %.gentoolicense %-post-ebuild %.extrardepend %-preinherit-ebuild + cat $(PORTDIR)/header.txt > $@ + printf "EAPI=\"5\"\n\n" >> $@ + echo -n "TEXLIVE_MODULE_CONTENTS=\"" >> $@ + cat $(@:%.ebuild=%.list) >> $@ + echo "\"" >> $@ + echo -n "TEXLIVE_MODULE_DOC_CONTENTS=\"" >> $@ + cat $(@:%.ebuild=%.doclist) >> $@ + echo "\"" >> $@ + echo -n "TEXLIVE_MODULE_SRC_CONTENTS=\"" >> $@ + cat $(@:%.ebuild=%.srclist) >> $@ + echo "\"" >> $@ + cat $(@:%.ebuild=%-preinherit-ebuild) >> $@ + echo "inherit $(EXTRA_INHERIT) texlive-module" >> $@ + cat $< >> $@ + echo "" >> $@ + echo -n "LICENSE=\"" >> $@ + cat $(@:%.ebuild=%.gentoolicense) >> $@ + echo "\"" >> $@ + echo "SLOT=\"0\"" >> $@ + echo "KEYWORDS=\"~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris\"" >> $@ + echo "IUSE=\"\"" >> $@ + echo -n "DEPEND=\"" >> $@ + cat $(@:%.ebuild=%.deps) >> $@ + echo "\"" >> $@ + echo -n 'RDEPEND="$${DEPEND} ' >> $@ + cat $(@:%.ebuild=%.extrardepend) >> $@ + echo '"' >> $@ + cat $(@:%.ebuild=%-post-ebuild) >> $@ + +dist: lists $(VERSIONNED_ZIPS) $(EXTRA_DIST:%=%.doclist) $(EXTRA_DIST:%=%.srclist) + $(MAKE) CONTENTS="$(EXTRA_ZIP)" -f Makefile-dist versionnedzips + +#-ebuild $(TEXLIVE_OVERLAY_LOCATION)/app-text/texlive-core/texlive-core-$(TEXLIVE_VERSION).ebuild digest + +ebuildsdir: + $(MKDIRP) $(TEXLIVE_OVERLAY_LOCATION)/$(DESC:%=dev-texlive/%) + +ebuilds: dist $(DESC:%=%.desc) $(DESC:%=%.ebuild) $(DESC:%=%.deps) + +tlpobj: $(DESC:%=%.tlpobj) + +tlplic: $(DESC:%=%.tlplic) + +licenselist: $(DESC:%=%.licenselist) $(EXTRA_DIST:%=%.licenselist) + +gentoolicenses: $(DESC:%=%.gentoolicense) $(EXTRA_DIST:%=%.gentoolicense) + +%.installed: %.ebuild %.metadata + $(MKDIRP) $(TEXLIVE_OVERLAY_LOCATION)/dev-texlive/$(@:%.installed=%) + $(CPF) $(@:%.installed=%.ebuild) $(TEXLIVE_OVERLAY_LOCATION)/dev-texlive/$(@:%.installed=%)/$(@:%.installed=%)-$(TEXLIVE_VERSION)$(EXTRA_REV).ebuild + $(CPF) $(@:%.installed=%.metadata) $(TEXLIVE_OVERLAY_LOCATION)/dev-texlive/$(@:%.installed=%)/metadata.xml + ebuild $(TEXLIVE_OVERLAY_LOCATION)/dev-texlive/$(@:%.installed=%)/$(@:%.installed=%)-$(TEXLIVE_VERSION)$(EXTRA_REV).ebuild digest + echo "$(TEXLIVE_OVERLAY_LOCATION)/dev-texlive/$(@:%.installed=%)/$(@:%.installed=%)-$(TEXLIVE_VERSION)$(EXTRA_REV).ebuild" > $@ + +ebuilds-install: $(DESC:%=%.installed) + + +texlive-core.gentoolicense: $(EXTRA_DIST:%=%.gentoolicense) + cat $(EXTRA_DIST:%=%.gentoolicense) | tr ' ' '\n' | sort | uniq | tr '\n' ' ' > $@ + +ebuildsclean: clean + $(RMF) $(DESC:%=%.ebuild) + $(RMF) $(DESC:%=%.desc) + $(RMF) $(DESC:%=%.installed) + $(RMF) $(DESC:%=%.gentoolicense) + +%.dotbase: %.deps + sed -e "s/^/\"$(<:%.deps=%)\" -> \"/" $< | tr '\n' '#' | sed -e "s/#/\"#/g" | tr '#' '\n' | sed -e "s:dev-texlive/texlive-::g" | sed -e "s:texlive-::g" > $@ + + +dot: $(DESC:%=%.dotbase) + echo "digraph G{" > texlive-$(TEXLIVE_VERSION).dot + cat $(DESC:%=%.dotbase) >> texlive-$(TEXLIVE_VERSION).dot + echo "}" >> texlive-$(TEXLIVE_VERSION).dot diff --git a/scripts/texlive/tlpsrc/Makefile-dist b/scripts/texlive/tlpsrc/Makefile-dist new file mode 100644 index 0000000..023e141 --- /dev/null +++ b/scripts/texlive/tlpsrc/Makefile-dist @@ -0,0 +1,35 @@ + +include Makefile.common + +CONTENTS=YOU_NEED_TO_SET_CONTENTS_VARIABLE_TO_GENERATE_VERSIONNED_LZMA_FILES + +$(DISTDIR)/texlive-module-%-$(TEXLIVE_VERSION).tar.xz: + wget $(CTAN_MIRROR)/systems/texlive/tlnet/archive/$(@:$(DISTDIR)/texlive-module-%-$(TEXLIVE_VERSION).tar.xz=%.tar.xz) -O $@ + +#wget $(TUG)/tlnet/archive/$(@:$(DISTDIR)/texlive-module-%-$(TEXLIVE_VERSION).tar.xz=%.tar.xz) -O $@ + +$(DISTDIR)/texlive-module-%-$(TEXLIVE_VERSION).tar.lzma: $(DISTDIR)/texlive-module-%-$(TEXLIVE_VERSION).tar.xz + xz -d $< + lzma $(<:%.xz=%) + +versionnedzips: $(CONTENTS:%=$(DISTDIR)/texlive-module-%-$(TEXLIVE_VERSION).tar.xz) + +%.tlplic: %.unpacked + cp $(@:%.tlplic=tlunpackdir/tlpkg/tlpobj/%.tlpobj) $@ + +tlplic: $(CONTENTS:%=%.tlplic) + +%.tlpobj: $(TL_TRUNK)/Master/tlpkg/tlpsrc/%.tlpsrc + $(TL_TRUNK)/Master/tlpkg/bin/tl-update-tlpdb -master=$(TL_TRUNK)/Master -output=$@ --tlpsrc-from-cmdline $< + +tldir: + mkdir tlunpackdir + touch $@ + +%.unpacked: $(DISTDIR)/texlive-module-%-$(TEXLIVE_VERSION).tar.xz tldir + xz -dc $< | tar xof - -C tlunpackdir + touch $@ + +tlpobj: $(CONTENTS:%=%.tlpobj) + +unpacked: $(CONTENTS:%=%.unpacked) diff --git a/scripts/texlive/tlpsrc/Makefile.common b/scripts/texlive/tlpsrc/Makefile.common new file mode 100644 index 0000000..5ac7890 --- /dev/null +++ b/scripts/texlive/tlpsrc/Makefile.common @@ -0,0 +1,4 @@ + +TEXLIVE_VERSION=2017 + +include ../common/Makefile.common diff --git a/scripts/texlive/tlpsrc/Makefile.def b/scripts/texlive/tlpsrc/Makefile.def new file mode 100644 index 0000000..0dfd08a --- /dev/null +++ b/scripts/texlive/tlpsrc/Makefile.def @@ -0,0 +1,57 @@ + +# Collections that have to become ebuilds + +DESC = texlive-basic texlive-bibtexextra \ + texlive-context \ + texlive-fontsextra texlive-fontsrecommended texlive-fontutils \ + texlive-formatsextra texlive-games \ + texlive-humanities \ + texlive-langarabic \ + texlive-langchinese \ + texlive-langcjk texlive-langcyrillic \ + texlive-langczechslovak \ + texlive-langenglish \ + texlive-langeuropean \ + texlive-langfrench texlive-langgerman \ + texlive-langgreek \ + texlive-langjapanese texlive-langitalian \ + texlive-langkorean \ + texlive-langother texlive-langpolish texlive-langportuguese \ + texlive-langspanish \ + texlive-latex texlive-latexextra texlive-latexrecommended \ + texlive-luatex \ + texlive-metapost texlive-music \ + texlive-pictures texlive-plaingeneric \ + texlive-pstricks texlive-publishers \ + texlive-xetex \ + texlive-mathscience \ + + + +EXTRA_ZIP = tetex tetex.doc texlive.infra texlive.infra.doc \ + kpathsea kpathsea.doc hyphen-base dvips dvips.doc \ + texconfig texconfig.doc gsftopk gsftopk.doc +#bin-aleph bin-omega + +# Collections that just need to be distfiles +EXTRA_DIST = texlive-binextra +# texlive-basicbin + +# those ones are provided by texlive & friends + + +# Only for windows +# texlive-wintools +# Should go with texworks +# texlive-texworks + +# It's a perl install... better +# to depend on perl-related packages +# texlive-perl + +# freetype1 provides most of it +# texlive-ttfutils + +# Does not provide anything besides what +# dvipng does. +# texlive-graphicstools diff --git a/scripts/texlive/tlpsrc/Makefile.inherits b/scripts/texlive/tlpsrc/Makefile.inherits new file mode 100644 index 0000000..261eb66 --- /dev/null +++ b/scripts/texlive/tlpsrc/Makefile.inherits @@ -0,0 +1,6 @@ +# Example: +# texlive-xetex.ebuild: EXTRA_INHERIT=font +# + +texlive-xetex.ebuild: EXTRA_INHERIT=font + diff --git a/scripts/texlive/tlpsrc/Makefile.revs b/scripts/texlive/tlpsrc/Makefile.revs new file mode 100644 index 0000000..50f4710 --- /dev/null +++ b/scripts/texlive/tlpsrc/Makefile.revs @@ -0,0 +1,2 @@ +# Example: +# texlive-xetex.installed: EXTRA_REV=-r1 diff --git a/scripts/texlive/tlpsrc/cataloguelicense2gentoolicense.sh b/scripts/texlive/tlpsrc/cataloguelicense2gentoolicense.sh new file mode 100755 index 0000000..6a13b4d --- /dev/null +++ b/scripts/texlive/tlpsrc/cataloguelicense2gentoolicense.sh @@ -0,0 +1,113 @@ +#!/bin/bash +while [ $# -gt 0 ] ; do + case "$1" in + cc-by-sa-2) + echo "CC-BY-SA-2.0";; + cc-by-sa-4) + echo "CC-BY-SA-4.0";; + gpl) + echo "GPL-1";; + gpl2) + echo "GPL-2";; + gpl3) + echo "GPL-3";; + gpl3+) + echo "GPL-3+";; + gpl3+cc-by-sa-4) + $0 gpl3+ cc-by-sa-4;; + gplofllppl) + $0 gpl ofl lppl;; + lppl1) + echo "LPPL-1.3";; + lppl) + echo "LPPL-1.3";; + lppl1.2) + echo "LPPL-1.2";; + lppl1.3) + echo "LPPL-1.3";; + lppl1.3c) + echo "LPPL-1.3c";; + # Some tlpobj from texlive have this like that. This means both and are + # only few of them, so split manually. + lppl1.3ofl) + $0 lppl1.3 ofl;; + lppl1.3lppl1.3) + $0 lppl1.3;; + lpplgpl) + $0 lppl gpl;; + lpplgpl2) + $0 lppl gpl2;; + lppllppl) + $0 lppl;; + gfl) + echo "LPPL-1.3";; + gfsl) + echo "LPPL-1.3";; + #unknown) + # echo "TeX-unknown";; + noinfo) + echo "TeX-noinfo";; + nosource) + echo "TeX-nosource";; + collection) + echo "GPL-2";; + other-free) + echo "TeX-other-free";; + other-freelppl) + $0 other-free lppl;; + other-freelppl1.3) + $0 other-free lppl1.3;; + #other) + # echo "TeX-other";; + other-nonfree) + echo "TeX-other-nonfree";; + lgpl) + echo "LGPL-2";; + lgpl2.1) + echo "LGPL-2.1";; + lgpl3) + echo "LGPL-3";; + pd) + echo "public-domain";; + pdgpl3) + $0 pd gpl3;; + apache2) + echo "Apache-2.0";; + artistic2) + echo "Artistic-2";; + artistic) + echo "Artistic";; + bsd) + echo "BSD";; + bsd3) + echo "BSD";; + knuth) + echo "TeX";; + fdl) + echo "FDL-1.1";; + ofl) + echo "OFL";; + oflapache2lppl1.3) + $0 ofl apache2 lppl1.3;; + ofllppl) + $0 ofl lppl;; + ofllppl1.3) + $0 ofl lppl1.3;; + opl) + echo "OPL";; + mit) + echo "MIT";; + mitlppl) + $0 mit lppl;; + bsd2) + echo "BSD-2";; + #nosell) + # echo "nosell";; + #nocommercial) + # echo "nosell";; + *) + echo "The $1 license is not mapped yet!" + exit 1;; + esac + shift +done diff --git a/scripts/texlive/tlpsrc/gendoc.sh b/scripts/texlive/tlpsrc/gendoc.sh new file mode 100755 index 0000000..875f128 --- /dev/null +++ b/scripts/texlive/tlpsrc/gendoc.sh @@ -0,0 +1,5 @@ +#!/bin/bash +while [ $# -gt 0 ] ; do + grep docfile $1.tlpobj > /dev/null && echo -n "$1.doc " + shift +done diff --git a/scripts/texlive/tlpsrc/gensrc.sh b/scripts/texlive/tlpsrc/gensrc.sh new file mode 100755 index 0000000..558aa90 --- /dev/null +++ b/scripts/texlive/tlpsrc/gensrc.sh @@ -0,0 +1,5 @@ +#!/bin/bash +while [ $# -gt 0 ] ; do + grep srcfiles $1.tlpobj > /dev/null && echo -n "$1.source " + shift +done diff --git a/scripts/texlive/tlpsrc/getlicense.sh b/scripts/texlive/tlpsrc/getlicense.sh new file mode 100755 index 0000000..a417e22 --- /dev/null +++ b/scripts/texlive/tlpsrc/getlicense.sh @@ -0,0 +1,5 @@ +#!/bin/bash +while [ $# -gt 0 ] ; do + grep '^catalogue-license' $1.tlplic | awk '{print $2}' + shift +done diff --git a/scripts/texlive/tlpsrc/texlive-basic-extrametadata b/scripts/texlive/tlpsrc/texlive-basic-extrametadata new file mode 100644 index 0000000..b513ee5 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-basic-extrametadata @@ -0,0 +1,3 @@ + <use> + <flag name="luajittex">Add support for LuaJitTeX: LuaTeX based on LuaJIT which is usually faster.</flag> + </use> diff --git a/scripts/texlive/tlpsrc/texlive-basic-post-ebuild b/scripts/texlive/tlpsrc/texlive-basic-post-ebuild new file mode 100644 index 0000000..ef2e7d7 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-basic-post-ebuild @@ -0,0 +1,43 @@ +PATCHES=( "${FILESDIR}/texmfcnflua2017.patch" ) +TEXLIVE_MODULE_BINSCRIPTS="texmf-dist/scripts/simpdftex/simpdftex texmf-dist/scripts/texlive/rungs.tlu" +DEPEND="${DEPEND} +!!<dev-texlive/texlive-basic-2016 +!!<dev-texlive/texlive-langafrican-2016 +!!<dev-texlive/texlive-langarabic-2016 +!!<dev-texlive/texlive-langarmenian-2016 +!!<dev-texlive/texlive-langchinese-2016 +!!<dev-texlive/texlive-langcjk-2016 +!!<dev-texlive/texlive-langcroatian-2016 +!!<dev-texlive/texlive-langcyrillic-2016 +!!<dev-texlive/texlive-langczechslovak-2016 +!!<dev-texlive/texlive-langdanish-2016 +!!<dev-texlive/texlive-langdutch-2016 +!!<dev-texlive/texlive-langenglish-2016 +!!<dev-texlive/texlive-langeuropean-2016 +!!<dev-texlive/texlive-langfinnish-2016 +!!<dev-texlive/texlive-langfrench-2016 +!!<dev-texlive/texlive-langgerman-2016 +!!<dev-texlive/texlive-langgreek-2016 +!!<dev-texlive/texlive-langhebrew-2016 +!!<dev-texlive/texlive-langhungarian-2016 +!!<dev-texlive/texlive-langindic-2016 +!!<dev-texlive/texlive-langitalian-2016 +!!<dev-texlive/texlive-langjapanese-2016 +!!<dev-texlive/texlive-langkorean-2016 +!!<dev-texlive/texlive-langlatin-2016 +!!<dev-texlive/texlive-langlatvian-2016 +!!<dev-texlive/texlive-langlithuanian-2016 +!!<dev-texlive/texlive-langmongolian-2016 +!!<dev-texlive/texlive-langnorwegian-2016 +!!<dev-texlive/texlive-langother-2016 +!!<dev-texlive/texlive-langpolish-2016 +!!<dev-texlive/texlive-langportuguese-2016 +!!<dev-texlive/texlive-langspanish-2016 +!!<dev-texlive/texlive-langswedish-2016 +!!<dev-texlive/texlive-langtibetan-2016 +!!<dev-texlive/texlive-langturkmen-2016 +!!<dev-texlive/texlive-langvietnamese-2016 +" +RDEPEND="${RDEPEND} +!<dev-texlive/texlive-latex-2016 +" diff --git a/scripts/texlive/tlpsrc/texlive-basic-preinherit-ebuild b/scripts/texlive/tlpsrc/texlive-basic-preinherit-ebuild new file mode 100644 index 0000000..b718b89 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-basic-preinherit-ebuild @@ -0,0 +1 @@ +TEXLIVE_MODULE_OPTIONAL_ENGINE="luajittex" diff --git a/scripts/texlive/tlpsrc/texlive-basic.extradeps b/scripts/texlive/tlpsrc/texlive-basic.extradeps new file mode 100644 index 0000000..0950dd2 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-basic.extradeps @@ -0,0 +1,5 @@ +!<dev-texlive/texlive-latex-2009 +!<dev-texlive/texlive-latexrecommended-2009 +!dev-texlive/texlive-documentation-base +!<app-text/dvipsk-5.996_p20160523 +>=app-text/texlive-core-2015[luajittex?] diff --git a/scripts/texlive/tlpsrc/texlive-basic.extraexec b/scripts/texlive/tlpsrc/texlive-basic.extraexec new file mode 100644 index 0000000..12dc802 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-basic.extraexec @@ -0,0 +1,10 @@ +sed -i -e "s/xdvi //" $@ +sed -i -e "s/tetex //" $@ +sed -i -e "s/texlive[.]infra //" $@ +sed -i -e "s/kpathsea //" $@ +sed -i -e "s/hyphen-base //" $@ +sed -i -e "s/texconfig //" $@ +sed -i -e "s/dvips //" $@ +sed -i -e "s/gsftopk //" $@ +sed -i -e "s/glyphlist //" $@ +sed -i -e "s/dvipdfmx //" $@ diff --git a/scripts/texlive/tlpsrc/texlive-bibtexextra-post-ebuild b/scripts/texlive/tlpsrc/texlive-bibtexextra-post-ebuild new file mode 100644 index 0000000..035831a --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-bibtexextra-post-ebuild @@ -0,0 +1,9 @@ +TEXLIVE_MODULE_BINSCRIPTS=" + texmf-dist/scripts/bibexport/bibexport.sh + texmf-dist/scripts/urlbst/urlbst + texmf-dist/scripts/listbib/listbib + texmf-dist/scripts/multibibliography/multibibliography.pl + texmf-dist/scripts/crossrefware/ltx2crossrefxml.pl + texmf-dist/scripts/crossrefware/bibzbladd.pl + texmf-dist/scripts/crossrefware/bibdoiadd.pl +" diff --git a/scripts/texlive/tlpsrc/texlive-bibtexextra.extradeps b/scripts/texlive/tlpsrc/texlive-bibtexextra.extradeps new file mode 100644 index 0000000..3fcae08 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-bibtexextra.extradeps @@ -0,0 +1,3 @@ +!=dev-texlive/texlive-latexextra-2007* +!<dev-texlive/texlive-latex-2009 +!<dev-texlive/texlive-publishers-2014 diff --git a/scripts/texlive/tlpsrc/texlive-bibtexextra.extraexec b/scripts/texlive/tlpsrc/texlive-bibtexextra.extraexec new file mode 100644 index 0000000..8302ecc --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-bibtexextra.extraexec @@ -0,0 +1 @@ +sed -i -e "s/biblatex / /" $1 diff --git a/scripts/texlive/tlpsrc/texlive-binextra.extraexec b/scripts/texlive/tlpsrc/texlive-binextra.extraexec new file mode 100644 index 0000000..144f5b5 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-binextra.extraexec @@ -0,0 +1,7 @@ +sed -i -e "s/detex //" $@ +sed -i -e "s/xindy //" $@ +sed -i -e "s/chktex //" $@ +sed -i -e "s/dvisvgm //" $@ +sed -i -e "s/latexdiff //" $@ +sed -i -e "s/latexmk //" $@ +sed -i -e "s/pdfjam //" $@ diff --git a/scripts/texlive/tlpsrc/texlive-context-post-ebuild b/scripts/texlive/tlpsrc/texlive-context-post-ebuild new file mode 100644 index 0000000..edfe1ff --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-context-post-ebuild @@ -0,0 +1,37 @@ +PATCHES=( "${FILESDIR}/luacnfspec2016.patch" ) + +TL_CONTEXT_UNIX_STUBS="contextjit mtxrunjit mtxrun texexec context metatex luatools mtxworks texmfstart" + +TEXLIVE_MODULE_BINSCRIPTS="" + +for i in ${TL_CONTEXT_UNIX_STUBS} ; do +TEXLIVE_MODULE_BINSCRIPTS="${TEXLIVE_MODULE_BINSCRIPTS} texmf-dist/scripts/context/stubs/unix/$i" +done + +# This small hack is needed in order to have a sane upgrade path: +# the new TeX Live 2009 metapost produces this file but it is not recorded in +# any package; when running fmtutil (like texmf-update does) this file will be +# created and cause collisions. + +pkg_setup() { + if [ -f "${ROOT}/var/lib/texmf/web2c/metapost/metafun.log" ]; then + einfo "Removing ${ROOT}/var/lib/texmf/web2c/metapost/metafun.log" + rm -f "${ROOT}/var/lib/texmf/web2c/metapost/metafun.log" + fi +} + +# These comes without +x bit set... +src_prepare() { + # No need to install these .exe + rm -rf texmf-dist/scripts/context/stubs/{mswin,win64} || die + + texlive-module_src_prepare +} + +TL_MODULE_INFORMATION="For using ConTeXt mkII simply use 'texexec' to generate +your documents. +If you plan to use mkIV and its 'context' command to generate your documents, +you have to run 'mtxrun --generate' as normal user before first use. + +More information and advanced options on: +http://wiki.contextgarden.net/TeX_Live_2011" diff --git a/scripts/texlive/tlpsrc/texlive-context.extradeps b/scripts/texlive/tlpsrc/texlive-context.extradeps new file mode 100644 index 0000000..f1dfc14 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-context.extradeps @@ -0,0 +1,4 @@ +>=dev-texlive/texlive-latex-2010 +!<dev-texlive/texlive-latex-2010 +>=app-text/texlive-core-2010[xetex] +>=dev-texlive/texlive-metapost-2010 diff --git a/scripts/texlive/tlpsrc/texlive-context.extrardepend b/scripts/texlive/tlpsrc/texlive-context.extrardepend new file mode 100644 index 0000000..aaec25d --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-context.extrardepend @@ -0,0 +1 @@ +dev-lang/ruby diff --git a/scripts/texlive/tlpsrc/texlive-fontsextra.extradeps b/scripts/texlive/tlpsrc/texlive-fontsextra.extradeps new file mode 100644 index 0000000..c3eeb56 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-fontsextra.extradeps @@ -0,0 +1,2 @@ +!=dev-texlive/texlive-langpolish-2007* +!<dev-texlive/texlive-latexextra-2016 diff --git a/scripts/texlive/tlpsrc/texlive-fontsrecommended.extradeps b/scripts/texlive/tlpsrc/texlive-fontsrecommended.extradeps new file mode 100644 index 0000000..09dfa96 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-fontsrecommended.extradeps @@ -0,0 +1,3 @@ +!=dev-texlive/texlive-basic-2007* +!<dev-texlive/texlive-fontsextra-2010 +!<dev-texlive/texlive-latexrecommended-2014 diff --git a/scripts/texlive/tlpsrc/texlive-fontutils-post-ebuild b/scripts/texlive/tlpsrc/texlive-fontutils-post-ebuild new file mode 100644 index 0000000..0669f5a --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-fontutils-post-ebuild @@ -0,0 +1,17 @@ +TEXLIVE_MODULE_BINSCRIPTS=" + texmf-dist/scripts/accfonts/mkt1font + texmf-dist/scripts/accfonts/vpl2ovp + texmf-dist/scripts/accfonts/vpl2vpl + texmf-dist/scripts/epstopdf/epstopdf.pl + texmf-dist/scripts/fontools/afm2afm + texmf-dist/scripts/fontools/autoinst + texmf-dist/scripts/fontools/ot2kpx + texmf-dist/scripts/mf2pt1/mf2pt1.pl + texmf-dist/scripts/dosepsbin/dosepsbin.pl + texmf-dist/scripts/texlive/fontinst.sh + texmf-dist/scripts/texlive/ps2frag.sh + texmf-dist/scripts/texlive/pslatex.sh +" +TEXLIVE_MODULE_BINLINKS=" + epstopdf:repstopdf +" diff --git a/scripts/texlive/tlpsrc/texlive-fontutils.extradeps b/scripts/texlive/tlpsrc/texlive-fontutils.extradeps new file mode 100644 index 0000000..f6160c2 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-fontutils.extradeps @@ -0,0 +1,3 @@ +!dev-texlive/texlive-psutils +!<dev-texlive/texlive-fontsextra-2009 +!<app-text/texlive-core-2013 diff --git a/scripts/texlive/tlpsrc/texlive-fontutils.extraexec b/scripts/texlive/tlpsrc/texlive-fontutils.extraexec new file mode 100644 index 0000000..3c5b0d6 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-fontutils.extraexec @@ -0,0 +1,2 @@ +sed -i -e "s/ttfutils //" $1 + diff --git a/scripts/texlive/tlpsrc/texlive-formatsextra.extradeps b/scripts/texlive/tlpsrc/texlive-formatsextra.extradeps new file mode 100644 index 0000000..31a9f68 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-formatsextra.extradeps @@ -0,0 +1,6 @@ +>=dev-texlive/texlive-latex-2008 +dev-texlive/texlive-xetex +!<dev-texlive/texlive-fontsextra-2009 +!dev-texlive/texlive-langtibetan +!<dev-texlive/texlive-basic-2014 +!dev-texlive/texlive-omega diff --git a/scripts/texlive/tlpsrc/texlive-formatsextra.extraexec b/scripts/texlive/tlpsrc/texlive-formatsextra.extraexec new file mode 100644 index 0000000..daac018 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-formatsextra.extraexec @@ -0,0 +1,4 @@ +sed -i -e "s/jadetex//" $1 +sed -i -e "s/tex4ht//" $1 +sed -i -e "s/xmltex//" $1 +sed -i -e "s/passivetex //" $1 diff --git a/scripts/texlive/tlpsrc/texlive-games-post-ebuild b/scripts/texlive/tlpsrc/texlive-games-post-ebuild new file mode 100644 index 0000000..dcb1997 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-games-post-ebuild @@ -0,0 +1,3 @@ +TEXLIVE_MODULE_BINSCRIPTS=" + texmf-dist/scripts/rubik/rubikrotation.pl +" diff --git a/scripts/texlive/tlpsrc/texlive-games.extradeps b/scripts/texlive/tlpsrc/texlive-games.extradeps new file mode 100644 index 0000000..95c8c97 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-games.extradeps @@ -0,0 +1 @@ +!<dev-texlive/texlive-latexextra-2009 diff --git a/scripts/texlive/tlpsrc/texlive-humanities-post-ebuild b/scripts/texlive/tlpsrc/texlive-humanities-post-ebuild new file mode 100644 index 0000000..12b6059 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-humanities-post-ebuild @@ -0,0 +1 @@ +TEXLIVE_MODULE_BINSCRIPTS="texmf-dist/scripts/diadia/diadia.lua" diff --git a/scripts/texlive/tlpsrc/texlive-humanities.extradeps b/scripts/texlive/tlpsrc/texlive-humanities.extradeps new file mode 100644 index 0000000..b838be5 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-humanities.extradeps @@ -0,0 +1 @@ +!dev-tex/lineno diff --git a/scripts/texlive/tlpsrc/texlive-langarabic.extradeps b/scripts/texlive/tlpsrc/texlive-langarabic.extradeps new file mode 100644 index 0000000..765e1c0 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langarabic.extradeps @@ -0,0 +1,6 @@ +!dev-texlive/texlive-langarab +!<dev-texlive/texlive-xetex-2016 +!<dev-texlive/texlive-publishers-2013 +!dev-texlive/texlive-documentation-arabic +!<dev-texlive/texlive-latexextra-2013 +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langchinese-post-ebuild b/scripts/texlive/tlpsrc/texlive-langchinese-post-ebuild new file mode 100644 index 0000000..7e95c92 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langchinese-post-ebuild @@ -0,0 +1,5 @@ +# Avoids collision with app-text/ttf2pk2 +src_prepare() { + local i=texmf-dist/source/fonts/zhmetrics/ttfonts.map + [ -f "${i}" ] && rm -f "${i}" +} diff --git a/scripts/texlive/tlpsrc/texlive-langchinese.extradeps b/scripts/texlive/tlpsrc/texlive-langchinese.extradeps new file mode 100644 index 0000000..72029a3 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langchinese.extradeps @@ -0,0 +1,2 @@ +!<dev-texlive/texlive-langcjk-2014 +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langcjk-post-ebuild b/scripts/texlive/tlpsrc/texlive-langcjk-post-ebuild new file mode 100644 index 0000000..bc6d59a --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langcjk-post-ebuild @@ -0,0 +1 @@ +TEXLIVE_MODULE_BINSCRIPTS="texmf-dist/scripts/cjk-gs-integrate/cjk-gs-integrate.pl" diff --git a/scripts/texlive/tlpsrc/texlive-langcjk.baseexec b/scripts/texlive/tlpsrc/texlive-langcjk.baseexec new file mode 100644 index 0000000..dc45c03 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langcjk.baseexec @@ -0,0 +1 @@ +sed -i -e "s/^depend collection-documentation-chinese$//" $1 diff --git a/scripts/texlive/tlpsrc/texlive-langcjk.extradeps b/scripts/texlive/tlpsrc/texlive-langcjk.extradeps new file mode 100644 index 0000000..feb4b90 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langcjk.extradeps @@ -0,0 +1,7 @@ +>=app-text/texlive-core-2010[cjk] +>=dev-texlive/texlive-latex-2011 +!!<dev-texlive/texlive-langcjk-2012 +!dev-texlive/texlive-documentation-chinese +!dev-texlive/texlive-documentation-korean +!dev-texlive/texlive-documentation-japanese +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langcjk.extraexec b/scripts/texlive/tlpsrc/texlive-langcjk.extraexec new file mode 100644 index 0000000..bf89bbd --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langcjk.extraexec @@ -0,0 +1,2 @@ +sed -i -e "s/cjk //" $1 +sed -i -e "s/cjkutils //" $1 diff --git a/scripts/texlive/tlpsrc/texlive-langcyrillic-post-ebuild b/scripts/texlive/tlpsrc/texlive-langcyrillic-post-ebuild new file mode 100644 index 0000000..d8fe9b1 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langcyrillic-post-ebuild @@ -0,0 +1,4 @@ +TEXLIVE_MODULE_BINSCRIPTS=" + texmf-dist/scripts/texlive/rubibtex.sh + texmf-dist/scripts/texlive/rumakeindex.sh + " diff --git a/scripts/texlive/tlpsrc/texlive-langcyrillic.extradeps b/scripts/texlive/tlpsrc/texlive-langcyrillic.extradeps new file mode 100644 index 0000000..62f8d3c --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langcyrillic.extradeps @@ -0,0 +1,10 @@ +!dev-texlive/texlive-documentation-ukrainian +!dev-texlive/texlive-documentation-bulgarian +!dev-texlive/texlive-documentation-russian +!dev-texlive/texlive-documentation-mongolian +!dev-texlive/texlive-langmongolian +!<dev-texlive/texlive-langother-2013 +!dev-texlive/texlive-documentation-serbian +!<app-text/texlive-core-2013 +!<dev-texlive/texlive-latexextra-2013 +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langczechslovak.extradeps b/scripts/texlive/tlpsrc/texlive-langczechslovak.extradeps new file mode 100644 index 0000000..c75d685 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langczechslovak.extradeps @@ -0,0 +1,4 @@ +!dev-texlive/texlive-documentation-czechslovak +>=app-text/texlive-core-2014[xetex] +!<dev-texlive/texlive-basic-2016 +>=dev-texlive/texlive-luatex-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langczechslovak.extraexec b/scripts/texlive/tlpsrc/texlive-langczechslovak.extraexec new file mode 100644 index 0000000..08ecfe3 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langczechslovak.extraexec @@ -0,0 +1 @@ +sed -i -e "s/vlna //" $1 diff --git a/scripts/texlive/tlpsrc/texlive-langenglish.extradeps b/scripts/texlive/tlpsrc/texlive-langenglish.extradeps new file mode 100644 index 0000000..6a6ca59 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langenglish.extradeps @@ -0,0 +1,2 @@ +!dev-texlive/texlive-documentation-english +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langeuropean.extradeps b/scripts/texlive/tlpsrc/texlive-langeuropean.extradeps new file mode 100644 index 0000000..16037f7 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langeuropean.extradeps @@ -0,0 +1,15 @@ +!dev-texlive/texlive-langarmenian +!dev-texlive/texlive-langcroatian +!dev-texlive/texlive-langdanish +!dev-texlive/texlive-langdutch +!dev-texlive/texlive-langfinnish +!dev-texlive/texlive-langhungarian +!dev-texlive/texlive-langnorwegia +!dev-texlive/texlive-langturkmen +!<dev-texlive/texlive-langother-2013 +!dev-texlive/texlive-langswedish +!dev-texlive/texlive-langlithuanian +!dev-texlive/texlive-langlatvian +!dev-texlive/texlive-langlatin +!dev-texlive/texlive-langnorwegian +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langfrench.extradeps b/scripts/texlive/tlpsrc/texlive-langfrench.extradeps new file mode 100644 index 0000000..0a7e47b --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langfrench.extradeps @@ -0,0 +1,2 @@ +!dev-texlive/texlive-documentation-french +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langgerman.extradeps b/scripts/texlive/tlpsrc/texlive-langgerman.extradeps new file mode 100644 index 0000000..37c3a8d --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langgerman.extradeps @@ -0,0 +1,3 @@ +!<dev-texlive/texlive-latexextra-2009 +!dev-texlive/texlive-documentation-german +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langgreek-post-ebuild b/scripts/texlive/tlpsrc/texlive-langgreek-post-ebuild new file mode 100644 index 0000000..4659de0 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langgreek-post-ebuild @@ -0,0 +1 @@ +TEXLIVE_MODULE_BINSCRIPTS="texmf-dist/scripts/mkgrkindex/mkgrkindex" diff --git a/scripts/texlive/tlpsrc/texlive-langgreek.extradeps b/scripts/texlive/tlpsrc/texlive-langgreek.extradeps new file mode 100644 index 0000000..38b53fd --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langgreek.extradeps @@ -0,0 +1 @@ +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langitalian.extradeps b/scripts/texlive/tlpsrc/texlive-langitalian.extradeps new file mode 100644 index 0000000..ccb6609 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langitalian.extradeps @@ -0,0 +1,2 @@ +!dev-texlive/texlive-documentation-italian +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langjapanese-post-ebuild b/scripts/texlive/tlpsrc/texlive-langjapanese-post-ebuild new file mode 100644 index 0000000..9ec20c1 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langjapanese-post-ebuild @@ -0,0 +1,8 @@ +TEXLIVE_MODULE_BINSCRIPTS=" + texmf-dist/scripts/convbkmk/convbkmk.rb + texmf-dist/scripts/ptex2pdf/ptex2pdf.lua + texmf-dist/scripts/ptex-fontmaps/kanji-config-updmap-sys.sh + texmf-dist/scripts/ptex-fontmaps/kanji-config-updmap-user.sh + texmf-dist/scripts/ptex-fontmaps/kanji-config-updmap.pl + texmf-dist/scripts/ptex-fontmaps/kanji-fontmap-creator.pl +" diff --git a/scripts/texlive/tlpsrc/texlive-langjapanese.extradeps b/scripts/texlive/tlpsrc/texlive-langjapanese.extradeps new file mode 100644 index 0000000..72029a3 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langjapanese.extradeps @@ -0,0 +1,2 @@ +!<dev-texlive/texlive-langcjk-2014 +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langjapanese.extrardepend b/scripts/texlive/tlpsrc/texlive-langjapanese.extrardepend new file mode 100644 index 0000000..aaec25d --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langjapanese.extrardepend @@ -0,0 +1 @@ +dev-lang/ruby diff --git a/scripts/texlive/tlpsrc/texlive-langkorean-post-ebuild b/scripts/texlive/tlpsrc/texlive-langkorean-post-ebuild new file mode 100644 index 0000000..d17da38 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langkorean-post-ebuild @@ -0,0 +1 @@ +TEXLIVE_MODULE_BINSCRIPTS="texmf-dist/scripts/kotex-utils/komkindex.pl texmf-dist/scripts/kotex-utils/jamo-normalize.pl texmf-dist/scripts/kotex-utils/ttf2kotexfont.pl" diff --git a/scripts/texlive/tlpsrc/texlive-langkorean.extradeps b/scripts/texlive/tlpsrc/texlive-langkorean.extradeps new file mode 100644 index 0000000..72029a3 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langkorean.extradeps @@ -0,0 +1,2 @@ +!<dev-texlive/texlive-langcjk-2014 +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langmongolian.extradeps b/scripts/texlive/tlpsrc/texlive-langmongolian.extradeps new file mode 100644 index 0000000..503f699 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langmongolian.extradeps @@ -0,0 +1 @@ +!=dev-texlive/texlive-langmanju-2007* diff --git a/scripts/texlive/tlpsrc/texlive-langother-post-ebuild b/scripts/texlive/tlpsrc/texlive-langother-post-ebuild new file mode 100644 index 0000000..9de9533 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langother-post-ebuild @@ -0,0 +1 @@ +TEXLIVE_MODULE_BINSCRIPTS="texmf-dist/scripts/ebong/ebong.py" diff --git a/scripts/texlive/tlpsrc/texlive-langother.extradeps b/scripts/texlive/tlpsrc/texlive-langother.extradeps new file mode 100644 index 0000000..bc77f7b --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langother.extradeps @@ -0,0 +1,12 @@ +!<dev-texlive/texlive-basic-2009 +!dev-texlive/texlive-documentation-vietnamese +!dev-texlive/texlive-langvietnamese +!<dev-texlive/texlive-langcjk-2013 +!dev-texlive/texlive-langhebrew +!dev-texlive/texlive-documentation-thai +!dev-texlive/texlive-langturkmen +!dev-texlive/texlive-langtibetan +!<dev-texlive/texlive-basic-2016 +!<dev-texlive/texlive-langafrican-2017 +!<dev-texlive/texlive-langindic-2017 +!<dev-texlive/texlive-langeuropean-2017 diff --git a/scripts/texlive/tlpsrc/texlive-langpolish.extradeps b/scripts/texlive/tlpsrc/texlive-langpolish.extradeps new file mode 100644 index 0000000..3d06d3f --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langpolish.extradeps @@ -0,0 +1,2 @@ +!dev-texlive/texlive-documentation-polish +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langportuguese.extradeps b/scripts/texlive/tlpsrc/texlive-langportuguese.extradeps new file mode 100644 index 0000000..941aba3 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langportuguese.extradeps @@ -0,0 +1,2 @@ +!dev-texlive/texlive-documentation-portuguese +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-langspanish.extradeps b/scripts/texlive/tlpsrc/texlive-langspanish.extradeps new file mode 100644 index 0000000..1efa67d --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-langspanish.extradeps @@ -0,0 +1,2 @@ +!dev-texlive/texlive-documentation-spanish +!<dev-texlive/texlive-basic-2016 diff --git a/scripts/texlive/tlpsrc/texlive-latex-post-ebuild b/scripts/texlive/tlpsrc/texlive-latex-post-ebuild new file mode 100644 index 0000000..51dc8cf --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-latex-post-ebuild @@ -0,0 +1,8 @@ +TEXLIVE_MODULE_BINSCRIPTS=" + texmf-dist/scripts/oberdiek/pdfatfi.pl + texmf-dist/scripts/context/perl/mptopdf.pl + " + +src_prepare() { + rm -rf texmf-dist/scripts/context/stubs/mswin || die +} diff --git a/scripts/texlive/tlpsrc/texlive-latex.extradeps b/scripts/texlive/tlpsrc/texlive-latex.extradeps new file mode 100644 index 0000000..f5c6331 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-latex.extradeps @@ -0,0 +1,3 @@ +!!<dev-texlive/texlive-latex-2016 +!<dev-texlive/texlive-context-2010 +!<dev-texlive/texlive-latexrecommended-2014 diff --git a/scripts/texlive/tlpsrc/texlive-latexextra-post-ebuild b/scripts/texlive/tlpsrc/texlive-latexextra-post-ebuild new file mode 100644 index 0000000..96e8125 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-latexextra-post-ebuild @@ -0,0 +1,11 @@ +TEXLIVE_MODULE_BINSCRIPTS=" + texmf-dist/scripts/perltex/perltex.pl + texmf-dist/scripts/pst-pdf/ps4pdf + texmf-dist/scripts/splitindex/splitindex.pl + texmf-dist/scripts/svn-multi/svn-multi.pl + texmf-dist/scripts/vpe/vpe.pl + texmf-dist/scripts/authorindex/authorindex + texmf-dist/scripts/exceltex/exceltex + texmf-dist/scripts/makedtx/makedtx.pl +" +PATCHES=( "${FILESDIR}/vpe_invocation.patch" ) diff --git a/scripts/texlive/tlpsrc/texlive-latexextra.extradeps b/scripts/texlive/tlpsrc/texlive-latexextra.extradeps new file mode 100644 index 0000000..8efbedd --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-latexextra.extradeps @@ -0,0 +1,14 @@ +>=dev-texlive/texlive-fontsrecommended-2014 +!dev-tex/achemso +!dev-tex/prosper +!dev-tex/ha-prosper +!dev-tex/texpower +!dev-tex/cdcover +!dev-tex/ppower4 +!=dev-texlive/texlive-latexrecommended-2007* +!=dev-texlive/texlive-latex3-2007* +!<dev-texlive/texlive-humanities-2014 +!<dev-texlive/texlive-mathextra-2010 +!<dev-texlive/texlive-plainextra-2010 +!<dev-texlive/texlive-pictures-2013 +dev-perl/Spreadsheet-ParseExcel diff --git a/scripts/texlive/tlpsrc/texlive-latexextra.extraexec b/scripts/texlive/tlpsrc/texlive-latexextra.extraexec new file mode 100644 index 0000000..f6457dd --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-latexextra.extraexec @@ -0,0 +1,9 @@ +sed -i -e "s/translator //" $@ +sed -i -e "s/glossaries //" $@ +sed -i -e "s/leaflet //" $@ +sed -i -e "s/currvita //" $@ +sed -i -e "s/g-brief //" $@ +sed -i -e "s/envlab //" $@ +sed -i -e "s/europecv //" $@ +sed -i -e "s/svninfo //" $@ +sed -i -e "s/pax //" $@ diff --git a/scripts/texlive/tlpsrc/texlive-latexrecommended-post-ebuild b/scripts/texlive/tlpsrc/texlive-latexrecommended-post-ebuild new file mode 100644 index 0000000..5dba2f7 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-latexrecommended-post-ebuild @@ -0,0 +1,2 @@ +TEXLIVE_MODULE_BINSCRIPTS="texmf-dist/scripts/thumbpdf/thumbpdf.pl texmf-dist/scripts/lwarp/lwarpmk.lua" +PATCHES=( "${FILESDIR}/thumbpdf_invocation.patch" ) diff --git a/scripts/texlive/tlpsrc/texlive-latexrecommended.extradeps b/scripts/texlive/tlpsrc/texlive-latexrecommended.extradeps new file mode 100644 index 0000000..4713979 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-latexrecommended.extradeps @@ -0,0 +1,9 @@ +!dev-tex/xkeyval +!dev-tex/memoir +!dev-tex/listings +!<dev-texlive/texlive-latexextra-2017 +!=app-text/texlive-core-2007* +!<dev-texlive/texlive-xetex-2016 +!dev-texlive/texlive-latex3 +!<dev-texlive/texlive-humanities-2014 +!dev-texlive/texlive-mathextra diff --git a/scripts/texlive/tlpsrc/texlive-latexrecommended.extraexec b/scripts/texlive/tlpsrc/texlive-latexrecommended.extraexec new file mode 100644 index 0000000..d7fd01e --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-latexrecommended.extraexec @@ -0,0 +1,2 @@ +sed -i -e "s/xcolor//" $@ +sed -i -e "s/beamer//" $@ diff --git a/scripts/texlive/tlpsrc/texlive-luatex-post-ebuild b/scripts/texlive/tlpsrc/texlive-luatex-post-ebuild new file mode 100644 index 0000000..33b79e1 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-luatex-post-ebuild @@ -0,0 +1,9 @@ +TEXLIVE_MODULE_BINSCRIPTS=" + texmf-dist/scripts/luaotfload/luaotfload-tool.lua + texmf-dist/scripts/checkcites/checkcites.lua + texmf-dist/scripts/lua2dox/lua2dox_filter + " + +TEXLIVE_MODULE_BINLINKS=" + luaotfload-tool:mkluatexfontdb + " diff --git a/scripts/texlive/tlpsrc/texlive-luatex.extrardepend b/scripts/texlive/tlpsrc/texlive-luatex.extrardepend new file mode 100644 index 0000000..c5ec2db --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-luatex.extrardepend @@ -0,0 +1 @@ +dev-texlive/texlive-latexrecommended diff --git a/scripts/texlive/tlpsrc/texlive-mathscience-post-ebuild b/scripts/texlive/tlpsrc/texlive-mathscience-post-ebuild new file mode 100644 index 0000000..f828ae1 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-mathscience-post-ebuild @@ -0,0 +1 @@ +TEXLIVE_MODULE_BINSCRIPTS="texmf-dist/scripts/ulqda/ulqda.pl texmf-dist/scripts/pygmentex/pygmentex.py" diff --git a/scripts/texlive/tlpsrc/texlive-mathscience.extradeps b/scripts/texlive/tlpsrc/texlive-mathscience.extradeps new file mode 100644 index 0000000..2ec5e52 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-mathscience.extradeps @@ -0,0 +1,4 @@ +!<dev-texlive/texlive-latexextra-2017 +!dev-tex/SIunits +!dev-texlive/texlive-mathextra +!dev-texlive/texlive-science diff --git a/scripts/texlive/tlpsrc/texlive-mathscience.extraexec b/scripts/texlive/tlpsrc/texlive-mathscience.extraexec new file mode 100644 index 0000000..4c14d54 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-mathscience.extraexec @@ -0,0 +1 @@ +sed -i -e "s/mh //" $1 diff --git a/scripts/texlive/tlpsrc/texlive-mathscience.extrardepend b/scripts/texlive/tlpsrc/texlive-mathscience.extrardepend new file mode 100644 index 0000000..62f880f --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-mathscience.extrardepend @@ -0,0 +1 @@ +dev-texlive/texlive-pstricks diff --git a/scripts/texlive/tlpsrc/texlive-metapost-post-ebuild b/scripts/texlive/tlpsrc/texlive-metapost-post-ebuild new file mode 100644 index 0000000..4329cf0 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-metapost-post-ebuild @@ -0,0 +1,12 @@ + +# This small hack is needed in order to have a sane upgrade path: +# the new TeX Live 2009 metapost produces this file but it is not recorded in +# any package; when running fmtutil (like texmf-update does) this file will be +# created and cause collisions. + +pkg_setup() { + if [ -f "${ROOT%/}${EPREFIX}/var/lib/texmf/web2c/metapost/mplib-luatex.mem" ]; then + einfo "Removing ${ROOT%/}${EPREFIX}/var/lib/texmf/web2c/metapost/mplib-luatex.mem" + rm -f "${ROOT%/}${EPREFIX}/var/lib/texmf/web2c/metapost/mplib-luatex.mem" + fi +} diff --git a/scripts/texlive/tlpsrc/texlive-metapost.extraexec b/scripts/texlive/tlpsrc/texlive-metapost.extraexec new file mode 100644 index 0000000..03338d8 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-metapost.extraexec @@ -0,0 +1 @@ +sed -i -e "s/feynmf //" $1 diff --git a/scripts/texlive/tlpsrc/texlive-music-post-ebuild b/scripts/texlive/tlpsrc/texlive-music-post-ebuild new file mode 100644 index 0000000..47c20f8 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-music-post-ebuild @@ -0,0 +1,9 @@ +TEXLIVE_MODULE_BINSCRIPTS=" + texmf-dist/scripts/musixtex/musixflx.lua + texmf-dist/scripts/musixtex/musixtex.lua + texmf-dist/scripts/m-tx/m-tx.lua + texmf-dist/scripts/pmxchords/pmxchords.lua + texmf-dist/scripts/lilyglyphs/lily-glyph-commands.py + texmf-dist/scripts/lilyglyphs/lily-image-commands.py + texmf-dist/scripts/lilyglyphs/lily-rebuild-pdfs.py +" diff --git a/scripts/texlive/tlpsrc/texlive-music.extradeps b/scripts/texlive/tlpsrc/texlive-music.extradeps new file mode 100644 index 0000000..3cd5490 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-music.extradeps @@ -0,0 +1,3 @@ +!<app-text/texlive-core-2011 +!<dev-texlive/texlive-pictures-2015 +!<dev-texlive/texlive-genericextra-2015 diff --git a/scripts/texlive/tlpsrc/texlive-pictures-post-ebuild b/scripts/texlive/tlpsrc/texlive-pictures-post-ebuild new file mode 100644 index 0000000..50b85f9 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-pictures-post-ebuild @@ -0,0 +1,8 @@ +TEXLIVE_MODULE_BINSCRIPTS=" + texmf-dist/scripts/cachepic/cachepic.tlu + texmf-dist/scripts/fig4latex/fig4latex + texmf-dist/scripts/mathspic/mathspic.pl + texmf-dist/scripts/mkpic/mkpic + texmf-dist/scripts/getmap/getmapdl.lua + texmf-dist/scripts/petri-nets/pn2pdf +" diff --git a/scripts/texlive/tlpsrc/texlive-pictures.extradeps b/scripts/texlive/tlpsrc/texlive-pictures.extradeps new file mode 100644 index 0000000..24c6538 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-pictures.extradeps @@ -0,0 +1,3 @@ +!<dev-texlive/texlive-latexextra-2009 +!<dev-texlive/texlive-texinfo-2009 +>=dev-tex/pgf-3.0.1 diff --git a/scripts/texlive/tlpsrc/texlive-pictures.extraexec b/scripts/texlive/tlpsrc/texlive-pictures.extraexec new file mode 100644 index 0000000..90870a9 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-pictures.extraexec @@ -0,0 +1,3 @@ +sed -i -e "s/pgf / /" $1 +sed -i -e "s/dot2texi//" $1 +sed -i -e "s/epspdf / /" $1 diff --git a/scripts/texlive/tlpsrc/texlive-plaingeneric.extradeps b/scripts/texlive/tlpsrc/texlive-plaingeneric.extradeps new file mode 100644 index 0000000..fd7b2a9 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-plaingeneric.extradeps @@ -0,0 +1,8 @@ +!<dev-texlive/texlive-langvietnamese-2009 +!dev-texlive/texlive-texinfo +!=dev-texlive/texlive-basic-2007* +!<dev-texlive/texlive-texinfo-2009 +!<dev-texlive/texlive-latexextra-2010 +!dev-texlive/texlive-genericextra +!dev-texlive/texlive-genericrecommended +!dev-texlive/texlive-plainextra diff --git a/scripts/texlive/tlpsrc/texlive-pstricks-post-ebuild b/scripts/texlive/tlpsrc/texlive-pstricks-post-ebuild new file mode 100644 index 0000000..086cf24 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-pstricks-post-ebuild @@ -0,0 +1,5 @@ +TEXLIVE_MODULE_BINSCRIPTS=" + texmf-dist/scripts/pst2pdf/pst2pdf.pl + texmf-dist/scripts/pedigree-perl/pedigree.pl +" +PATCHES=( "${FILESDIR}/pedigreeloc.patch" ) diff --git a/scripts/texlive/tlpsrc/texlive-pstricks.extrardepend b/scripts/texlive/tlpsrc/texlive-pstricks.extrardepend new file mode 100644 index 0000000..eff983a --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-pstricks.extrardepend @@ -0,0 +1 @@ +dev-tex/pgf diff --git a/scripts/texlive/tlpsrc/texlive-publishers.extradeps b/scripts/texlive/tlpsrc/texlive-publishers.extradeps new file mode 100644 index 0000000..37c1be3 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-publishers.extradeps @@ -0,0 +1 @@ +!<dev-texlive/texlive-latexextra-2014 diff --git a/scripts/texlive/tlpsrc/texlive-texinfo.extrardepend b/scripts/texlive/tlpsrc/texlive-texinfo.extrardepend new file mode 100644 index 0000000..1b5a6c9 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-texinfo.extrardepend @@ -0,0 +1 @@ +dev-texlive/texlive-latex diff --git a/scripts/texlive/tlpsrc/texlive-xetex-post-ebuild b/scripts/texlive/tlpsrc/texlive-xetex-post-ebuild new file mode 100644 index 0000000..4661efb --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-xetex-post-ebuild @@ -0,0 +1,16 @@ +FONT_CONF=( "${FILESDIR}"/09-texlive.conf ) + +src_install() { + texlive-module_src_install + font_fontconfig +} + +pkg_postinst() { + texlive-module_pkg_postinst + font_pkg_postinst +} + +pkg_postrm() { + texlive-module_pkg_postrm + font_pkg_postrm +} diff --git a/scripts/texlive/tlpsrc/texlive-xetex.extradeps b/scripts/texlive/tlpsrc/texlive-xetex.extradeps new file mode 100644 index 0000000..d1e4943 --- /dev/null +++ b/scripts/texlive/tlpsrc/texlive-xetex.extradeps @@ -0,0 +1,6 @@ +!=app-text/texlive-core-2007* +>=dev-texlive/texlive-latexextra-2010 +>=app-text/texlive-core-2010[xetex] +dev-texlive/texlive-mathscience +!<dev-texlive/texlive-mathextra-2012 +dev-texlive/texlive-luatex |