aboutsummaryrefslogtreecommitdiffstats
path: root/print/tgif2tex
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2008-05-31 17:35:15 +0800
committerhrs <hrs@FreeBSD.org>2008-05-31 17:35:15 +0800
commit93c83ebf8bb230f9c3b940febd1921039c5139b1 (patch)
tree68797adf02fa0050f9eed71ad6ab2120dd95c0e4 /print/tgif2tex
parent8d6815a62cc8795585539644020257655da2e1ca (diff)
downloadfreebsd-ports-gnome-93c83ebf8bb230f9c3b940febd1921039c5139b1.tar.gz
freebsd-ports-gnome-93c83ebf8bb230f9c3b940febd1921039c5139b1.tar.zst
freebsd-ports-gnome-93c83ebf8bb230f9c3b940febd1921039c5139b1.zip
- Use $PLIST_FILES and $PORTDOCS to simplify the port.
- Remove 00readme. - Remove a duplicated line in patch-tgif2tex. - Add s,#!/usr/bin/perl,${PERL}, replacement.
Diffstat (limited to 'print/tgif2tex')
-rw-r--r--print/tgif2tex/Makefile9
-rw-r--r--print/tgif2tex/files/00readme8
-rw-r--r--print/tgif2tex/files/patch-tgif2tex9
-rw-r--r--print/tgif2tex/pkg-plist28
4 files changed, 9 insertions, 45 deletions
diff --git a/print/tgif2tex/Makefile b/print/tgif2tex/Makefile
index 0b5d81bc955c..2f8c600d9934 100644
--- a/print/tgif2tex/Makefile
+++ b/print/tgif2tex/Makefile
@@ -7,7 +7,7 @@
PORTNAME= tgif2tex
PORTVERSION= 2.13
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES+= print
MASTER_SITES= http://www.cs.hiroshima-u.ac.jp/~nakano/tgif2tex/
@@ -16,7 +16,8 @@ COMMENT= Converting texts in figure by tgif to LaTeX commands
USE_PERL5_RUN= yes
-DOCSRC= how-to-use.aux how-to-use.dvi \
+PLIST_FILES= bin/tgif2tex
+PORTDOCS= how-to-use.aux how-to-use.dvi \
how-to-use.log how-to-use.ps how-to-use.tex \
example.obj example.tex \
original.dps original.tps \
@@ -31,14 +32,14 @@ DOCSRC= how-to-use.aux how-to-use.dvi \
do-build:
${REINPLACE_CMD} \
-e "s,%%LOCALBASE%%,${LOCALBASE}," \
+ -e "s,^#!/usr/bin/perl,#!${PERL}," \
${WRKSRC}/tgif2tex
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/tgif2tex ${PREFIX}/bin/tgif2tex
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
- cd ${WRKSRC}; ${INSTALL_DATA} ${DOCSRC} ${DOCSDIR};
- ${INSTALL_DATA} ${FILESDIR}/00readme ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/print/tgif2tex/files/00readme b/print/tgif2tex/files/00readme
deleted file mode 100644
index 005039229ce9..000000000000
--- a/print/tgif2tex/files/00readme
+++ /dev/null
@@ -1,8 +0,0 @@
-Please execute the following commands for example.
-
-(1) cd /usr/local/share/doc/tgif2tex
-(2) tgif2tex example.obj
-(3) latex example.tex
-(4) xdvi example.tex
-
--- S. Taoka
diff --git a/print/tgif2tex/files/patch-tgif2tex b/print/tgif2tex/files/patch-tgif2tex
index 3b24e1af4fd2..c6a1aa001c95 100644
--- a/print/tgif2tex/files/patch-tgif2tex
+++ b/print/tgif2tex/files/patch-tgif2tex
@@ -1,6 +1,6 @@
---- tgif2tex.orig Fri Nov 28 20:53:07 2003
-+++ tgif2tex Sat Jul 30 20:31:46 2005
-@@ -44,11 +44,14 @@
+--- tgif2tex.orig 2003-11-28 20:53:07.000000000 +0900
++++ tgif2tex 2008-05-31 18:28:11.000000000 +0900
+@@ -44,11 +44,13 @@
# Aug 5, 2002 font size bug fixed (Version 2.12)
# Aug 5, 2002 bug in handling BOX fixed (Version 2.13 thanks Mr. Tsuchimura)
@@ -10,7 +10,6 @@
-$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%%';
-+$LOCALBASE='%%LOCALBASE%%';
+
+$latex_command="${LOCALBASE}/bin/platex"; # latex command in your site.
+$dvips_command="${LOCALBASE}/bin/dvips";
@@ -20,7 +19,7 @@
$version='tgif2tex version 2.13';
$copyright='Copyright (C) 1994-2003 Koji Nakano';
-@@ -106,8 +109,8 @@
+@@ -106,8 +108,8 @@
$slitex=0; # 1 if slitex
$pt='11pt';
$size18=0;
diff --git a/print/tgif2tex/pkg-plist b/print/tgif2tex/pkg-plist
deleted file mode 100644
index 8b65941aeae4..000000000000
--- a/print/tgif2tex/pkg-plist
+++ /dev/null
@@ -1,28 +0,0 @@
-bin/tgif2tex
-%%PORTDOCS%%%%DOCSDIR%%/00readme
-%%PORTDOCS%%%%DOCSDIR%%/how-to-use.aux
-%%PORTDOCS%%%%DOCSDIR%%/how-to-use.dvi
-%%PORTDOCS%%%%DOCSDIR%%/how-to-use.log
-%%PORTDOCS%%%%DOCSDIR%%/how-to-use.ps
-%%PORTDOCS%%%%DOCSDIR%%/how-to-use.tex
-%%PORTDOCS%%%%DOCSDIR%%/example.obj
-%%PORTDOCS%%%%DOCSDIR%%/example.tex
-%%PORTDOCS%%%%DOCSDIR%%/original.dps
-%%PORTDOCS%%%%DOCSDIR%%/original.tps
-%%PORTDOCS%%%%DOCSDIR%%/pythagoras.dps
-%%PORTDOCS%%%%DOCSDIR%%/pythagoras.tps
-%%PORTDOCS%%%%DOCSDIR%%/sample1.obj
-%%PORTDOCS%%%%DOCSDIR%%/sample1.ps
-%%PORTDOCS%%%%DOCSDIR%%/sample2.1.dps
-%%PORTDOCS%%%%DOCSDIR%%/sample2.1.tps
-%%PORTDOCS%%%%DOCSDIR%%/sample2.2.dps
-%%PORTDOCS%%%%DOCSDIR%%/sample2.2.tps
-%%PORTDOCS%%%%DOCSDIR%%/sample2.3.dps
-%%PORTDOCS%%%%DOCSDIR%%/sample2.3.tps
-%%PORTDOCS%%%%DOCSDIR%%/sample2.aux
-%%PORTDOCS%%%%DOCSDIR%%/sample2.dvi
-%%PORTDOCS%%%%DOCSDIR%%/sample2.log
-%%PORTDOCS%%%%DOCSDIR%%/sample2.tex
-%%PORTDOCS%%%%DOCSDIR%%/sample2.obj
-%%PORTDOCS%%%%DOCSDIR%%/sample2.ps
-%%PORTDOCS%%@dirrm %%DOCSDIR%%