Browse Source

texlive-full: add dependency for subpackages

android-5
Henrik Grimler 6 years ago
committed by Fredrik Fornwall
parent
commit
6372d9a1ad
  1. 4
      packages/texlive/build.sh
  2. 15
      packages/texlive/parse_tlpdb.py
  3. 2
      packages/texlive/texlive-bibtexextra.subpackage.sh
  4. 2
      packages/texlive/texlive-context.subpackage.sh
  5. 2
      packages/texlive/texlive-fontsextra.subpackage.sh
  6. 2
      packages/texlive/texlive-formatsextra.subpackage.sh
  7. 4
      packages/texlive/texlive-full.subpackage.sh
  8. 2
      packages/texlive/texlive-humanities.subpackage.sh
  9. 2
      packages/texlive/texlive-langchinese.subpackage.sh
  10. 2
      packages/texlive/texlive-langcjk.subpackage.sh
  11. 2
      packages/texlive/texlive-langcyrillic.subpackage.sh
  12. 2
      packages/texlive/texlive-langczechslovak.subpackage.sh
  13. 2
      packages/texlive/texlive-langjapanese.subpackage.sh
  14. 2
      packages/texlive/texlive-langkorean.subpackage.sh
  15. 2
      packages/texlive/texlive-latexextra.subpackage.sh
  16. 2
      packages/texlive/texlive-latexrecommended.subpackage.sh
  17. 2
      packages/texlive/texlive-mathscience.subpackage.sh
  18. 2
      packages/texlive/texlive-pictures.subpackage.sh
  19. 2
      packages/texlive/texlive-pstricks.subpackage.sh
  20. 30
      packages/texlive/web2c-texmf.cnf

4
packages/texlive/build.sh

@ -7,7 +7,7 @@ TERMUX_PKG_VERSION=${_MAJOR_VERSION}
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_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_RECOMMENDS="texlive-tlmgr"
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
cp -r $TERMUX_PKG_BUILDDIR/* $TL_ROOT/
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() {

15
packages/texlive/parse_tlpdb.py

@ -109,5 +109,16 @@ def get_conflicting_pkgs(package):
return ["latex"]
else:
raise ValueError(sys.argv[1]+" isn't a known package name")
print("\n".join(["share/texlive/"+line for line in
list( set(Files([sys.argv[1]])) - set(Files(get_conflicting_pkgs(sys.argv[1]))) )]))
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]))) )]))

2
packages/texlive/texlive-bibtexextra.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-context.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-fontsextra.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-formatsextra.subpackage.sh

@ -1,3 +1,3 @@
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)

4
packages/texlive/texlive-full.subpackage.sh

@ -1,4 +1,4 @@
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_INCLUDE="share/texlive/tlpkg/texlive.tlpdb"

2
packages/texlive/texlive-humanities.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-langchinese.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-langcjk.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-langcyrillic.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-langczechslovak.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-langjapanese.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-langkorean.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-latexextra.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-latexrecommended.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-mathscience.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-pictures.subpackage.sh

@ -1,3 +1,3 @@
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)

2
packages/texlive/texlive-pstricks.subpackage.sh

@ -1,3 +1,3 @@
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)

30
packages/texlive/web2c-texmf.cnf

@ -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,\
Loading…
Cancel
Save