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

nox at macports.org nox at macports.org
Mon Mar 15 06:37:36 PDT 2010


Revision: 64755
          http://trac.macports.org/changeset/64755
Author:   nox at macports.org
Date:     2010-03-15 06:37:33 -0700 (Mon, 15 Mar 2010)
Log Message:
-----------
Remove symlinks (#19626) and use getpwuid (#23863) in ccache

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

Modified: trunk/dports/devel/ccache/Portfile
===================================================================
--- trunk/dports/devel/ccache/Portfile	2010-03-15 13:17:09 UTC (rev 64754)
+++ trunk/dports/devel/ccache/Portfile	2010-03-15 13:37:33 UTC (rev 64755)
@@ -4,7 +4,7 @@
 
 name            ccache
 version         2.4
-revision        2
+revision        3
 categories      devel
 maintainers     nox
 description     object-file caching compiler wrapper
@@ -23,30 +23,19 @@
                 sha1 9833ec13de9b90d5409e60d679ac681115ef465e \
                 rmd160 43a0647c7faf659121a53a92ec45d245b8140124
 
+post-patch {
+    set config [open ${worksrcpath}/config.h.in a]
+    puts ${config} "#undef HAVE_PWD_H"
+    puts ${config} "#undef HAVE_GETPWUID"
+    close ${config}
+}
+
 configure.args  --mandir=${prefix}/share/man
 
-use_parallel_build  yes
-
-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
-	    c++ c++3    c++-3.3 c++-4.0
-	    g++ g++2    g++3    g++-3.3 g++-4.0
-    } {
-        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/20100315/2c13f412/attachment.html>


More information about the macports-changes mailing list