[36009] trunk/dports/tex/pTeX

takanori at macports.org takanori at macports.org
Mon Apr 14 03:48:36 PDT 2008


Revision: 36009
          http://trac.macosforge.org/projects/macports/changeset/36009
Author:   takanori at macports.org
Date:     2008-04-14 03:48:36 -0700 (Mon, 14 Apr 2008)

Log Message:
-----------
pTeX: Version bump to 20080411.

Modified Paths:
--------------
    trunk/dports/tex/pTeX/Portfile
    trunk/dports/tex/pTeX/files/patch-7font-search.sh.diff

Added Paths:
-----------
    trunk/dports/tex/pTeX/files/patch-8test.sh.diff
    trunk/dports/tex/pTeX/files/patch-common.sh.diff

Modified: trunk/dports/tex/pTeX/Portfile
===================================================================
--- trunk/dports/tex/pTeX/Portfile	2008-04-14 10:45:59 UTC (rev 36008)
+++ trunk/dports/tex/pTeX/Portfile	2008-04-14 10:48:36 UTC (rev 36009)
@@ -3,7 +3,7 @@
 PortSystem      1.0
 
 name            pTeX
-version         20071212
+version         20080411
 epoch           ${version}
 categories      tex print textproc japanese
 maintainers     takanori
@@ -35,16 +35,16 @@
                 tetex-texmf-3.0po.tar.gz:tetex \
                 ${distname}${extract.suffix}:ptetex3 \
                 cmap-gs861.tar.gz:cmap
-patchfiles      patch-7font-search.sh.diff
+patchfiles      patch-7font-search.sh.diff patch-8test.sh.diff patch-common.sh.diff
 checksums       tetex-src-3.0.tar.gz md5 944a4641e79e61043fdaf8f38ecbb4b3 \
                                      sha1 7637789f7f4929694aed1b89820f5bad4753e8fc \
                                      rmd160 15a139f5f36993e4ed3583260e175cfb13ce7bcc \
                 tetex-texmf-3.0po.tar.gz md5 ed9d30d9162d16ac8d5065cde6e0f6fa \
                                          sha1 1be97f57a26a6e9b72ebfd932e45914a959aff16 \
                                          rmd160 a1e87733fa3cbef04e39a690ed8549aeaaddb241 \
-                ${distname}${extract.suffix} md5 2447b729bb4ff2248a70e8ec45539ca0 \
-                                             sha1 835a527eef9ef11d7025b6072416c4d56b7d739b \
-                                             rmd160 b2adc437ae318da4edb05d736d5798dd754e0df2 \
+                ${distname}${extract.suffix} md5 eb94d718009ccb02a4c75c56e6aac220 \
+                                             sha1 86cca86644c9f4d5dbd8457c026e2d66bd27fde7 \
+                                             rmd160 d9a594b9fd658ed833e5454b14c874f85d267e94 \
                 cmap-gs861.tar.gz md5 1cc7b05a1628aaeb2624edae9c6c4731 \
                                   sha1 eeca963c97e4dcd006daf7fa9193629f759a5855 \
                                   rmd160 f38d89bbebd77ad9073b94ea6d77f40c35ce7238
@@ -68,10 +68,10 @@
                 port:texinfo
 
 if {![variant_isset euc] && ![variant_isset sjis] && ![variant_isset utf8]} {
-    default_variants	+euc
+    default_variants    +euc
 }
 if {![variant_isset nox11] && ![variant_isset motif] && ![variant_isset xaw] && ![variant_isset xaw3d] && ![variant_isset nextaw]} {
-    default_variants	+motif
+    default_variants    +motif
 }
 
 extract.only    ${distname}${extract.suffix}
@@ -136,7 +136,11 @@
                          Jun101-Light     HiraMaruPro-W4.otf} {
         reinplace "s|${mori}|${hira}|g" ${destroot}${prefix}/share/texmf/fonts/map/dvipdfm/morisawa-hiraginoEmbed.map
     }
-    reinplace "s|^\\(KanjiMap morisawa.map\\)$|\\1\\\n#! KanjiMap morisawa-hiraginoEmbed.map|" ${destroot}${prefix}/share/texmf-config/web2c/updmap.cfg
+    foreach d {texmf texmf-config} {
+        if {[file exists ${destroot}${prefix}/share/${d}/web2c/updmap.cfg]} {
+            reinplace "s|^\\(KanjiMap morisawa.map\\)$|\\1\\\n#! KanjiMap morisawa-hiraginoEmbed.map|" ${destroot}${prefix}/share/${d}/web2c/updmap.cfg
+        }
+    }
 
     # I would like to keep this backward compatibility for a while.
     system "cd ${destroot}${prefix} && patch -p0 < ${filespath}/oldfmtfiles.diff"

Modified: trunk/dports/tex/pTeX/files/patch-7font-search.sh.diff
===================================================================
--- trunk/dports/tex/pTeX/files/patch-7font-search.sh.diff	2008-04-14 10:45:59 UTC (rev 36008)
+++ trunk/dports/tex/pTeX/files/patch-7font-search.sh.diff	2008-04-14 10:48:36 UTC (rev 36009)
@@ -1,6 +1,6 @@
---- ./7font-search.sh.orig	2007-12-03 00:43:41.000000000 +0900
-+++ ./7font-search.sh	2007-12-12 21:24:04.000000000 +0900
-@@ -101,37 +101,8 @@
+--- ./7font-search.sh.orig	2008-04-06 22:29:23.000000000 +0900
++++ ./7font-search.sh	2008-04-13 00:07:49.000000000 +0900
+@@ -109,39 +109,8 @@
  
  # -----------------------------------
  
@@ -27,6 +27,8 @@
 -ja        /usr/share/fonts/ja/TrueType
 -japanese  /usr/share/fonts/japanese/TrueType
 -QtPalmtop /opt/QtPalmtop/lib/X11/fonts/TrueType
+-f8sazanami-min  /usr/share/fonts/sazanami-fonts-mincho
+-f8sazanami-goth /usr/share/fonts/sazanami-fonts-gothic
 -EOF
 -
 -mksymlink $OPENTYPE <<EOF
@@ -40,7 +42,7 @@
  
  if test -d /System/Library/Fonts; then # Mac OS X
  LC_ALL=ja_JP.UTF-8
-@@ -142,17 +113,12 @@
+@@ -152,17 +121,12 @@
  HiraKakuPro-W6.otf {,/System}"/Library/Fonts/\xA5ҥ饮\xA5γѥ\xB4 Pro W6.otf"
  HiraKakuStd-W8.otf {,/System}"/Library/Fonts/\xA5ҥ饮\xA5γѥ\xB4 Std W8.otf"
  HiraMaruPro-W4.otf {,/System}"/Library/Fonts/\xA5ҥ饮\xA5δݥ\xB4 Pro W4.otf"

Added: trunk/dports/tex/pTeX/files/patch-8test.sh.diff
===================================================================
--- trunk/dports/tex/pTeX/files/patch-8test.sh.diff	                        (rev 0)
+++ trunk/dports/tex/pTeX/files/patch-8test.sh.diff	2008-04-14 10:48:36 UTC (rev 36009)
@@ -0,0 +1,61 @@
+--- ./8test.sh.orig	2008-04-05 17:47:44.000000000 +0900
++++ ./8test.sh	2008-04-13 06:53:32.000000000 +0900
+@@ -191,58 +191,6 @@
+ ex $PXDVI   babeltestJIS.dvi
+ fi
+ 
+-# -dNOKANJI check for dvipdfmx
+-echo "-----------------------------"
+-echo "[-dNOKANJI] test"
+-cat <<EOF > dNOKANJI.tex
+-\documentclass[43pt]{jsarticle}
+-\setlength{\headsep}{-3em}
+-\usepackage{graphicx}
+-\begin{document}
+-\noindent {\tiny If char and EPS looks similar, OK.}
+-
+-\noindent
+-Char: {\Huge \xA4ѤԤ\xD7} \newline
+-\raisebox{3em}{EPS:~}
+-\includegraphics[clip,width=0.7\linewidth]{`pwd`/dNOKANJI.eps}
+-\end{document}
+-EOF
+-
+-cat <<EOF > dNOKANJI.eps
+-%!PS-Adobe-2.0
+-%%BoundingBox: 20 100 330 308
+-%%BeginProlog
+-/OurCharSet findfont 12 scalefont setfont
+-(a) stringwidth pop /mp_a_x exch def
+-%%EndProlog
+-save
+-gsave
+-560 11 mp_a_x mul div 306 18 div scale
+-4 7 translate 552 560 div 16 36 div scale
+-/Ryumin-Light-H findfont 14 scalefont setfont
+-0 13 moveto <2451> show
+-2 mp_a_x mul 13 moveto <2454> show
+-4 mp_a_x mul 13 moveto <2457> show
+-0 0 moveto <245a> show
+-2 mp_a_x mul 0 moveto <245d> show
+-4 mp_a_x mul 0 moveto <396c> show
+-grestore
+-restore
+-showpage
+-EOF
+-
+-nkfjis dNOKANJI.tex > /dev/null
+-$BIN/platex dNOKANJI.tex < /dev/null > /dev/null || catexit dNOKANJI.log
+-ex $PDVIPS  dNOKANJI.dvi
+-ex $PDVIPDF dNOKANJI.dvi
+-if test `wc -c < dNOKANJI.pdf` -gt 10000; then
+-    cat <<EOF
+-Warning: 'gs' seem to embed Japanese fonts in spite of '-dNOKANJI' option.
+-Check gs options in $TEXMF/dvipdfm/config/dvipdfmx.cfg.
+-We may need some additional patches for ghostscript.
+-EOF
+-fi
+-
+ # CVE-2007-0104 check for pdflatex
+ echo "-----------------------------"
+ echo "[CVE-2007-0104] test"

Added: trunk/dports/tex/pTeX/files/patch-common.sh.diff
===================================================================
--- trunk/dports/tex/pTeX/files/patch-common.sh.diff	                        (rev 0)
+++ trunk/dports/tex/pTeX/files/patch-common.sh.diff	2008-04-14 10:48:36 UTC (rev 36009)
@@ -0,0 +1,17 @@
+--- common.sh.orig	2008-04-05 17:51:07.000000000 +0900
++++ common.sh	2008-04-13 00:14:03.000000000 +0900
+@@ -218,14 +218,6 @@
+     if test "$UID" = 0; then
+ 	echo ""
+ 	echo "You are root."
+-	echo "It is RECOMMENDED to execute by a user."
+-	echo "Executing by root may cause SERIOUS DAMAGE for your system."
+-	echo -n "Are you sure to execute by root AT YOUR OWN RISK? (yes/NO) "
+-	read REPLY
+-	case $REPLY in
+-	    yes) ;;
+-	    *) exit 1;;
+-	esac
+     fi
+ }
+ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080414/281b9ba3/attachment.html


More information about the macports-changes mailing list