Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140912029
D53571.id165781.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
9 KB
Referenced Files
None
Subscribers
None
D53571.id165781.diff
View Options
diff --git a/textproc/tth/Makefile b/textproc/tth/Makefile
--- a/textproc/tth/Makefile
+++ b/textproc/tth/Makefile
@@ -1,35 +1,52 @@
PORTNAME= tth
-PORTVERSION= 4.03
-PORTREVISION= 5
+DISTVERSION= 4.16
CATEGORIES= textproc
-MASTER_SITES= http://hutchinson.belmont.ma.us/tth/tth-noncom/ \
- http://redundancy.redundancy.org/mirror/
-DISTNAME= tth_C
+MASTER_SITES= http://silas.psfc.mit.edu/tth/tars/
+DISTNAME= tthC
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= alven@FreeBSD.org
COMMENT= TeX to HTML translator
-WWW= http://hutchinson.belmont.ma.us/tth/
+WWW= http://silas.psfc.mit.edu/tth/
-RUN_DEPENDS= ppmtogif:graphics/netpbm
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/license.txt
+
+RUN_DEPENDS= bash:shells/bash \
+ ppmtogif:graphics/netpbm
USES= ghostscript:run shebangfix tar:tgz
-#USE_TEX= latex
-SHEBANG_FILES= Xfonts.fix
+
+SHEBANG_FILES= ${WRKSRC}/tthprep
+
+WRKSRC= ${WRKDIR}/tthgold
OPTIONS_DEFINE= DOCS
+OPTIONS_SUB= yes
+
+post-patch:
+ cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' \
+ tth.c tthprep *.html *.tex
do-build:
- cd ${WRKSRC}; ${CC} ${CFLAGS} tth.c -o tth -ll
+.for c in tth tthrfcat tthsplit
+ cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${c} ${c}.c
+.endfor
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/tth ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/latex2gif ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/ps2gif ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/ps2png ${STAGEDIR}${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/Xfonts.fix ${STAGEDIR}${PREFIX}/bin
- @${MKDIR} ${STAGEDIR}/${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/license.txt ${STAGEDIR}${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/tth_manual.html ${STAGEDIR}${DOCSDIR}
- @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
+.for p in tth tthrfcat tthsplit
+ ${INSTALL_PROGRAM} ${WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin
+.endfor
+.for s in latex2gif tthprep
+ ${INSTALL_SCRIPT} ${WRKSRC}/${s} ${STAGEDIR}${PREFIX}/bin
+.endfor
+
+ ${MKDIR} ${STAGEDIR}${DATADIR}/styles
+ ${INSTALL_DATA} ${WRKSRC}/*.sty ${STAGEDIR}${DATADIR}/styles
+ cd ${WRKSRC} && ${COPYTREE_SHARE} babel ${STAGEDIR}${DATADIR}
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
+
+post-install-DOCS-on:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} *.html *.tex ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/textproc/tth/distinfo b/textproc/tth/distinfo
--- a/textproc/tth/distinfo
+++ b/textproc/tth/distinfo
@@ -1,2 +1,3 @@
-SHA256 (tth_C.tgz) = ce532f5dcf907c29e1ec581d1bd9c235f0ad66fe75f0b3b703eb2a73664ab61d
-SIZE (tth_C.tgz) = 329979
+TIMESTAMP = 1729068608
+SHA256 (tthC.tgz) = 3af4e524a8653e35e28939f6e2dda939c7c5c190fcfc69749f16a257f587a77e
+SIZE (tthC.tgz) = 374725
diff --git a/textproc/tth/files/patch-gold__man.html b/textproc/tth/files/patch-gold__man.html
new file mode 100644
--- /dev/null
+++ b/textproc/tth/files/patch-gold__man.html
@@ -0,0 +1,38 @@
+--- gold_man.html.orig 2011-01-25 01:20:04 UTC
++++ gold_man.html
+@@ -325,7 +325,7 @@ the extra command:
+ <p>
+
+ <pre>
+-\input /usr/local/tth/tthprep.sty
++\input %%DATADIR%%/styles/tthprep.sty
+
+ </pre>
+
+@@ -432,7 +432,7 @@ line, for example
+ <p>
+
+ <pre>
+-%%tth: \input /usr/local/tth/swedish.bab
++%%tth: \input %%DATADIR%%/babel/swedish.bab
+
+ </pre>
+
+@@ -452,7 +452,7 @@ supported by the simplified TtH style file input via:
+ <p>
+
+ <pre>
+-%%tth:\input /usr/local/tth/amslatex.sty
++%%tth:\input %%DATADIR%%/styles/amslatex.sty
+
+ </pre>
+
+@@ -492,7 +492,7 @@ you can add the following line in the preamble.
+ you can add the following line in the preamble.
+
+ <pre>
+-%%tth: \input /usr/local/tth/tthntbib.sty
++%%tth: \input %%DATADIR%%/styles/tthntbib.sty
+
+ </pre>
+ Your file might already contain, or you might want also to add lines like:
diff --git a/textproc/tth/files/patch-gold__man.tex b/textproc/tth/files/patch-gold__man.tex
new file mode 100644
--- /dev/null
+++ b/textproc/tth/files/patch-gold__man.tex
@@ -0,0 +1,38 @@
+--- gold_man.tex.orig 2014-06-22 20:02:23 UTC
++++ gold_man.tex
+@@ -225,7 +225,7 @@ the extra command:
+ the extra command:
+
+ \begin{verbatim}
+-\input /usr/local/tth/tthprep.sty
++\input %%DATADIR%%/styles/tthprep.sty
+ \end{verbatim}
+
+ \noindent where the path should be to wherever you unpacked or are
+@@ -308,7 +308,7 @@ line, for example
+ line, for example
+
+ \begin{verbatim}
+-%%tth: \input /usr/local/tth/swedish.bab
++%%tth: \input %%DATADIR%%/babel/swedish.bab
+ \end{verbatim}
+
+ \noindent This redefines the titles of chapters, table of contents, index, and
+@@ -321,7 +321,7 @@ supported by the simplified TtH style file input via:
+ supported by the simplified TtH style file input via:
+
+ \begin{verbatim}
+-%%tth:\input /usr/local/tth/amslatex.sty
++%%tth:\input %%DATADIR%%/styles/amslatex.sty
+ \end{verbatim}
+
+ \noindent The layout subtleties of these environments are inappropriate
+@@ -352,7 +352,7 @@ you can add the following line in the preamble.
+ the \verb!\usepackage{natbib}! is not explicitly in your LaTeX file,
+ you can add the following line in the preamble.
+ \begin{verbatim}
+-%%tth: \input /usr/local/tth/tthntbib.sty
++%%tth: \input %%DATADIR%%/styles/tthntbib.sty
+ \end{verbatim}
+ Your file might already contain, or you might want also to add lines like:
+ \begin{verbatim}
diff --git a/textproc/tth/files/patch-tth.c b/textproc/tth/files/patch-tth.c
new file mode 100644
--- /dev/null
+++ b/textproc/tth/files/patch-tth.c
@@ -0,0 +1,11 @@
+--- tth.c.orig 2022-11-18 20:34:51 UTC
++++ tth.c
+@@ -20534,7 +20534,7 @@ YY_RULE_SETUP
+ \\def\\tthciteform#1#2#3#4{\\ifNAT@numbers#1\\else\\ #3, [#2\\fi}\
+ \\def\\tthciteob{\\ifNAT@numbers[\\else\\fi}\
+ \\def\\tthciteib{\\ifNAT@numbers\\else]\\fi}\\def\\tthcitecb{]}\
+-\\input tthntbib.sty");
++\\input %%DATADIR%%/styles/tthntbib.sty");
+ }
+ YY_BREAK
+ case 596:
diff --git a/textproc/tth/files/patch-tth__man.html b/textproc/tth/files/patch-tth__man.html
new file mode 100644
--- /dev/null
+++ b/textproc/tth/files/patch-tth__man.html
@@ -0,0 +1,20 @@
+--- tth_man.html.orig 2025-11-03 23:36:21 UTC
++++ tth_man.html
+@@ -1271,7 +1271,7 @@ without alteration of the original <span class="roman"
+ An example using the <tt>-p</tt> switch might be
+
+ <pre>
+-tth >file.html <file.tex -p/usr/local/tthinputs:~/mytthinputs
++tth >file.html <file.tex -p%%DATADIR%%/tthinputs:~/mytthinputs
+
+ </pre>
+
+@@ -1617,7 +1617,7 @@ the extra command:
+ <div class="p"><!----></div>
+
+ <pre>
+-\input /usr/local/tth/tthprep.sty
++\input %%DATADIR%%/styles/tthprep.sty
+
+ </pre>
+
diff --git a/textproc/tth/files/patch-tth__man.tex b/textproc/tth/files/patch-tth__man.tex
new file mode 100644
--- /dev/null
+++ b/textproc/tth/files/patch-tth__man.tex
@@ -0,0 +1,20 @@
+--- tth_man.tex.orig 2025-11-03 23:36:21 UTC
++++ tth_man.tex
+@@ -1006,7 +1006,7 @@ without alteration of the original \TeX\ files, by pla
+ (simplified) version of the macro package on the path \TtH\ searches.
+ An example using the \verb!-p! switch might be
+ \begin{verbatim}
+-tth >file.html <file.tex -p/usr/local/tthinputs:~/mytthinputs
++tth >file.html <file.tex -p%%DATADIR%%/tthinputs:~/mytthinputs
+ \end{verbatim}
+
+ \index{macros!alternate}
+@@ -1280,7 +1280,7 @@ the extra command:
+ the extra command:
+
+ \begin{verbatim}
+-\input /usr/local/tth/tthprep.sty
++\input %%DATADIR%%/styles/tthprep.sty
+ \end{verbatim}
+
+ \noindent where the path should be to wherever you unpacked or are
diff --git a/textproc/tth/files/patch-tthprep b/textproc/tth/files/patch-tthprep
new file mode 100644
--- /dev/null
+++ b/textproc/tth/files/patch-tthprep
@@ -0,0 +1,11 @@
+--- tthprep.orig 2025-11-03 23:36:21 UTC
++++ tthprep
+@@ -7,7 +7,7 @@ if ls $1 ; then
+ if cp $1 tth_temp.tex ; then
+ echo "Copying latex file to:"
+ if ls tth_temp.tex ; then
+- sed -e '/\\document/r tthprep.sty' tth_temp.tex > $1
++ sed -e '/\\document/r %%DATADIR%%/styles/tthprep.sty' tth_temp.tex > $1
+ # cat tth_prep.tex tth_temp.tex > $1
+ echo "Running Latex twice on temporarily modified file:"
+ ls $1
diff --git a/textproc/tth/pkg-message b/textproc/tth/pkg-message
deleted file mode 100644
--- a/textproc/tth/pkg-message
+++ /dev/null
@@ -1,7 +0,0 @@
-[
-{ type: install
- message: <<EOM
- Please read the license in %%PREFIX%%/share/doc/tth/license.txt.
-EOM
-}
-]
diff --git a/textproc/tth/pkg-plist b/textproc/tth/pkg-plist
--- a/textproc/tth/pkg-plist
+++ b/textproc/tth/pkg-plist
@@ -1,8 +1,22 @@
-bin/Xfonts.fix
bin/latex2gif
-bin/ps2gif
-bin/ps2png
bin/tth
+bin/tthprep
+bin/tthrfcat
+bin/tthsplit
+%%DOCS%%%%PORTDOCS%%%%DOCSDIR%%/gold_man.html
+%%DOCS%%%%PORTDOCS%%%%DOCSDIR%%/gold_man.tex
+%%DOCS%%%%PORTDOCS%%%%DOCSDIR%%/tth_man.html
+%%DOCS%%%%PORTDOCS%%%%DOCSDIR%%/tth_man.tex
share/man/man1/tth.1.gz
-%%PORTDOCS%%%%DOCSDIR%%/license.txt
-%%PORTDOCS%%%%DOCSDIR%%/tth_manual.html
+%%DATADIR%%/babel/danish.bab
+%%DATADIR%%/babel/dutch.bab
+%%DATADIR%%/babel/english.bab
+%%DATADIR%%/babel/french.bab
+%%DATADIR%%/babel/german.bab
+%%DATADIR%%/babel/italian.bab
+%%DATADIR%%/babel/spanish.bab
+%%DATADIR%%/babel/swedish.bab
+%%DATADIR%%/styles/amslatex.sty
+%%DATADIR%%/styles/tthntbib.sty
+%%DATADIR%%/styles/tthprep.sty
+%%DATADIR%%/styles/tthxspac.sty
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 30, 1:38 PM (44 s ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27384880
Default Alt Text
D53571.id165781.diff (9 KB)
Attached To
Mode
D53571: textproc/tth: Update 4.03 => 4.16, take maintainership
Attached
Detach File
Event Timeline
Log In to Comment