[55085] trunk/dports/textproc/tth/Portfile

toby at macports.org toby at macports.org
Thu Aug 6 11:34:55 PDT 2009


Revision: 55085
          http://trac.macports.org/changeset/55085
Author:   toby at macports.org
Date:     2009-08-06 11:34:53 -0700 (Thu, 06 Aug 2009)
Log Message:
-----------
#20557 (tth package has been updated on the download site, md5 nolonger matches)

Modified Paths:
--------------
    trunk/dports/textproc/tth/Portfile

Modified: trunk/dports/textproc/tth/Portfile
===================================================================
--- trunk/dports/textproc/tth/Portfile	2009-08-06 17:53:33 UTC (rev 55084)
+++ trunk/dports/textproc/tth/Portfile	2009-08-06 18:34:53 UTC (rev 55085)
@@ -1,40 +1,54 @@
 # $Id$
 
-PortSystem      1.0
+PortSystem 1.0
+
 name            tth
-version         3.80
+version         3.85
 categories      textproc print
-maintainers     nomaintainer
+maintainers     toby
 description     a TeX to HTML transaltor
-long_description	\
-	TTH translates TEX, the predominant mark-up language for 	\
-	expressing mathematics, into HTML, the language of 		\
-	world-wide-web browsers. It thereby enables mathematical 	\
-	documents to be made available on the web. Document structure, 	\
-	using either the Plain or LaTeX macro packages, is also 	\
-	translated and incorporated in the form of hyperlinks.
+long_description \
+    TTH translates TEX, the predominant mark-up language for 	\
+    expressing mathematics, into HTML, the language of 		\
+    world-wide-web browsers. It thereby enables mathematical 	\
+    documents to be made available on the web. Document structure, 	\
+    using either the Plain or LaTeX macro packages, is also 	\
+    translated and incorporated in the form of hyperlinks.
 platforms       darwin freebsd
 homepage        http://hutchinson.belmont.ma.us/tth/
 
+master_sites    ${homepage}tth-noncom/
+distname        ${name}_C
+extract.suffix  .tgz
+
 dist_subdir     ${name}/${version}
 
-master_sites    http://hutchinson.belmont.ma.us/tth/tth-noncom/
 # This port is prone to breakage because the author doesn't see fit to make old
 # versions available, or even put a version number in the tarball's name. Sigh.
-checksums       md5 54d0a9fbbe67d7f198288a8cf2c32ad3
-distname        ${name}_C
-extract.suffix  .tgz
+checksums       md5 11575669b8e932e459800a7417278981 \
+                sha1 0925eba8801267a43b2572db31c2f4f3b20b7f07 \
+                rmd160 bc9376a1ff4e34a518c645f7d282f758eb05814b
 
-use_configure   no
+# sigh
+configure {}
+set mycflags ${configure.cflags}
+if {[variant_isset universal]} {
+    set mycflags "$mycflags ${configure.universal_cflags}"
+} else {
+    set mycflags "$mycflags ${configure.cc_archflags}"
+}
 
-build           {
-	system "cd ${workpath}/${distname} && cc -o ${name} ${name}.c"
+build.cmd       ${configure.cc}
+build.pre_args
+build.args      $mycflags ${name}.c -o ${name}
+
+destroot {
+    xinstall -m 755 ${worksrcpath}/tth ${destroot}${prefix}/bin
+    xinstall -m 755 ${worksrcpath}/latex2gif ${destroot}${prefix}/bin
+    xinstall -m 755 ${worksrcpath}/ps2gif ${destroot}${prefix}/bin
+    xinstall -m 755 ${worksrcpath}/ps2png ${destroot}${prefix}/bin
+    xinstall -m 644 ${worksrcpath}/tth.1 ${destroot}${prefix}/share/man/man1
 }
 
-destroot        {
-	xinstall -m 755 ${workpath}/${distname}/tth ${destroot}${prefix}/bin
-	xinstall -m 755 ${workpath}/${distname}/latex2gif ${destroot}${prefix}/bin
-	xinstall -m 755 ${workpath}/${distname}/ps2gif ${destroot}${prefix}/bin
-	xinstall -m 755 ${workpath}/${distname}/ps2png ${destroot}${prefix}/bin
-	xinstall -m 644 ${workpath}/${distname}/tth.1 ${destroot}${prefix}/share/man/man1
-}
+livecheck.url   ${homepage}Version
+livecheck.regex \"(.*)\"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090806/7e9afc4f/attachment.html>


More information about the macports-changes mailing list