aboutsummaryrefslogtreecommitdiff
path: root/print/tgif2tex
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2005-07-30 11:35:44 +0000
committerHiroki Sato <hrs@FreeBSD.org>2005-07-30 11:35:44 +0000
commit8c624b12018d733f108c62beca40f69fbdbc67d1 (patch)
treedc4754f23e5507e048fe80422a6a7adf4b19df57 /print/tgif2tex
parent80d009be80a4f439740b4b403979134c1c15d974 (diff)
- Fix hardcoded paths.
- s/\mc/\mcfamily/ and s/\gt/\gtfamily/ in the main script. PR: ports/81944
Notes
Notes: svn path=/head/; revision=140468
Diffstat (limited to 'print/tgif2tex')
-rw-r--r--print/tgif2tex/Makefile13
-rw-r--r--print/tgif2tex/files/patch-tgif2tex33
2 files changed, 40 insertions, 6 deletions
diff --git a/print/tgif2tex/Makefile b/print/tgif2tex/Makefile
index c754ced1ed9c..5e82535f4207 100644
--- a/print/tgif2tex/Makefile
+++ b/print/tgif2tex/Makefile
@@ -7,13 +7,15 @@
PORTNAME= tgif2tex
PORTVERSION= 2.13
+PORTREVISION= 1
CATEGORIES+= print
MASTER_SITES= http://www.fse.hiroshima-u.ac.jp/~nakano/tgif2tex/
MAINTAINER= hrs@FreeBSD.org
COMMENT= Converting texts in figure by tgif to LaTeX commands
-USE_PERL5= yes
+USE_PERL5_RUN= yes
+USE_REINPLACE= yes
DOCSRC= how-to-use.aux how-to-use.dvi \
how-to-use.log how-to-use.ps how-to-use.tex \
@@ -28,11 +30,10 @@ DOCSRC= how-to-use.aux how-to-use.dvi \
sample2.tex sample2.obj sample2.ps
do-build:
- @cd ${WRKSRC}; ${MV} tgif2tex tgif2tex.org; \
- ${SED} -e 's,/usr/local/X11R6/bin/tgif,${X11BASE}/bin/tgif,' \
- -e 's;^#! */usr/bin/perl *;#!${PERL5};' \
- -e 's,/usr/local,${PREFIX},' \
- tgif2tex.org > tgif2tex
+ ${REINPLACE_CMD} \
+ -e "s,%%LOCALBASE%%,${LOCALBASE}," \
+ -e "s,%%X11BASE%%,${X11BASE}," \
+ ${WRKSRC}/tgif2tex
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/tgif2tex ${PREFIX}/bin/tgif2tex
diff --git a/print/tgif2tex/files/patch-tgif2tex b/print/tgif2tex/files/patch-tgif2tex
new file mode 100644
index 000000000000..b9aee146d01d
--- /dev/null
+++ b/print/tgif2tex/files/patch-tgif2tex
@@ -0,0 +1,33 @@
+--- tgif2tex.orig Fri Nov 28 20:53:07 2003
++++ tgif2tex Sat Jul 30 20:31:46 2005
+@@ -44,11 +44,14 @@
+ # Aug 5, 2002 font size bug fixed (Version 2.12)
+ # Aug 5, 2002 bug in handling BOX fixed (Version 2.13 thanks Mr. Tsuchimura)
+
+-$latex_command='/usr/bin/platex'; # latex command in your site.
+-$dvips_command='/usr/bin/pdvips';
+-$tgif_command='/usr/X11R6/bin/tgif';
+-$pnm_command='/usr/bin/gs -sDEVICE=pnmraw -sOutputFile=- -sNOPAUSE -dBATCH -q -r400';
+-$convert_command='/usr/bin/pnmcrop | /usr/bin/pnmmargin -white 10 | /usr/bin/convert - ';
++$LOCALBASE='%%LOCALBASE%%';
++$X11BASE='%%X11BASE%%';
++
++$latex_command="${LOCALBASE}/bin/platex"; # latex command in your site.
++$dvips_command="${LOCALBASE}/bin/dvips";
++$tgif_command="${X11BASE}/bin/tgif";
++$pnm_command="${LOCALBASE}/bin/gs -sDEVICE=pnmraw -sOutputFile=- -sNOPAUSE -dBATCH -q -r400";
++$convert_command="${LOCALBASE}/bin/pnmcrop | ${LOCALBASE}/bin/pnmmargin -white 10 | ${LOCALBASE}/bin/convert - ";
+
+ $version='tgif2tex version 2.13';
+ $copyright='Copyright (C) 1994-2003 Koji Nakano';
+@@ -106,8 +109,8 @@
+ $slitex=0; # 1 if slitex
+ $pt='11pt';
+ $size18=0;
+-$ryumin='\\mc';
+-$gothic='\\gt';
++$ryumin='\\mcfamily';
++$gothic='\\gtfamily';
+ $article='jarticle';
+ $eps=0;
+ $ps=0;