[141766] trunk/dports/print/latex2html/Portfile

dports at macports.org dports at macports.org
Sat Dec 12 02:55:07 PST 2015


Revision: 141766
          https://trac.macports.org/changeset/141766
Author:   dports at macports.org
Date:     2015-10-27 15:56:25 -0700 (Tue, 27 Oct 2015)
Log Message:
-----------
latex2html: don't install older versions of tex files that are
installed by texlive. These shadow the versions in texlive, causing
failures in tex documents.

Also refactor a couple parts of the portfile to use the paths in the
texlive portgroup

Modified Paths:
--------------
    trunk/dports/print/latex2html/Portfile

Modified: trunk/dports/print/latex2html/Portfile
===================================================================
--- trunk/dports/print/latex2html/Portfile	2015-10-27 22:19:26 UTC (rev 141765)
+++ trunk/dports/print/latex2html/Portfile	2015-10-27 22:56:25 UTC (rev 141766)
@@ -2,10 +2,11 @@
 # $Id$
 
 PortSystem              1.0
+PortGroup               texlive 1.0
 
 name                    latex2html
 version                 2008
-revision                5
+revision                6
 categories              print
 platforms               darwin
 maintainers             nomaintainer
@@ -35,8 +36,9 @@
 
 configure.perl          ${prefix}/bin/perl
 
+set texmfdir ${texlive_texmfports}/tex/latex/html
 configure.args          --without-mktexlsr \
-                        --with-texpath=${prefix}/share/texmf/tex/latex/html
+                        --with-texpath=${texmfdir}
 
 post-destroot {
     set docdir ${destroot}${prefix}/share/doc/${name}
@@ -50,21 +52,22 @@
         TODO \
         ${docdir}
 
-    set texmfdir ${destroot}${prefix}/share/texmf/tex/latex/html
-    xinstall -d -m 755 ${texmfdir}
+    xinstall -d -m 755 ${destroot}${texmfdir}
     foreach file [ glob ${worksrcpath}/texinputs/* ] {
-        file copy -force ${file} ${texmfdir}
+        file copy -force ${file} ${destroot}${texmfdir}
     }
-}
 
-post-activate {
-    system "mktexlsr"
+    # Newer versions of these files are already installed by
+    # texlive. Because ${texlive_texmfports} is earlier in the search
+    # path, the files installed by this port would shadow them. To
+    # prevent this, don't install the old versions.
+    delete ${destroot}${texmfdir}/url.sty
+    delete ${destroot}${texmfdir}/latin9.def
 }
 
-post-deactivate {
-    system "mktexlsr"
-}
+texlive.use_mktexlsr yes
 
+
 livecheck.type          regex
 livecheck.url           [lindex ${master_sites} 0]
 livecheck.regex         ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/da16f954/attachment.html>


More information about the macports-changes mailing list