aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2005-07-30 19:35:44 +0800
committerhrs <hrs@FreeBSD.org>2005-07-30 19:35:44 +0800
commit8da61c09d2bc5c24f84f46652bbaf0434103fb8d (patch)
treeabe247ffe8d0df35ddfa4e1f35b8c0716d65a51d /print
parentde2faabae2408c05f49e1737526f17a0ca33a2b4 (diff)
downloadfreebsd-ports-gnome-8da61c09d2bc5c24f84f46652bbaf0434103fb8d.tar.gz
freebsd-ports-gnome-8da61c09d2bc5c24f84f46652bbaf0434103fb8d.tar.zst
freebsd-ports-gnome-8da61c09d2bc5c24f84f46652bbaf0434103fb8d.zip
- Fix hardcoded paths.
- s/\mc/\mcfamily/ and s/\gt/\gtfamily/ in the main script. PR: ports/81944
Diffstat (limited to 'print')
-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;