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

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

pTeX: update dvipdfmx to snapshot 20090501

File size: 2.8 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)
     
    133127cpatch $PTEXENC/makejvf-1.1a-ptexenc.patch 1 $SRC/texk/makejvf
    134128
    135129## for dvipdfmx
    136 tarx archive/dvipdfmx-20070409.tar.gz $SRC/texk
     130tarx archive/dvipdfmx-20090501.tar.gz $SRC/texk
    137131mv $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
     132perlprint "s/ cid-x.map\$/ kanjix.map/g" $SRC/texk/dvipdfmx/data/dvipdfmx.cfg
     133$RM $SRC/texk/dvipdfmx/data/cid-x.map
    142134perlnoprint "print unless /cid-x/" $SRC/texk/dvipdfmx/data/Makefile.in
    143135
    144136
     
    152144#tarx archive/dvipsk-jpatch-p1.7a.tar.gz          $SRC/texk/${P}dvipsk
    153145#cpatch $SRC/texk/${P}dvipsk/dvipsk-p1.7a.patch 1 $SRC/texk/${P}dvipsk
    154146$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
     147tarx archive/dvipsk-5.97-p1.7b.tar.gz                $SRC/texk/${P}dvipsk
     148cpatch $SRC/texk/${P}dvipsk/dvipsk-5.97-p1.7b.diff 1 $SRC/texk/${P}dvipsk
     149cpatch archive/dvipsk-lastext-boundcheck.diff      1 $SRC
    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
     
    263255
    264256
    265257## check
    266 cat md5sum/texsrc.$JAPANESE | (cd $SRC; md5check) && exit
     258if cat md5sum/texsrc.$JAPANESE | (cd $SRC; md5check); then
     259    cpatch archive/dvipng-tiger-#18254.diff        1 $SRC
     260    cpatch archive/xdvik-tiger-#18254.diff         1 $SRC
     261    exit
     262fi
    267263cat <<EOF
    268264
    269265$0: Some processes were performed improperly.
Note: See TracBrowser for help on using the repository browser.