[117765] trunk/dports/textproc/html-xml-utils/Portfile

raimue at macports.org raimue at macports.org
Tue Mar 11 03:24:13 PDT 2014


Revision: 117765
          https://trac.macports.org/changeset/117765
Author:   raimue at macports.org
Date:     2014-03-11 03:24:13 -0700 (Tue, 11 Mar 2014)
Log Message:
-----------
textproc/html-xml-utils:
Drop the w3* prefix as there are no obvious conflicts with any system tools or
other ports. As the program prefix was used ever since this port was added,
install symlinks for compatibility.

Modified Paths:
--------------
    trunk/dports/textproc/html-xml-utils/Portfile

Modified: trunk/dports/textproc/html-xml-utils/Portfile
===================================================================
--- trunk/dports/textproc/html-xml-utils/Portfile	2014-03-11 10:04:37 UTC (rev 117764)
+++ trunk/dports/textproc/html-xml-utils/Portfile	2014-03-11 10:24:13 UTC (rev 117765)
@@ -5,6 +5,7 @@
 
 name                html-xml-utils
 version             6.5
+revision            1
 categories          textproc
 platforms           darwin
 maintainers         nomaintainer
@@ -20,12 +21,20 @@
 checksums           rmd160  a62ba2f7e2f7dc02b09f73ac6c16ce12032091e6 \
                     sha256  21e411f7a52281bb006aa0177f0996b832f27a85c00ba126acf98ddc06248c9a                    
 
-configure.args      --program-prefix=w3
-
 configure.cflags-append -std=gnu89
 
 configure.libs-append   -liconv
 
+post-destroot {
+    # For backwards compatibility, restore the program prefix that was used in
+    # earlier versions of this port
+    fs-traverse f "${destroot}${prefix}/bin ${destroot}${prefix}/share/man" {
+        if [file isfile $f] {
+            ln -s [file tail $f] [file dirname $f]/w3[file tail $f]
+        }
+    }
+}
+
 livecheck.type      regex
 livecheck.url       [lindex ${master_sites} 0]
 livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140311/f7def8dc/attachment.html>


More information about the macports-changes mailing list