Update of /cvsroot/fink/dists/10.2-gcc3.3/stable/main/finkinfo/text
In directory sc8-pr-cvs1:/tmp/cvs-serv12554

Added Files:
        system-tetex-20010808-13.info 
Removed Files:
        system-tetex-20010808-12.info 
Log Message:
*correctly* fix MANPATH problem


--- NEW FILE: system-tetex-20010808-13.info ---
Package: system-tetex
Version: 20010808
Revision: 12
Depends: base-files (>= 1.8.0-1)
Provides: tetex-texmf, tetex-base, pdftex, hyperref, tetex-macosx, oberdiek, context
Conflicts: tetex-texmf, tetex-base, pdftex, hyperref, tetex-macosx, oberdiek, context, 
dvipdfm (<= 0.13.2c-3)
Type: nosource
Maintainer: Dave Morrison <[EMAIL PROTECTED]>
Description: Placeholder package for manually installed teTeX
DescDetail: <<
 Install this package if you have installed teTeX separately from Fink,
 for example, by using Gerben Wierda's distribution (see
 http://www.rna.nl/tex.html ).  The package checks to see if you have a
 valid installation of teTeX in /usr/local/teTeX.

 Because of the complicated interaction between Wierda's distribution and
 fink, if you need to update this package or to switch between system-tetex
 and the fink teTeX packages tetex-texmf and tetex-base, you must first remove
 all packages which depend on tetex-base, such as latex2html. You 
 can reinstall them after the update.
<<
DescPackaging: <<
 We put /usr/local/teTeX/bin/... at the end of the user's path to ensure that
 fink's install-info is used rather than the install-info found in teTeX.
 Starting in rev. 9, we also add /usr/local/teTeX/man to the MANPATH (which
 is set in init.(c)sh prior to loading the system-tetex profile script).
<<
CompileScript: <<
 echo "This public domain package creates links from a teTeX installation in" > README
 echo "/usr/local/teTeX to appropriate locations in the fink tree." >> README
<<
InstallScript: <<
 mkdir -p %i/share
 mkdir -p %i/etc
 ln -s /usr/local/teTeX/share/texmf %i/share/texmf
 ln -s /usr/local/teTeX/share/texmf.local %i/etc/texmf.local
 ln -s /usr/local/teTeX/share/texmf.macosx %i/share/texmf.macosx
 ln -s %p/share/texmf.macosx %i/share/texmf.os
 ln -s %p/etc/texmf.local %i/share/texmf.local
 mkdir -p %i/bin
 mkdir -p %i/lib
 mkdir -p %i/include
 ln -s /usr/local/teTeX/texmf.cnf %i
 ln -s /usr/local/teTeX/include/kpathsea %i/include/kpathsea
 ln -s /usr/local/teTeX/lib/libkpathsea.a %i/lib/libkpathsea.a
 ln -s /usr/local/teTeX/bin/powerpc-apple-darwin-current/mktexlsr %i/bin/mktexlsr
 mkdir -p %i/etc/profile.d
 echo "append_path PATH /usr/local/teTeX/bin/powerpc-apple-darwin-current " > 
%i/etc/profile.d/%n.csh
 echo "append_path MANPATH /usr/local/teTeX/man" >> %i/etc/profile.d/%n.csh
 echo "append_path PATH /usr/local/teTeX/bin/powerpc-apple-darwin-current" > 
%i/etc/profile.d/%n.sh
 echo "export PATH" >> %i/etc/profile.d/%n.sh
 echo "append_path MANPATH /usr/local/teTeX/man" >> %i/etc/profile.d/%n.sh
 echo "export MANPATH" >> %i/etc/profile.d/%n.sh
 chmod 755 %i/etc/profile.d/%n.*
<<
DocFiles: README
License: Public Domain
PreInstScript: <<

 echo

# check for teTeX installation.
 if [ -d /usr/local/teTeX ]; then
   echo "It looks like you may have teTeX installed .. will check for some files .."
   echo
 fi

# check for some needed files
 missing=
 mcount=0
 for file in lib/libkpathsea.a include/kpathsea/tex-file.h \
      share/texmf/web2c/texmf.cnf; do
   if [ ! -f "/usr/local/teTeX/$file" ]; then
     missing="$missing /usr/local/teTeX/$file"
     mcount=$(($mcount+1))
   fi
 done
 if [ $mcount -ge 1 ]; then
   echo "You don't a valid teTeX installation; you were missing"
   echo "$missing"
   echo
   echo "Install the tetex-texmf and tetex-base packages instead,"
   echo "or install teTeX manually from"
   echo "http://www.uoregon.edu/~koch/texshop/texshop.html";
   echo "and then retry installing the system-tetex package."
   echo
   exit 1
 fi
 
 echo "Valid teTeX installation detected."
 echo
 
 if [ $1 != "upgrade" ]; then

# check for conflicting files/directories on the system
 if [ -d %p/share/texmf ]; then
   echo "Sorry, you must remove the directory %p/share/texmf before installing"
   echo "system-tetex."
   echo
   echo "Make sure you also remove the files %p/lib/libkpathsea.a, %p/bin/mktexlsr,"
   echo " %p/texmf.cnf and the directories %p/include/kpathsea, %p/etc/texmf.local,"
   echo " and %p/share/texmf.macosx before installing system-tetex."
   echo
   exit 1
 fi

 if [ -d %p/share/texmf.macosx ]; then
   echo "Sorry, you must remove the directory %p/share/texmf.macosx before installing"
   echo "system-tetex."
   echo
   echo "Make sure you also remove the files %p/lib/libkpathsea.a, %p/bin/mktexlsr,"
   echo " %p/texmf.cnf and the directories %p/include/kpathsea and %p/etc/texmf.local"
   echo " before installing system-tetex."
   echo
   exit 1
 fi

 if [ -d %p/etc/texmf.local ]; then
   echo "Sorry, you must remove the directory %p/etc/texmf.local before installing"
   echo "system-tetex."
   echo
   echo "Make sure you also remove the files %p/lib/libkpathsea.a, %p/bin/mktexlsr,"
   echo " %p/texmf.cnf and the directory %p/include/kpathsea before installing 
system-tetex."
   echo
   exit 1
 fi
 
 if [ -d %p/include/kpathsea ]; then
   echo "Sorry, you must remove the directory %p/include/kpathsea before installing"
   echo "system-tetex."
   echo
   echo "Make sure you also remove the files %p/lib/libkpathsea.a, %p/texmf.cnf, and"
   echo " %p/bin/mktexlsr before installing system-tetex."
   echo
   exit 1
 fi

 if [ -f %p/bin/mktexlsr ]; then
   echo "Sorry, you must remove the file %p/bin/mktexlsr before installing"
   echo "system-tetex."
   echo
   echo "Make sure you also remove the files %p/texmf.cnf and %p/bin/mktexlsr before"
   echo " installing system-tetex."
   echo
   exit 1
 fi

 if [ -f %p/lib/libkpathsea.a ]; then
   echo "Sorry, you must remove the file %p/lib/libkpathsea.a before installing"
   echo "system-tetex."
   echo
   echo "Make sure you also remove the file %p/texmf.cnf before installing 
system-tetex."
   echo
   exit 1
 fi

 if [ -f %p/texmf.cnf ]; then
   echo "Sorry, you must remove the file %p/texmf.cnf before installing system-tetex."
   echo
   exit 1
 fi

 fi

echo "WARNING: If you are upgrading system-tetex, you may need to remove other"
echo "TeX-related packages.  After the upgrade, you can reinstall those packages."
echo "Affected packages include: foiltex, ifmslide, latex2html, lilypond,"
echo "lyx, pdfscreen, pdfslide, ppower4, tex4ht, texpower."
echo

<<
PostInstScript: <<
 if [ -f /usr/bin/ranlib ]; then 
 /usr/bin/ranlib /usr/local/teTeX/lib/libkpathsea.a
 exit 0
 fi

echo
echo "WARNING: /usr/bin/ranlib was not found.  If you are only planning to use"
echo "Fink's binary distribution, this is not a problem; otherwise, you"
echo "should obtain and install the Mac OS X Developer Tools and then re-install"
echo "system-tetex."
echo
<<

--- system-tetex-20010808-12.info DELETED ---




-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to