[60013] trunk/dports/databases/db46/Portfile
blair at macports.org
blair at macports.org
Wed Oct 28 21:02:59 PDT 2009
Revision: 60013
http://trac.macports.org/changeset/60013
Author: blair at macports.org
Date: 2009-10-28 21:02:59 -0700 (Wed, 28 Oct 2009)
Log Message:
-----------
Defend against people having stuff in /usr/local that prevents db46
from properly building. If somebody wants to supply a patch to
prevent db46 from picking stuff up from /usr/local, then I'll gladly
accept it.
Modified Paths:
--------------
trunk/dports/databases/db46/Portfile
Modified: trunk/dports/databases/db46/Portfile
===================================================================
--- trunk/dports/databases/db46/Portfile 2009-10-29 03:58:51 UTC (rev 60012)
+++ trunk/dports/databases/db46/Portfile 2009-10-29 04:02:59 UTC (rev 60013)
@@ -54,6 +54,13 @@
destroot.destdir prefix=${destroot}${prefix} \
docdir=${destroot}${prefix}/share/doc/db-${version}/
+pre-extract {
+ if {[file exists "/usr/local"]} {
+ ui_error "Move /usr/local out of the way then make this port."
+ return -code error "/usr/local is in the way"
+ }
+}
+
post-destroot {
foreach bin { archive hotbackup dump printlog upgrade checkpoint recover verify deadlock load stat codegen dump185 } {
move ${destroot}${prefix}/bin/db_${bin} \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091028/8385baae/attachment.html>
More information about the macports-changes
mailing list