[36651] trunk/dports/devel/ccache/Portfile
nox at macports.org
nox at macports.org
Fri May 9 04:30:06 PDT 2008
Revision: 36651
http://trac.macosforge.org/projects/macports/changeset/36651
Author: nox at macports.org
Date: 2008-05-09 04:30:05 -0700 (Fri, 09 May 2008)
Log Message:
-----------
ccache: symlinks are now installed in ${prefix}/libexec/ccache to prevent mtree violation (closes #14667).
Modified Paths:
--------------
trunk/dports/devel/ccache/Portfile
Modified: trunk/dports/devel/ccache/Portfile
===================================================================
--- trunk/dports/devel/ccache/Portfile 2008-05-09 10:11:44 UTC (rev 36650)
+++ trunk/dports/devel/ccache/Portfile 2008-05-09 11:30:05 UTC (rev 36651)
@@ -4,7 +4,7 @@
name ccache
version 2.4
-revision 1
+revision 2
categories devel
maintainers nox
description object-file caching compiler wrapper
@@ -25,10 +25,12 @@
configure.args --mandir=${prefix}/share/man
-destroot.violate_mtree yes
+use_parallel_build yes
+set symlinks_dir ${prefix}/libexec/ccache
+
post-destroot {
- file mkdir ${destroot}${prefix}/ccache/bin
+ file mkdir ${destroot}${symlinks_dir}
foreach {bin} {
cc
@@ -36,7 +38,7 @@
c++ c++3 c++-3.3 c++-4.0
g++ g++2 g++3 g++-3.3 g++-4.0
} {
- system "cd ${destroot}${prefix}/ccache/bin && ln -sf ../../bin/ccache ${bin}"
+ ln -sf ${prefix}/bin/ccache ${destroot}${symlinks_dir}/${bin}
}
set docdir ${prefix}/share/doc/${name}-${version}
@@ -45,3 +47,6 @@
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/20080509/f510e728/attachment.html
More information about the macports-changes
mailing list