texlive-full: add dependency for subpackages

This commit is contained in:
Henrik Grimler 2018-11-17 14:07:34 +01:00 committed by Leonid Pliushch
parent 8a1e91e6f3
commit ed69e2bec5
20 changed files with 64 additions and 21 deletions

View File

@ -7,7 +7,7 @@ TERMUX_PKG_VERSION=${_MAJOR_VERSION}
TERMUX_PKG_REVISION=2 TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=ftp://ftp.tug.org/texlive/historic/${TERMUX_PKG_VERSION:0:4}/texlive-$_MAJOR_VERSION-texmf.tar.xz TERMUX_PKG_SRCURL=ftp://ftp.tug.org/texlive/historic/${TERMUX_PKG_VERSION:0:4}/texlive-$_MAJOR_VERSION-texmf.tar.xz
TERMUX_PKG_SHA256=bae2fa05ea1858b489f8138bea855c6d65829cf595c1fb219c5d65f4fe8b1fad TERMUX_PKG_SHA256=bae2fa05ea1858b489f8138bea855c6d65829cf595c1fb219c5d65f4fe8b1fad
TERMUX_PKG_DEPENDS="perl, texlive-bin (>= 20180414)" TERMUX_PKG_DEPENDS="perl, texlive-bin (>= 20180414-6)"
TERMUX_PKG_CONFLICTS="texlive (<< 20170524-5), texlive-bin (<< 20180414)" TERMUX_PKG_CONFLICTS="texlive (<< 20170524-5), texlive-bin (<< 20180414)"
TERMUX_PKG_RECOMMENDS="texlive-tlmgr" TERMUX_PKG_RECOMMENDS="texlive-tlmgr"
TERMUX_PKG_FOLDERNAME="texlive-$_MAJOR_VERSION-texmf" TERMUX_PKG_FOLDERNAME="texlive-$_MAJOR_VERSION-texmf"
@ -34,6 +34,8 @@ termux_step_make() {
sed -i "s% RELOC/% texmf-dist/%g" $TERMUX_PKG_TMPDIR/texlive.tlpdb sed -i "s% RELOC/% texmf-dist/%g" $TERMUX_PKG_TMPDIR/texlive.tlpdb
cp -r $TERMUX_PKG_BUILDDIR/* $TL_ROOT/ cp -r $TERMUX_PKG_BUILDDIR/* $TL_ROOT/
perl -I$TL_ROOT/tlpkg/ $TL_ROOT/texmf-dist/scripts/texlive/mktexlsr.pl $TL_ROOT/texmf-dist perl -I$TL_ROOT/tlpkg/ $TL_ROOT/texmf-dist/scripts/texlive/mktexlsr.pl $TL_ROOT/texmf-dist
mkdir $TL_ROOT/tlpkg
cp $TERMUX_PKG_TMPDIR/texlive.tlpdb $TL_ROOT/tlpkg/
} }
termux_step_create_debscripts() { termux_step_create_debscripts() {

View File

@ -109,5 +109,16 @@ def get_conflicting_pkgs(package):
return ["latex"] return ["latex"]
else: else:
raise ValueError(sys.argv[1]+" isn't a known package name") raise ValueError(sys.argv[1]+" isn't a known package name")
print("\n".join(["share/texlive/"+line for line in
if len(sys.argv) > 2 and sys.argv[-1] == "print_names":
"""Generate dependencies to put into TERMUX_SUBPKG_DEPENDS"""
# Strip latex and basic since those collections are part of termux package "texlive"
dependencies = ["texlive-"+pkg for pkg in get_conflicting_pkgs(sys.argv[1]) if not pkg in ["latex", "basic"]];
if len(dependencies) > 0:
print("texlive, "+", ".join(dependencies))
else:
print("texlive")
else:
"""Print files which should be included in the subpackage"""
print("\n".join(["share/texlive/"+line for line in
list( set(Files([sys.argv[1]])) - set(Files(get_conflicting_pkgs(sys.argv[1]))) )])) list( set(Files([sys.argv[1]])) - set(Files(get_conflicting_pkgs(sys.argv[1]))) )]))

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-bibtexextra" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-bibtexextra"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-binextra"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-context" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-context"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-mathscience, texlive-fontsrecommended, texlive-metapost, texlive-xetex"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-fontsextra" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-fontsextra"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-plaingeneric"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-formatsextra" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-formatsextra"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-langcyrillic, texlive-mathscience, texlive-fontsrecommended, texlive-plaingeneric"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,4 +1,4 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive-full, meta package that depends on all texlive-collections" TERMUX_SUBPKG_DESCRIPTION="Texlive-full, meta package that depends on all texlive-collections"
TERMUX_SUBPKG_DEPENDS="texlive, texlive-bibtexextra, texlive-binextra, 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-langitalian, texlive-langjapanese, texlive-langkorean, texlive-langother, texlive-langpolish, texlive-langportuguese, texlive-langspanish, texlive-latexextra, texlive-latexrecommended, texlive-luatex, texlive-mathscience, texlive-metapost, texlive-music, texlive-pictures, texlive-plaingeneric, texlive-pstricks, texlive-publishers, texlive-xetex" TERMUX_SUBPKG_DEPENDS="texlive-binextra, 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-langitalian, texlive-langjapanese, texlive-langkorean, texlive-langother, texlive-langpolish, texlive-langportuguese, texlive-langspanish, texlive-latexextra, texlive-latexrecommended, texlive-luatex, texlive-mathscience, texlive-metapost, texlive-music, texlive-pictures, texlive-plaingeneric, texlive-pstricks, texlive-publishers, texlive-xetex"
TERMUX_SUBPKG_CONFLICTS="texlive-tlmgr" TERMUX_SUBPKG_CONFLICTS="texlive-tlmgr"
TERMUX_SUBPKG_INCLUDE="share/texlive/tlpkg/texlive.tlpdb"

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-humanities" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-humanities"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-latexextra"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langchinese" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langchinese"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-langcjk, texlive-fontutils"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langcjk" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langcjk"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-langkorean, texlive-langother"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langcyrillic" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langcyrillic"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-fontsextra, texlive-fontsrecommended, texlive-langgreek, texlive-latexrecommended"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langczechslovak" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langczechslovak"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-fontsextra, texlive-luatex"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langjapanese" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langjapanese"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-langcjk, texlive-langchinese"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langkorean" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-langkorean"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-langjapanese, texlive-latexrecommended"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-latexextra" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-latexextra"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-fontsextra"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-latexrecommended" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-latexrecommended"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-fontsrecommended, texlive-latexextra, texlive-pictures, texlive-plaingeneric"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-mathscience" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-mathscience"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-langgreek"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-pictures" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-pictures"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-latexextra"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -1,3 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-pstricks" TERMUX_SUBPKG_DESCRIPTION="Texlive's collection-pstricks"
TERMUX_SUBPKG_DEPENDS="texlive" TERMUX_SUBPKG_DEPENDS="texlive, texlive-plaingeneric"
TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb) TERMUX_SUBPKG_INCLUDE=$(python3 $TERMUX_PKG_BUILDER_DIR/parse_tlpdb.py $(echo $SUB_PKG_NAME | awk -F"-" '{print $2}') $TERMUX_PKG_TMPDIR/texlive.tlpdb)

View File

@ -0,0 +1,30 @@
--- ../texmf.cnf.orig 2018-04-30 17:07:05.796733785 +0000
+++ ./texk/kpathsea/texmf.cnf 2018-04-30 17:36:18.883441637 +0000
@@ -58,7 +58,7 @@
% SELFAUTOPARENT (its grandparent = /usr/local/texlive/YYYY), and
% SELFAUTOGRANDPARENT (its great-grandparent = /usr/local/texlive).
% Sorry for the off-by-one-generation names.
-TEXMFROOT = $SELFAUTOPARENT
+TEXMFROOT = $SELFAUTODIR/share/texlive
% The main tree of distributed packages and programs:
TEXMFDIST = $TEXMFROOT/texmf-dist
@@ -68,7 +68,7 @@
TEXMFMAIN = $TEXMFDIST
% Local additions to the distribution trees.
-TEXMFLOCAL = $SELFAUTOGRANDPARENT/texmf-local
+TEXMFLOCAL = $TEXMFROOT/texmf-local
% TEXMFSYSVAR, where *-sys store cached runtime data.
TEXMFSYSVAR = $TEXMFROOT/texmf-var
@@ -524,6 +524,9 @@
$SELFAUTODIR/share/texmf-local/web2c,\
$SELFAUTODIR/share/texmf-dist/web2c,\
$SELFAUTODIR/share/texmf/web2c,\
+$SELFAUTODIR/share/texlive/texmf-local/web2c,\
+$SELFAUTODIR/share/texlive/texmf-dist/web2c,\
+$SELFAUTODIR/share/texlive/texmf/web2c,\
$SELFAUTODIR/texmf-local/web2c,\
$SELFAUTODIR/texmf-dist/web2c,\
$SELFAUTODIR/texmf/web2c,\