source: projects/specs/trunk/t/texlive/tl11supp-120120-vine.patch @ 5502

Revision 5502, 10.3 KB checked in by munepi, 12 years ago (diff)

updated texlive-vl.spec

  • texlive-2011/tl11/common.sh

    diff -up texlive-2011/tl11/common.sh.vine texlive-2011/tl11/common.sh
    old new  
    77TLSRCDIR=/opt/home-supp/tl11 
    88 
    99# temporaly working directory 
    10 TMPDIR=/tmp 
     10TMPDIR=$(dirname ${TLSRCDIR})/build 
    1111#TMPDIR=/var/tmp 
    1212 
    1313# the place of installed TeX Live 
    14 TLINSTDIR=/opt/texlive/2011 
     14TLINSTDIR=/usr/share/texlive-sources 
    1515#TLINSTDIR=/mnt/cd0a 
    1616 
    1717# install directory 
    18 PREFIX=/opt/texlive/p2011 
     18PREFIX=$(dirname ${TLSRCDIR})/work 
    1919 
    2020# toolkit for [p]xdvi 
    21 #TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=motif 
    22 TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=xaw 
     21TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=motif 
     22#TL_CONF_XDVI_TOOLKIT=--with-xdvi-x-toolkit=xaw 
    2323 
    24 TL_MAKE_FLAGS=-j3 
     24TL_MAKE_FLAGS=-j$(/usr/bin/getconf _NPROCESSORS_ONLN) 
    2525 
    2626TL_CONFIGURE_ARGS= 
    27 ## The following args are for generating binaries for tlptexlive 
    28 #TL_CONFIGURE_ARGS="--disable-all-pkgs --enable-web2c \ 
    29 #                   --disable-xdvipdfmx --disable-xetex \ 
    30 #                   --enable-web-progs --enable-dvipdfmx --enable-mendexk \ 
    31 #                   --enable-makejvf --enable-pxdvik --enable-dvipsk \ 
    32 #                   --enable-tetex --enable-texlive " 
     27## The following args are for generating binaries for Vine Linux 
     28TL_CONFIGURE_ARGS=" \ 
     29  --enable-shared --disable-static \ 
     30  --enable-compiler-warnings=max \ 
     31  --without-cxx-runtime-hack \ 
     32  \ 
     33  --enable-web2c \ 
     34  --enable-web-progs --enable-dvipdfmx --enable-mendexk \ 
     35  --enable-makejvf --enable-pxdvik --enable-dvipsk \ 
     36  --enable-tetex --enable-texlive \ 
     37  \ 
     38  --with-system-xpdf \ 
     39  --with-system-gd \ 
     40  --with-system-t1lib \ 
     41  --with-system-libpng \ 
     42  --with-system-zlib \ 
     43  --with-system-freetype2 --with-freetype2-include=`freetype-config --cflags | sed -e 's/-I//' -e 's/ .*//'` \ 
     44  --with-pic \ 
     45  --with-xdvi-x-toolkit=motif \ 
     46  \ 
     47  --disable-xindy --disable-xindy-docs --disable-xindy-make-rules \ 
     48  --disable-dvi2tty \ 
     49  --disable-t1utils --disable-psutils --disable-detex \ 
     50  --disable-dvipng --disable-lcdf-typetools \ 
     51" 
    3352 
    3453# for Ubuntu? 
    3554# CONFIG_SHELL=$BASH 
    TL_CONFIGURE_ARGS= 
    3857# -------------------------------- 
    3958unset TEXINPUTS 
    4059unset PTEX_KANJI_ENC 
     60[ -d $TMPDIR ] || mkdir -p $TMPDIR 
    4161TLV=`basename $TLSRCDIR/texlive-*-source.tar.xz |sed "s/texlive-\(........\).*/\1/"` 
    4262SRCDIR=$TMPDIR/texlive-$TLV-source 
    4363echo -e "\e[0;32m *** TeX Live source: texlive-$TLV-source.tar.xz ***\e[0m" 
    44 ARCH=`ls $SRCDIR/inst/bin/ 2> /dev/null` 
     64##ARCH=`ls $SRCDIR/inst/bin/ 2> /dev/null` 
    4565PTEX_IN_FILTER=no 
    4666TEXMF=$SRCDIR/inst/texmf 
    4767XMAP=$TEXMF/fonts/map/dvipdfmx 
    4868export TEXMFMAIN=$TEXMF 
    4969export ORIGPATH=$PATH 
    50 export PATH=$SRCDIR/inst/bin/$ARCH:$PATH 
     70export PATH=$SRCDIR/inst/bin:$PATH 
    5171export TL_CONF_XDVI_TOOLKIT TL_CONFIGURE_ARGS TL_MAKE_FLAGS 
    5272 
    5373sedwrite(){ 
  • texlive-2011/tl11/scripts/texmf.sh

    Diff finished.  Wed Nov 23 16:32:14 2011
    diff -up texlive-2011/tl11/scripts/texmf.sh.vine texlive-2011/tl11/scripts/texmf.sh
    old new  
    1 #!/bin/bash 
     1#!/bin/bash -x 
    22 
    33. ./common.sh $* 
    44 
    mv sample.* ../../../doc/platex/japanese 
    2929mv README ../../../doc/platex/japanese/ 
    3030cd ../../../.. 
    3131 
    32 # otf package 
    33 tarz $TLSRCDIR/ptex/otfbeta.zip 
    34 #if [ "$FLG_UP" = "TRUE" ] ;then 
    35 #    tar zxf $TLSRCDIR/uptex/otfstable-uptex-0.05.tar.gz 
    36 #fi 
    37 cd otfbeta 
    38 sedwrite mkjvf "s/ovp2ovf/wovp2ovf/" && chmod +x mkjvf 
    39 #if [ "$FLG_UP" = "TRUE" ] ;then 
    40 #    sedwrite umkjvf "s/'ovp2ovf/'wovp2ovf/" && chmod +x umkjvf 
    41 #fi 
    42 for x in script/*.pl; do sedwrite $x "s/ovp2ovf/wovp2ovf/"; chmod +x $x; done 
    43 ./makeotf 
    44 #if [ "$FLG_UP" = "TRUE" ] ;then 
    45 #    ./umakeotf 
    46 #fi 
    47 mkdir -p ../texmf/fonts/tfm/otf && cp tfm/*.tfm ../texmf/fonts/tfm/otf/ 
    48 mkdir -p ../texmf/fonts/vf/otf && cp vf/*.vf ../texmf/fonts/vf/otf/ 
    49 mkdir -p ../texmf/tex/latex/otf && cp sty/* ../texmf/tex/latex/otf 
    50 cd .. 
    51 rm -rf otfbeta 
     32# # otf package 
     33# tarz $TLSRCDIR/ptex/otfbeta.zip 
     34# #if [ "$FLG_UP" = "TRUE" ] ;then 
     35# #    tar zxf $TLSRCDIR/uptex/otfstable-uptex-0.05.tar.gz 
     36# #fi 
     37# cd otfbeta 
     38# sedwrite mkjvf "s/ovp2ovf/wovp2ovf/" && chmod +x mkjvf 
     39# #if [ "$FLG_UP" = "TRUE" ] ;then 
     40# #    sedwrite umkjvf "s/'ovp2ovf/'wovp2ovf/" && chmod +x umkjvf 
     41# #fi 
     42# for x in script/*.pl; do sedwrite $x "s/ovp2ovf/wovp2ovf/"; chmod +x $x; done 
     43# ./makeotf 
     44# #if [ "$FLG_UP" = "TRUE" ] ;then 
     45# #    ./umakeotf 
     46# #fi 
     47# mkdir -p ../texmf/fonts/tfm/otf && cp tfm/*.tfm ../texmf/fonts/tfm/otf/ 
     48# mkdir -p ../texmf/fonts/vf/otf && cp vf/*.vf ../texmf/fonts/vf/otf/ 
     49# mkdir -p ../texmf/tex/latex/otf && cp sty/* ../texmf/tex/latex/otf 
     50# cd .. 
     51# rm -rf otfbeta 
    5252fi 
    5353 
    5454echo -e "\e[0;33m[rewriting] \e[0m updmap.cfg" 
    echo "KanjiMap otf-cktx.map" >> texmf/we 
    5656(cd $XMAP && tarz $TLSRCDIR/ptex/ptexlive-maps-????????.tar.xz) 
    5757 
    5858# xdvi 
    59 if [ -f bin/$ARCH/pxdvi ]; then 
     59if [ -f bin/pxdvi ]; then 
    6060    cp ../texk/pxdvik/texmf/XDvi texmf/xdvi/XDvi 
    6161    cp ../texk/pxdvik/texmf/pxdvi.cfg texmf/xdvi/pxdvi.cfg 
    6262    cp $TLSRCDIR/xdvi-ptex.map.sample texmf/xdvi/ 
  • texlive-2011/tl11/scripts/build.sh

    Diff finished.  Sat Nov 26 15:34:13 2011
    diff -up texlive-2011/tl11/scripts/build.sh.vine texlive-2011/tl11/scripts/build.sh
    old new if [ "$FLG_RP" = "TRUE" ] ;then 
    77  zpatch 0 $TLSRCDIR/reautoconf-parallel.diff 
    88fi 
    99./reautoconf || exit 1 # ここで時間がかかる 
    10 TL_MAKE=$MAKE ./Build --enable-multiplatform --disable-native-texlive-build || exit 1 
     10##TL_MAKE=$MAKE ./Build --enable-multiplatform --disable-native-texlive-build || exit 1 
     11TL_MAKE=$MAKE ./Build --disable-multiplatform --disable-native-texlive-build || exit 1 
    1112 
     13exit 0 
     14## We run the following processes as scripts/build-post.sh.  
    1215# 
    1316. $TLSRCDIR/common.sh $* 
    1417 
  • new file texlive-2011/tl11/scripts/build-post.sh

    Diff finished.  Wed Nov 23 19:09:01 2011
    diff -up /dev/null texlive-2011/tl11/scripts/build-post.sh
    - +  
     1#!/bin/bash 
     2 
     3. ./common.sh $* 
     4 
     5cd $SRCDIR/inst 
     6cp -r texmf texmf.orig 
     7cp -r $TLINSTDIR/texmf .  
     8cp -r ../texk/tetex/updmap.pl texmf/scripts/tetex/ 
     9cp texmf.orig/web2c/fmtutil.cnf texmf/web2c/fmtutil.cnf  
     10cp texmf.orig/web2c/texmf.cnf texmf/web2c/texmf.cnf 
     11rm -rf texmf.orig 
     12 
     13# if [ "$FLG_UP" = "TRUE" ] ;then 
     14#   cd texmf 
     15#   zpatch 0 $TLSRCDIR/uptex/uptex-*-texmf-texlive2010.diff 
     16#   tarz $TLSRCDIR/uptex_font-*.tar.gz 
     17#   cd fonts/uptex_min/pl 
     18#   echo -e "\e[0;33m[building]  \e[0m umin7.tfm etc." 
     19#   $MAKE pl5 tfm5 vf5 &>/dev/null || exit 1 
     20#   cp u*.tfm ../../tfm/uptex/ 
     21#   cp u*.vf ../../vf/uptex/ 
     22#   cd ../../.. 
     23#   rm -rf fonts/uptex_jis fonts/uptex_upjis fonts/uptex_map  fonts/uptex_min  
     24#   cd .. 
     25# fi 
     26 
     27# map for dvipdfmx 
     28sedwrite texmf/dvipdfmx/dvipdfmx.cfg "s/cid-x.map/kanjix.map/" 
     29echo -e "\e[0;33m[rewriting] \e[0m updmap.cfg" 
     30cat <<EOF >> texmf/web2c/updmap.cfg || exit 
     31# 
     32# map for pTeX 
     33KanjiMap morisawa.map 
     34EOF 
     35 
     36 
     37ln -s $TLINSTDIR/tlpkg tlpkg 
     38 
     39exit 0 
     40 
     41 
     42###### 
     43if [ "$FLG_UP" = "TRUE" ] ;then 
     44  echo -e "\e[0;33m[rewriting] \e[0m updmap.cfg" 
     45  echo "KanjiMap uptex-ckt.map" >> texmf/web2c/updmap.cfg || exit 
     46  echo -e "\e[0;33m[writing]   \e[0m uptex-ckt.map" 
     47  cat <<EOF > $XMAP/uptex-ckt.map 
     48%% 
     49%% Chinese/Korean fonts for upTeX 
     50%% 
     51upstsl-h        UniGB-UTF16-H           !STSong-Light 
     52upstsl-v        UniGB-UTF16-V           !STSong-Light 
     53upstht-h        UniGB-UTF16-H           !STHeiti-Regular 
     54upstht-v        UniGB-UTF16-V           !STHeiti-Regular 
     55upmsl-h         UniCNS-UTF16-H          !MSung-Light 
     56upmsl-v         UniCNS-UTF16-V          !MSung-Light 
     57upmhm-h         UniCNS-UTF16-H          !MHei-Medium 
     58upmhm-v         UniCNS-UTF16-V          !MHei-Medium 
     59uphysmjm-h      UniKS-UTF16-H           !HYSMyeongJo-Medium 
     60uphysmjm-v      UniKS-UTF16-V           !HYSMyeongJo-Medium 
     61uphygt-h        UniKS-UTF16-H           !HYGoThic-Medium 
     62uphygt-v        UniKS-UTF16-V           !HYGoThic-Medium 
     63EOF 
     64  cp $TLSRCDIR/uptex/convbkmk.rb $SRCDIR/inst/bin/$ARCH/ 
     65fi 
  • texlive-2011/tl11/scripts/build-post.sh

    Diff finished.  Wed Nov 23 19:10:58 2011
    diff -up texlive-2011/tl11/scripts/build-post.sh.vine texlive-2011/tl11/scripts/build-post.sh
    old new  
    1 #!/bin/bash 
     1#!/bin/bash -x 
    22 
    33. ./common.sh $* 
    44 
    55cd $SRCDIR/inst 
    6 cp -r texmf texmf.orig 
    7 cp -r $TLINSTDIR/texmf .  
    8 cp -r ../texk/tetex/updmap.pl texmf/scripts/tetex/ 
    9 cp texmf.orig/web2c/fmtutil.cnf texmf/web2c/fmtutil.cnf  
    10 cp texmf.orig/web2c/texmf.cnf texmf/web2c/texmf.cnf 
    11 rm -rf texmf.orig 
     6[ -d texmf ] && tar cpf texmf-orig.tar texmf && mv texmf texmf.orig || exit 1 
     7[ -d $TLINSTDIR/texmf ] && cp -far $TLINSTDIR/texmf . || exit 1 
     8## cp -r ../texk/tetex/updmap.pl texmf/scripts/tetex/ 
     9## cp texmf.orig/web2c/fmtutil.cnf texmf/web2c/fmtutil.cnf  
     10## cp texmf.orig/web2c/texmf.cnf texmf/web2c/texmf.cnf 
     11[ -d texmf -a -d texmf.orig -a -f texmf-orig.tar ] && tar xpf texmf-orig.tar && rm -f texmf-orig.tar || exit 1 
     12## rm -rf texmf.orig 
    1213 
    1314# if [ "$FLG_UP" = "TRUE" ] ;then 
    1415#   cd texmf 
    KanjiMap morisawa.map 
    3435EOF 
    3536 
    3637 
    37 ln -s $TLINSTDIR/tlpkg tlpkg 
     38## ln -s $TLINSTDIR/tlpkg tlpkg 
     39cp -ra $TLINSTDIR/tlpkg tlpkg || exit 1 
    3840 
    3941exit 0 
    4042 
    uphysmjm-v UniKS-UTF16-V  
    6163uphygt-h        UniKS-UTF16-H           !HYGoThic-Medium 
    6264uphygt-v        UniKS-UTF16-V           !HYGoThic-Medium 
    6365EOF 
    64   cp $TLSRCDIR/uptex/convbkmk.rb $SRCDIR/inst/bin/$ARCH/ 
     66  cp $TLSRCDIR/uptex/convbkmk.rb $SRCDIR/inst/bin/ 
    6567fi 
  • texlive-2011/tl11/scripts/install.sh

    Diff finished.  Wed Nov 23 19:13:53 2011
    diff -up texlive-2011/tl11/scripts/install.sh.vine texlive-2011/tl11/scripts/install.sh
    old new cat <<EOF 
    3030Installation is finished. 
    3131Please set \$PATH:  
    3232 
    33   (sh/bash user):  export PATH=$PREFIX/bin/$ARCH:\$PATH 
    34   (csh/tcsh user): setenv PATH $PREFIX/bin/$ARCH:\$PATH 
     33  (sh/bash user):  export PATH=$PREFIX/bin:\$PATH 
     34  (csh/tcsh user): setenv PATH $PREFIX/bin:\$PATH 
    3535EOF 
    3636 
    3737exit 0 
Note: See TracBrowser for help on using the repository browser.