source: trunk/dports/tex/pTeX/files/patch-2extract-src.sh.diff @ 76865

Last change on this file since 76865 was 76865, checked in by takanori@…, 9 years ago

pTeX:

  • upgrade dvipdfmx to the snapshot 20110311
  • misc fixes / improvements
File size: 4.3 KB
  • ./2extract-src.sh

    old new  
    1414fi
    1515
    1616PTEXENC=$SRC/texk/ptexenc/patches
    17 GSNOEMBED="-dNOKANJI -c '.setpdfwrite << /NeverEmbed [/Courier /Courier-Bold /Courier-Oblique /Courier-BoldOblique /Helvetica /Helvetica-Bold /Helvetica-Oblique /Helvetica-BoldOblique /Times-Roman /Times-Bold /Times-Italic /Times-BoldItalic /Symbol /ZapfDingbats /Ryumin-Light /GothicBBB-Medium] >> setdistillerparams'"
    1817
    1918## start
    2019test -z "$TEXSRC_EXTRACTED" \
     
    4645    || perlprint 's/LRa/LRat/' $SRC/texk/kpathsea/mktexlsr
    4746rm $PTETEX_TMP
    4847
    49 # epstopdf no embed fonts
    50 perlprint "s/OutputFilename -/OutputFilename \\\$GSNOEMBED -/;
    51         print \"### no embed fonts\nmy \\\$GSNOEMBED=\\\"$GSNOEMBED\\\";\n\n\"
    52         if /option BoundingBox types/" \
    53     $SRC/texk/tetex/epstopdf
    5448# add --nostop option: don't stop even if a map file is not found
    5549cpatch archive/updmap-nostop.patch     0 $SRC/texk/tetex
    5650# ebb patch (+ArtBox)
     
    9993tarx archive/ptex-src-3.1.10.tar.gz $SRC/texk/web2c
    10094mv $SRC/texk/web2c/ptex-src-* $SRC/texk/web2c/ptex || exit
    10195cpatch $PTEXENC/ptex-src-3.1.10-ptexenc.patch     1 $SRC/texk/web2c/ptex
     96cpatch archive/ptex-src-3.1.10-forum327.patch     0 $SRC/texk/web2c/ptex
     97cpatch archive/ptex-src-3.1.10-forum407.patch     0 $SRC/texk/web2c/ptex
     98cpatch archive/ptex-src-3.1.10-forum416.patch     0 $SRC/texk/web2c/ptex
     99cpatch archive/ptex-src-3.1.10-forum422.patch     0 $SRC/texk/web2c/ptex
     100cpatch archive/ptex-src-3.1.10-forum431.patch     0 $SRC/texk/web2c/ptex
    102101# comment out TEXINPUTS.platex (not to be erased by mkconf)
    103102perlprint 's/^(TEXINPUTS.platex)/% \1/g' $SRC/texk/kpathsea/texmf.in
    104103# rewrite 'platex2e_inputs' macro
     
    133128cpatch $PTEXENC/makejvf-1.1a-ptexenc.patch 1 $SRC/texk/makejvf
    134129
    135130## for dvipdfmx
    136 tarx archive/dvipdfmx-20070409.tar.gz $SRC/texk
     131tarx archive/dvipdfmx-20110311.tar.gz $SRC/texk
    137132mv $SRC/texk/dvipdfmx-* $SRC/texk/dvipdfmx || exit
    138 perlprint "s/ cid-x.map\$/ kanjix.map/g;
    139         s|^%(D  \"gs .*%o) (%i .*\")|\1 $GSNOEMBED -f \2|" \
    140     $SRC/texk/dvipdfmx/data/config/dvipdfmx.cfg
    141 $RM $SRC/texk/dvipdfmx/data/config/cid-x.map
     133perlprint "s/ cid-x.map\$/ kanjix.map/g" $SRC/texk/dvipdfmx/data/dvipdfmx.cfg
     134$RM $SRC/texk/dvipdfmx/data/cid-x.map
    142135perlnoprint "print unless /cid-x/" $SRC/texk/dvipdfmx/data/Makefile.in
    143136
    144137
     
    152145#tarx archive/dvipsk-jpatch-p1.7a.tar.gz          $SRC/texk/${P}dvipsk
    153146#cpatch $SRC/texk/${P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${P}dvipsk
    154147$CP $SRC/texk/${P}dvipsk/Makefile.in $SRC/texk/${P}dvipsk/Makefile.in.tetex
    155 tarx archive/dvipsk-5.96-p1.7b.tar.gz                $SRC/texk/${P}dvipsk
    156 cpatch $SRC/texk/${P}dvipsk/dvipsk-5.96-p1.7b.diff 1 $SRC/texk/${P}dvipsk
     148tarx archive/dvipsk-5.97-p1.7b-20090509.tar.gz       $SRC/texk/${P}dvipsk
     149cpatch $SRC/texk/${P}dvipsk/dvipsk-5.97-p1.7b.diff 1 $SRC/texk/${P}dvipsk
    157150## disable installing 'config.ps'
    158151$CP $SRC/texk/${P}dvipsk/Makefile.in       $SRC/texk/${P}dvipsk/Makefile.in.jp
    159152$CP $SRC/texk/${P}dvipsk/Makefile.in.tetex $SRC/texk/${P}dvipsk/Makefile.in
     
    255248# Fix xpdf integer overflow CVE-2007-3387 (impoted from tetex-3.0-35.fc6)
    256249cpatch security/tetex-3.0-CVE-2007-3387.patch      1 $SRC
    257250
     251cpatch security/bibtex-CVE-2009-1284.diff          1 $SRC
     252cpatch security/jbibtex-CVE-2009-1284.diff         1 $SRC
     253#cpatch security/dvipsk-CVE-2010-0739.diff         1 $SRC
     254cpatch security/dvipsk-CVE-2010-0827.diff          1 $SRC
     255cpatch security/dvipsk-CVE-2010-1440.diff          1 $SRC
     256cpatch security/dvipng-CVE-2010-0829.diff          1 $SRC
     257
    258258#exit # uncomment if 'mktemp' command doesn't exist
    259259# Don't use PID for temporary file names in scripts. (impoted from FC4)
    260260cpatch security/tetex-3.0-badscript.patch          1 $SRC
     
    263258
    264259
    265260## check
    266 cat md5sum/texsrc.$JAPANESE | (cd $SRC; md5check) && exit
     261if cat md5sum/texsrc.$JAPANESE | (cd $SRC; md5check); then
     262    cpatch archive/dvipng-tiger-#18254.diff        1 $SRC
     263    cpatch archive/xdvik-tiger-#18254.diff         1 $SRC
     264    cpatch archive/xdvi-jisb.diff                  1 $SRC
     265    cpatch archive/dvipdfm-png14.diff              1 $SRC
     266    cpatch archive/getline-lion.diff               1 $SRC
     267    exit
     268fi
    267269cat <<EOF
    268270
    269271$0: Some processes were performed improperly.
Note: See TracBrowser for help on using the repository browser.