[Lunar-commits] <moonbase> texlive: a TeX Live that works

Duncan Gibson engelsman at lunar-linux.org
Sat Aug 7 19:02:33 CEST 2010


commit 43639296173996e0a30b878d6993d0abbf2c76cb
Author: Paul Bredbury <brebs at sent.com>
Date:   Sat Aug 7 19:02:33 2010 +0200

    texlive: a TeX Live that works
    
    Just Works (tm), without needing e.g. TEXMFMAIN defined.
---
 zbeta/texlive/BUILD        |   32 ++++++++++++++++++++++++++++++--
 zbeta/texlive/CONFLICTS    |    1 +
 zbeta/texlive/DEPENDS      |   32 ++++++++++++++++++++------------
 zbeta/texlive/DETAILS      |   33 ++++++++++++++++++++++-----------
 zbeta/texlive/POST_INSTALL |   18 ++++++++++++++++++
 5 files changed, 91 insertions(+), 25 deletions(-)

diff --git a/zbeta/texlive/BUILD b/zbeta/texlive/BUILD
index 8add60f..2375057 100644
--- a/zbeta/texlive/BUILD
+++ b/zbeta/texlive/BUILD
@@ -1,7 +1,35 @@
 (
 
-  OPTS="--disable-native-texlive-build --enable-shared" &&
+  # Patches from http://scmweb.sourcemage.org/?p=smgl/grimoire.git;a=tree;f=latex/texlive
+  patch_it $SOURCE_CACHE/$SOURCE2 1  &&
+  patch_it $SOURCE_CACHE/$SOURCE3 0  &&
 
-  default_build
+  # Hide warnings about unable to find its own config files
+  export KPATHSEA_WARNING=0  &&
+
+  # Some options are from http://www.gentoo-portage.com/app-text/texlive-core
+  # and http://repos.archlinux.org/wsvn/packages/texlive-bin/trunk/
+  OPTS+=" --datadir=/usr/share --disable-multiplatform --disable-native-texlive-build --with-pdftex --with-tetex --with-pdfetex --with-system-zlib --with-system-freetype2 --with-system-libpng --with-gs=gs --enable-xetex --enable-ipc --enable-shared"  &&
+
+  # luatex doesn't compile - anyway, latex & pdflatex are good enough :-)
+  OPTS+=" --disable-luatex"  &&
+
+  # clisp (required by xindy) doesn't compile - see DEPENDS
+  OPTS+=" --disable-xindy"  &&
+
+  default_build  &&
+
+  # In version 20091107, texlive does not install wrappers like latex automatically, so copy these files explicitly.
+  local i  &&
+  for i in texk/texlive/* ; do
+    if file "$i" | grep 'script text executable' > /dev/null 2>&1 ; then
+      install -m755 "$i" /usr/bin/
+    fi
+  done  &&
+
+  ln -sfn mf /usr/bin/mf-nowin  &&
+
+  # Idea from http://repos.archlinux.org/wsvn/packages/texlive-bin/trunk/
+  install -m644 $SOURCE_CACHE/$SOURCE4 /etc/fonts/conf.d/09-texlive-fonts.conf
 
 ) > $C_FIFO 2>&1
diff --git a/zbeta/texlive/CONFLICTS b/zbeta/texlive/CONFLICTS
index 66a9e6f..7afbb65 100644
--- a/zbeta/texlive/CONFLICTS
+++ b/zbeta/texlive/CONFLICTS
@@ -1 +1,2 @@
 conflicts teTeX
+conflicts teTeX-texmf
diff --git a/zbeta/texlive/DEPENDS b/zbeta/texlive/DEPENDS
index a9d3f9f..d0399f6 100644
--- a/zbeta/texlive/DEPENDS
+++ b/zbeta/texlive/DEPENDS
@@ -1,14 +1,22 @@
-depends  dialog       
-depends  ed           
-depends  zlib         
-depends  w3c-libwww   
-depends  texinfo      
-depends  teTeX-texmf  
-depends  bison        
+depends  dialog
+depends  ed
+depends  zlib
+depends  w3c-libwww
+depends  texinfo
+depends  texlive-texmf
+depends  bison
+depends  gd
+depends  libpng
+depends  freetype2
+depends  fontconfig
+depends  ghostscript
 
-optional_depends "zlib"           "--with-system-zlib"       "--without-system-zlib"      "for data compression support"
-optional_depends "libpng"         "--with-system-pnglib"     "--without-system-libpng"    "for png support"
 optional_depends "t1lib"          "--with-system-t1lib"      "--without-system-t1lib"     "for t1lib support"
-optional_depends "freetype2"      "--with-system-freetype2 " "--without-system-freetype2" "for freetype font support"
-optional_depends "gd"             "--with-system-gd"         "--without-system-gd"        "for gd graphics support"
-optional_depends "lcdf-typetools" "--enable-lcdf-typetools"  "--disable-lcdf-typetools"   "for postscript support"
+
+# This will look like the wrong way around. It means whether to install texlive's own version of lcdf-typetools, or use the lcdf-typetools module from moonbase.
+optional_depends "lcdf-typetools" "--disable-lcdf-typetools"  "--enable-lcdf-typetools"   "for Postscript support (if n, TeX Live's own version will be installed)"
+
+# Other xindy options in http://repos.archlinux.org/wsvn/packages/texlive-bin/trunk/
+# clisp doesn't even compile:
+#   configure: error: cannot find sources (lispbibl.d) in /usr/bin or ..
+#optional_depends "clisp"          "--enable-xindy"           "--disable-xindy"            "for xindy book-like indexes"
diff --git a/zbeta/texlive/DETAILS b/zbeta/texlive/DETAILS
index 6726c30..2b35920 100644
--- a/zbeta/texlive/DETAILS
+++ b/zbeta/texlive/DETAILS
@@ -1,18 +1,29 @@
           MODULE=texlive
          VERSION=20091107
-           MINOR=source
-          SOURCE=$MODULE-$VERSION-${MINOR}.tar.xz
-SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION-$MINOR
-   SOURCE_URL[0]=ftp://tug.org/historic/systems/texlive/2009/
+          SOURCE=$MODULE-$VERSION-source.tar.xz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION-source
+         SOURCE2=texlive-20091107-fix_scripts_3.patch
+         SOURCE3=texlive-20091107-texmf.cnf_fix.patch
+         SOURCE4=texlive-20091107-09-texlive-fonts.conf
+      SOURCE_URL=ftp://tug.org/historic/systems/texlive/2009/
+     SOURCE2_URL=$PATCH_URL
+     SOURCE3_URL=$PATCH_URL
+     SOURCE4_URL=$PATCH_URL
       SOURCE_VFY=sha1:3e11287f16595209181dc2e0ae7c23809e2e73ee
+     SOURCE2_VFY=sha1:f32083249d4503589536ae39bbe8bf9d943e631e
+     SOURCE3_VFY=sha1:807b2d96c86b24cb0743909c13e08172925eee85
+     SOURCE4_VFY=sha1:7277db188ded00af37364d03bbcf9614b851c847
         WEB_SITE=http://www.tug.org/texlive/
-         ENTERED=20100511
-         UPDATED=20100511
-           SHORT="TeX distribution that includes web2c, pdfTeX, e-Tex and more..."
+         ENTERED=20100805
+         UPDATED=20100805
+           SHORT="TeX distribution that includes web2c, pdfTeX, e-Tex and more"
 
+# Text from http://www.tug.org/texlive/
 cat << EOF
-TeTex is by far, the best TeX distribution available for Linux, includes
-latest versions of web2c, pdfTeX, e-TeX, Omega, xdvi, ps2pk, makeinfo,
-texinfo, texconfig and lots of fonts and macros. It's easy to install and
-easy to customize.
+TeX Live is an easy way to get up and running with the TeX document
+production system. It provides a comprehensive TeX system with binaries
+for most flavors of Unix, including GNU/Linux, and also Windows. It
+includes all the major TeX-related programs, macro packages, and fonts
+that are free software, including support for many languages around the
+world. 
 EOF
diff --git a/zbeta/texlive/POST_INSTALL b/zbeta/texlive/POST_INSTALL
new file mode 100644
index 0000000..9550d43
--- /dev/null
+++ b/zbeta/texlive/POST_INSTALL
@@ -0,0 +1,18 @@
+# Set up the Tex Live environment.
+# Some of this may be unnecessary, but TeX Live is too big (900mb) to check everything. It works.
+
+mktexlsr > /dev/null 2>&1
+
+# From http://repos.archlinux.org/wsvn/packages/texlive-core/trunk/texlive.install
+updmap-sys --quiet --nohash
+
+# Hint from https://bbs.archlinux.org/viewtopic.php?pid=607603
+# Prevent error message:  Fatal format file error; I'm stymied
+# Will fail on luatex, which is not installed.
+fmtutil-sys --all > /dev/null 2>&1
+
+# From http://www.linuxforums.org/forum/linux-applications/75163-latex-error-i-cant-find-format-file-latex-fmt.html
+initex latex.ltx > /dev/null && install -m644 latex.fmt /usr/share/texmf/web2c/
+
+texhash > /dev/null 2>&1
+mktexlsr > /dev/null 2>&1


More information about the Lunar-commits mailing list