[71514] trunk/dports/devel/ccache/Portfile

landonf at macports.org landonf at macports.org
Wed Sep 15 10:32:50 PDT 2010


Revision: 71514
          http://trac.macports.org/changeset/71514
Author:   landonf at macports.org
Date:     2010-09-15 10:32:47 -0700 (Wed, 15 Sep 2010)
Log Message:
-----------
Restore the symlinks removed in r64755. Fixes ticket #19626.

Revision Links:
--------------
    http://trac.macports.org/changeset/64755

Modified Paths:
--------------
    trunk/dports/devel/ccache/Portfile

Modified: trunk/dports/devel/ccache/Portfile
===================================================================
--- trunk/dports/devel/ccache/Portfile	2010-09-15 17:11:58 UTC (rev 71513)
+++ trunk/dports/devel/ccache/Portfile	2010-09-15 17:32:47 UTC (rev 71514)
@@ -4,9 +4,9 @@
 
 name            ccache
 version         2.4
-revision        3
+revision        4
 categories      devel
-maintainers     nomaintainer
+maintainers     landonf openmaintainer
 description     object-file caching compiler wrapper
 
 long_description \
@@ -32,10 +32,26 @@
 
 configure.args  --mandir=${prefix}/share/man
 
+set symlinks_dir    ${prefix}/libexec/ccache
+
 post-destroot {
+    file mkdir ${destroot}${symlinks_dir}
+
+    foreach {bin} {
+	    cc
+	    gcc gcc2    gcc3    gcc-3.3 gcc-4.0 gcc-4.2
+	    c++ c++3    c++-3.3 c++-4.0 c++-4.2
+	    g++ g++2    g++3    g++-3.3 g++-4.0 g++-4.2
+    } {
+        ln -sf ${prefix}/bin/ccache ${destroot}${symlinks_dir}/${bin}
+    }
+
     set docdir ${prefix}/share/doc/${name}-${version}
     xinstall -d ${destroot}${docdir}/html
     xinstall -m 0644 -W ${worksrcpath} COPYING README ${destroot}${docdir}
-    eval xinstall -m 0644 [glob ${worksrcpath}/web/*.html] \
-        ${destroot}${docdir}/html
+    eval xinstall -m 0644 [glob ${worksrcpath}/web/*.html] ${destroot}${docdir}/html
 }
+
+post-activate {
+    ui_msg "The ccache symlinks are installed in ${symlinks_dir}"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100915/f061fc1e/attachment-0001.html>


More information about the macports-changes mailing list