[112498] trunk/dports/devel/git-extras/Portfile

raimue at macports.org raimue at macports.org
Thu Oct 24 08:42:40 PDT 2013


Revision: 112498
          https://trac.macports.org/changeset/112498
Author:   raimue at macports.org
Date:     2013-10-24 08:42:40 -0700 (Thu, 24 Oct 2013)
Log Message:
-----------
devel/git-extras:
Remove previously unregistered file in pre-activate

Modified Paths:
--------------
    trunk/dports/devel/git-extras/Portfile

Modified: trunk/dports/devel/git-extras/Portfile
===================================================================
--- trunk/dports/devel/git-extras/Portfile	2013-10-24 15:26:30 UTC (rev 112497)
+++ trunk/dports/devel/git-extras/Portfile	2013-10-24 15:42:40 UTC (rev 112498)
@@ -5,6 +5,7 @@
 PortGroup               github 1.0
 
 github.setup            visionmedia git-extras 1.9.0
+revision                1
 maintainers             nomaintainer
 platforms               darwin
 categories              devel
@@ -29,3 +30,14 @@
     xinstall -d ${docdir}
     eval xinstall -m 644 [glob ${worksrcpath}/man/*.html] ${docdir}
 }
+
+pre-activate {
+    # git-extras @1.7.0_0 installed a file to /opt/local/etc/bash_completion.d/
+    # remove it if found
+    set filepath ${prefix}/etc/bash_completion.d/git-extras
+    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/20131024/8070453f/attachment.html>


More information about the macports-changes mailing list