wok-current rev 2625
Remove get-texlive (Not stable at all)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 15 14:02:06 2009 +0200 (2009-04-15) |
parents | 5ac7c3f3e0eb |
children | de989225f5ab |
files | get-texlive/receipt get-texlive/stuff/get-texlive |
line diff
1.1 --- a/get-texlive/receipt Wed Apr 15 12:25:03 2009 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,26 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="get-texlive" 1.7 -VERSION="2008" 1.8 -CATEGORY="office" 1.9 -WEB_SITE="http://www.tug.org/texlive/" 1.10 -SHORT_DESC="get texlive distribution for tex, latex..." 1.11 -MAINTAINER="sygne@ombres.eu" 1.12 - 1.13 - 1.14 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 -genpkg_rules() 1.16 -{ 1.17 - mkdir -p $fs/usr/bin 1.18 - cp stuff/$PACKAGE $fs/usr/bin 1.19 -} 1.20 - 1.21 - 1.22 -post_install() 1.23 -{ 1.24 - echo -e " 1.25 -To get texlive, run \033[1mget-texlive\033[0m as root. 1.26 -This will install about 31 Mo of tools in /usr/local/texlive 1.27 -" 1.28 -} 1.29 -
2.1 --- a/get-texlive/stuff/get-texlive Wed Apr 15 12:25:03 2009 +0200 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,140 +0,0 @@ 2.4 -#!/bin/sh 2.5 -# download, pack and install a minimal texlive scheme. 2.6 - 2.7 -PACKAGE="texlive" 2.8 -VERSION="2008" 2.9 -CATEGORY="office" 2.10 -SHORT_DESC="latex text processor" 2.11 -MAINTAINER="sygne@ombres.eu" 2.12 -DEPENDS="wget perl openssl" 2.13 -SOURCE="install-tl" 2.14 -TARBALL="$SOURCE-unx.tar.gz" 2.15 -WEB_SITE="http://www.tug.org/$PACKAGE/" 2.16 -WGET_URL="http://mirror.ctan.org/systems/$PACKAGE/tlnet/$VERSION/$TARBALL" 2.17 -ROOT="$1" 2.18 - 2.19 -# Check if we are root 2.20 -if test $(id -u) != 0 ; then 2.21 - echo -e "\nYou must be root to run `basename $0`." 2.22 - echo -e "Please use 'su' and root password to become super-user.\n" 2.23 - exit 0 2.24 -fi 2.25 - 2.26 -# Avoid reinstall 2.27 -if [ -d $ROOT/var/lib/tazpkg/installed/$PACKAGE ]; then 2.28 - echo -e "\n$PKG package is already installed.\n" 2.29 - exit 0 2.30 -fi 2.31 - 2.32 -# We need softwares. 2.33 -for pkg in $DEPENDS 2.34 -do 2.35 - if [ ! -d /var/lib/tazpkg/installed/$pkg ]; then 2.36 - tazpkg get-install $pkg 2.37 - fi 2.38 -done 2.39 - 2.40 - 2.41 -# Make working directory 2.42 -TMP=/tmp/$(basename $0)$$ 2.43 -mkdir -p $TMP 2.44 -TOP=$PWD 2.45 -cd $TMP 2.46 - 2.47 -# Get files 2.48 -echo -e "\033[1;33m Getting $PACKAGE install script\033[0m" 2.49 -wget $WGET_URL 2.50 -tar -xzf $TARBALL 2.51 - 2.52 - 2.53 -# launch texlive install script 2.54 -echo -e "\033[1;33m Launching $PACKAGE install script\033[0m" 2.55 -cd $SOURCE 2.56 -PREFIX="$PACKAGE-$VERSION/fs/usr/local/$PACKAGE" 2.57 -mkdir -p $PREFIX 2.58 - 2.59 -cat > slitaz.profile <<EOT 2.60 -# slitaz profile for texlive 2.61 -# we only want the minimum 2.62 - 2.63 -selected_scheme scheme-minimal 2.64 -TEXDIR $PACKAGE-$VERSION/fs/usr/local/texlive/$VERSION 2.65 -TEXDIRW $PACKAGE-$VERSION/fs/usr/local/texlive/$VERSION 2.66 -TEXMFHOME ~/.texmf 2.67 -TEXMFLOCAL $PACKAGE-$VERSION/fs/usr/local/texlive/texmf-local 2.68 -TEXMFSYSCONFIG $PACKAGE-$VERSION/fs/usr/local/texlive/$VERSION/texmf-config 2.69 -TEXMFSYSVAR $PACKAGE-$VERSION/fs/usr/local/texlive/$VERSION/texmf-var 2.70 -collection-basic 1 2.71 -option_doc 0 2.72 -option_fmt 1 2.73 -option_letter 0 2.74 -option_src 0 2.75 -option_symlinks 0 2.76 -EOT 2.77 - 2.78 -# some mirrors are too slow, if so, add this option: 2.79 -# -location ftp://ftp.inria.fr/pub/TeX/CTAN/systems/texlive/tlnet/2008/ 2.80 -./install-tl -profile slitaz.profile 2.81 - 2.82 - 2.83 -# Creat receipt 2.84 -cat > $PACKAGE-$VERSION/receipt <<EOT 2.85 -# SliTaz package receipt. 2.86 - 2.87 -PACKAGE="$PACKAGE" 2.88 -VERSION="$VERSION" 2.89 -CATEGORY="$CATEGORY" 2.90 -SHORT_DESC="$SHORT_DESC" 2.91 -DEPENDS="$DEPENDS" 2.92 -WEB_SITE="$WEB_SITE" 2.93 - 2.94 -post_install() 2.95 -{ 2.96 - # add texlive dir to PATH. 2.97 - if ! grep -q "/usr/local/\$PACKAGE/\$VERSION/bin/i386-linux/" /etc/profile 2.98 - then 2.99 - echo "adding /usr/local/\$PACKAGE/\$VERSION/bin/i386-linux/ to PATH" 2.100 - cp /etc/profile /etc/profile.old 2.101 - sed "/^PATH=\"/ aPATH=\"/usr/local/\$PACKAGE/\$VERSION/bin/i386-linux/:\\\$PATH\"" \ 2.102 -/etc/profile >> profile 2.103 - mv profile /etc/profile 2.104 - fi 2.105 - 2.106 - echo -e " 2.107 - 2.108 -\033[1;33m - A texlive minimal scheme is now installed - \033[0m 2.109 - 2.110 -Verify that \033[1mPATH\033[0m is well formatted in /etc/profile, 2.111 -and contain \033[1m/usr/local/\$PACKAGE/\$VERSION/bin/i386-linux/\033[0m 2.112 - 2.113 -To improve texlive, run \033[1mtlmgr\033[0m as root. 2.114 -If you prefer graphicals interfaces, install perl-tk, 2.115 -and run\033[1m tlmgr gui\033[0m. 2.116 - 2.117 -The tlmgr man page can be found here: 2.118 -http://tug.org/texlive/doc/tlmgr.html 2.119 -" 2.120 -} 2.121 -EOT 2.122 - 2.123 - 2.124 -# Pack 2.125 -tazpkg pack $PACKAGE-$VERSION 2.126 - 2.127 - 2.128 -CONFIRM="y" 2.129 -if [ -z "$ROOT" ]; then 2.130 - echo -n "\nPlease confirm installation of $PACKAGE-$VERSION (y/N): " 2.131 - read CONFIRM 2.132 -fi 2.133 -if [ $CONFIRM = "y" ] 2.134 - then 2.135 - # Install pseudo package 2.136 - tazpkg install $PACKAGE-$VERSION.tazpkg --root=$ROOT 2.137 -fi 2.138 - 2.139 -# Clean 2.140 -cd $TOP 2.141 -rm -rf $TMP 2.142 - 2.143 -exit 0