[100622] trunk/dports/irc/weechat/Portfile
and.damore at macports.org
and.damore at macports.org
Mon Dec 17 14:17:37 PST 2012
Revision: 100622
https://trac.macports.org/changeset/100622
Author: and.damore at macports.org
Date: 2012-12-17 14:17:37 -0800 (Mon, 17 Dec 2012)
Log Message:
-----------
port weechat: deleting files previously installed outside destroot; fixes building in buildbot
Modified Paths:
--------------
trunk/dports/irc/weechat/Portfile
Modified: trunk/dports/irc/weechat/Portfile
===================================================================
--- trunk/dports/irc/weechat/Portfile 2012-12-17 21:56:38 UTC (rev 100621)
+++ trunk/dports/irc/weechat/Portfile 2012-12-17 22:17:37 UTC (rev 100622)
@@ -93,3 +93,15 @@
eval delete [glob -type l ${destroot}${prefix}/lib/weechat/plugins/*.so]
}
+post-install {
+ # if present then remove file previously installed outside destroot
+ foreach file {include/weechat/weechat-plugin.h} {
+ set filepath ${prefix}/${file}
+ if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
+ if {[catch {delete ${filepath}}]} {
+ ui_warn "Cannot delete ${filepath}; please remove it manually"
+ }
+ }
+ }
+}
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121217/ef5b5338/attachment.html>
More information about the macports-changes
mailing list