[Lunar-commits] <moonbase> texlive-texmf: build update

Duncan Gibson engelsman at lunar-linux.org
Wed Mar 23 21:30:55 CET 2011


commit 30c07f1cd2c25b1185e486b9b5295d52ef4268af
Author: Christian Krause <kizkizzbangbang at googlemail.com>
Date:   Wed Mar 23 21:30:55 2011 +0100

    texlive-texmf: build update
    
    - I discovered that docs/manpages were installed twice so I fixed that
    - I added CONFIGURE options for the manpages and docs. without docs
      the module size gets reduced by 1.1 GB, which also reduces build time
      (with manpages and without docs size is now 1210680 KB, before, with
      docs installed twice, don't ask me why..., size was greater than 3GB)
    - I also added LDD_CHECK=off to DETAILS since the module doens't build
      any files, just copies them
---
 doc-tools/texlive-texmf/BUILD     |   31 +++++++++++++++++++++++++------
 doc-tools/texlive-texmf/CONFIGURE |    2 ++
 doc-tools/texlive-texmf/DETAILS   |    1 +
 3 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/doc-tools/texlive-texmf/BUILD b/doc-tools/texlive-texmf/BUILD
index 7ca859e..0a4d3eb 100644
--- a/doc-tools/texlive-texmf/BUILD
+++ b/doc-tools/texlive-texmf/BUILD
@@ -2,12 +2,31 @@
 
   prepare_install  &&
 
-  mkdir -p /usr/share/texmf-config/web2c /usr/share/doc/texmf/{texmf,texmf-dist,texmf-doc} /usr/share/man/man{1,5}  &&
+  # handle man pages separately, so they may not be copied again later
+  if [ "`get_module_config MANPAGES`" = "y" ] ; then
+    mkdir -p /usr/share/man/man{1,5}  &&
 
-  cp -R texmf/doc/man/man1/*.1 /usr/share/man/man1/  &&
-  cp -R texmf/doc/man/man5/*.5 /usr/share/man/man5/  &&
-  cp -R texmf/doc /usr/share/doc/texmf/texmf  &&
-  cp -R texmf-dist/doc /usr/share/doc/texmf-dist/  &&
-  cp -R texmf texmf-dist /usr/share/
+    cp -R texmf/doc/man/man1/*.1 /usr/share/man/man1/  &&
+    cp -R texmf/doc/man/man5/*.5 /usr/share/man/man5/  &&
+
+    rm -rf texmf/doc/man
+  fi  &&
+
+  if [ "`get_module_config DOCS`" = "n" ] ; then
+    rm -rf texmf/doc  &&
+    rm -rf texmf-dist/doc
+  fi  &&
+
+  # this is the big cp (which would copy the man pages we removed before again)
+  mkdir -p /usr/share                 &&
+  cp -R texmf texmf-dist /usr/share/  &&
+
+  # make symlinks to /usr/share/doc if needed
+  if [ "`get_module_config DOCS`" = "y" ] ; then
+    mkdir -p /usr/share/doc  &&
+
+    ln -sf /usr/share/texmf/doc      /usr/share/doc/texmf  &&
+    ln -sf /usr/share/texmf-dist/doc /usr/share/doc/texmf-dist
+  fi
 
 ) > $C_FIFO 2>&1
diff --git a/doc-tools/texlive-texmf/CONFIGURE b/doc-tools/texlive-texmf/CONFIGURE
new file mode 100644
index 0000000..73b9e39
--- /dev/null
+++ b/doc-tools/texlive-texmf/CONFIGURE
@@ -0,0 +1,2 @@
+mquery MANPAGES "Install man pages?" y
+mquery DOCS     "Install docs? (takes longer build time and needs more disk space)" n
diff --git a/doc-tools/texlive-texmf/DETAILS b/doc-tools/texlive-texmf/DETAILS
index 527b3d3..952e12d 100644
--- a/doc-tools/texlive-texmf/DETAILS
+++ b/doc-tools/texlive-texmf/DETAILS
@@ -8,6 +8,7 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/${SOURCE/.tar.xz}
          ENTERED=20100731
          UPDATED=20100909
          ARCHIVE=off
+       LDD_CHECK=off
            SHORT="TeX Live metafont package"
 
 cat << EOF


More information about the Lunar-commits mailing list