Ajout mode PHP pour emacs.
[hvlinux.git] / stage5 / pkg / texlive
index 9a7fd8d..1d81ba9 100644 (file)
@@ -23,6 +23,12 @@ hvconfig_pre()
         --enable-shared                \
         --without-luatex               \
         --enable-mktextex-default"
+
+    # This TexLive version overwrites /usr/bin/man. Save Man-DB version
+    # if it was not previously saved by this script.
+    if [ -f /usr/bin/man ]; then
+        mv -v /usr/bin/man{,.man-db}
+    fi
 }
 
 hvbuild_post()
@@ -41,6 +47,10 @@ hvbuild_post()
     done
     unset FN
 
+    # This TexLive version overwrites /usr/bin/man. Restore original Man-DB version.
+    rm -v /usr/bin/man
+    mv -v /usr/bin/man{.man-db,}
+
     # Fix bug with $SELFAUTOPARENT variable being empty...
     sed -i -e 's!\$SELFAUTOPARENT!/usr/share!' /usr/share/texmf/web2c/texmf.cnf
 
@@ -72,4 +82,15 @@ hvbuild_post()
         /usr/share/texmf-var    \
         /usr/share/texmf-local  \
         /var/lib/livetex/fonts
+
+    # Add xdvi desktop file
+    if [ ! -f /usr/share/applications/xdvi.desktop ]; then
+        cat > /usr/share/applications/xdvi.desktop << EOF
+[Desktop Entry]
+Type=Application
+Name=Xdvi
+Exec=xdvi
+MimeType=application/x-dvi;
+EOF
+    fi
 }