[135279] trunk/dports/tex/latexdiff/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Apr 21 17:11:55 PDT 2015


Revision: 135279
          https://trac.macports.org/changeset/135279
Author:   ryandesign at macports.org
Date:     2015-04-21 17:11:55 -0700 (Tue, 21 Apr 2015)
Log Message:
-----------
latexdiff: update to 1.1.0 (#47519) and clean up portfile

Modified Paths:
--------------
    trunk/dports/tex/latexdiff/Portfile

Modified: trunk/dports/tex/latexdiff/Portfile
===================================================================
--- trunk/dports/tex/latexdiff/Portfile	2015-04-21 23:39:46 UTC (rev 135278)
+++ trunk/dports/tex/latexdiff/Portfile	2015-04-22 00:11:55 UTC (rev 135279)
@@ -4,7 +4,7 @@
 PortSystem          1.0
 
 name                latexdiff
-version             1.0.4
+version             1.1.0
 categories          tex
 maintainers         nomaintainer
 license             GPL-3+
@@ -24,19 +24,21 @@
 dist_subdir         ${name}/${version}
 use_zip             yes
 
-checksums           rmd160  ba4842084c735778cd0b9fbf9a1fd08bdad729b1 \
-                    sha256  42acfc6e379f61637d2d23f5dd940373cd1f0ef54858eaecb3f6dad250af2db1
+checksums           rmd160  ee4c002be4865a01161bf45b2e2a5fd830e2b143 \
+                    sha256  9f0cc207d71a2225926cf9b8b87dbc4283c68de12db8a7708e780941516f13f6
 
-depends_run         path:bin/perl5.16:perl5.16 \
-                    port:p5.16-algorithm-diff
+set perl_version    5.16
 
-configure {
-    reinplace "s|/usr/bin/env perl|${prefix}/bin/perl5.16|g" \
-    ${worksrcpath}/latexdiff-so ${worksrcpath}/latexdiff-vc \
-    ${worksrcpath}/latexdiff-fast ${worksrcpath}/latexdiff \
-    ${worksrcpath}/latexrevise
+depends_run         port:perl${perl_version} \
+                    port:p${perl_version}-algorithm-diff
+
+post-patch {
+    reinplace -W ${worksrcpath} "s|/usr/bin/env perl|${prefix}/bin/perl${perl_version}|g" \
+        latexdiff latexdiff-fast latexdiff-so latexdiff-vc latexrevise
 }
 
+use_configure       no
+
 build               {}
 
 destroot.destdir    INSTALLPATH=${destroot}${prefix} \
@@ -44,42 +46,20 @@
 
 destroot {
     # install scripts
-    xinstall -m 755 ${worksrcpath}/latexdiff ${destroot}${prefix}/bin
-    xinstall -m 755 ${worksrcpath}/latexdiff-fast ${destroot}${prefix}/bin
-    xinstall -m 755 ${worksrcpath}/latexdiff-so ${destroot}${prefix}/bin
-    xinstall -m 755 ${worksrcpath}/latexdiff-vc ${destroot}${prefix}/bin
-    xinstall -m 755 ${worksrcpath}/latexrevise ${destroot}${prefix}/bin
+    xinstall -m 755 -W ${worksrcpath} latexdiff latexdiff-fast latexdiff-so latexdiff-vc latexrevise ${destroot}${prefix}/bin
 
     # install man pages
-    xinstall -m 644 ${worksrcpath}/latexdiff.1 ${destroot}${prefix}/share/man/man1
-    xinstall -m 644 ${worksrcpath}/latexdiff-vc.1 ${destroot}${prefix}/share/man/man1
-    xinstall -m 644 ${worksrcpath}/latexrevise.1 ${destroot}${prefix}/share/man/man1
+    xinstall -m 644 -W ${worksrcpath} latexdiff.1 latexdiff-vc.1 latexrevise.1 ${destroot}${prefix}/share/man/man1
 
     # install docs
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 ${worksrcpath}/doc/latexdiff-man.pdf ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 ${worksrcpath}/doc/latexdiff-man.tex ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 ${worksrcpath}/doc/example-diff.tex ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath} COPYING README doc/example-diff.tex doc/latexdiff-man.pdf doc/latexdiff-man.tex ${destroot}${prefix}/share/doc/${name}
 
     # install examples
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/example
-    xinstall -m 644 ${worksrcpath}/example/example-draft.tex ${destroot}${prefix}/share/doc/${name}/example
-    xinstall -m 644 ${worksrcpath}/example/example-rev.tex ${destroot}${prefix}/share/doc/${name}/example
+    xinstall -m 644 -W ${worksrcpath}/example example-draft.tex example-rev.tex ${destroot}${prefix}/share/doc/${name}/example
 }
 
-pre-activate {
-    # texlive-bin-extra used to contain latexdiff, but doesn't
-    # anymore. If the old version is installed, deactivate it to avoid
-    # a conflict.
-    if {[file exists $prefix/bin/latexdiff]
-        && ![catch {set vers [lindex [registry_active texlive-bin-extra] 0]}]
-        && [vercmp [lindex $vers 1] 19536] < 0} {
-        registry_deactivate_composite texlive-bin-extra "" [list ports_nodepcheck 1]
-    }
-}
-
 livecheck.type      regex
 livecheck.url       ${homepage}
 livecheck.regex     "<td>(\\d+(\\.\\d+)*) ?</td>"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150421/0a8190f5/attachment.html>


More information about the macports-changes mailing list