[98165] trunk/dports/devel/git-core/Portfile

ciserlohn at macports.org ciserlohn at macports.org
Wed Sep 26 13:22:32 PDT 2012


Revision: 98165
          http://trac.macports.org//changeset/98165
Author:   ciserlohn at macports.org
Date:     2012-09-26 13:22:32 -0700 (Wed, 26 Sep 2012)
Log Message:
-----------
git-core: install missing git-prompt.sh (#36334); always install bash completions file

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

Modified: trunk/dports/devel/git-core/Portfile
===================================================================
--- trunk/dports/devel/git-core/Portfile	2012-09-26 20:22:16 UTC (rev 98164)
+++ trunk/dports/devel/git-core/Portfile	2012-09-26 20:22:32 UTC (rev 98165)
@@ -5,6 +5,7 @@
 
 name                git-core
 version             1.7.12.1
+revision            1
 description         A fast version control system
 long_description    Git is a fast, scalable, distributed open source version \
                     control system focusing on speed and efficiency.
@@ -94,6 +95,16 @@
         ui_info "Removing ${badfile}"
         file delete ${badfile}
     }
+
+    set completions_path ${destroot}${prefix}/share/bash-completion/completions
+    xinstall -d ${completions_path}
+    xinstall -m 644 ${worksrcpath}/contrib/completion/git-completion.bash \
+        ${completions_path}/git
+   
+    set share_path ${destroot}${prefix}/share/${name}
+    xinstall -d ${share_path}
+    xinstall -m 644 ${worksrcpath}/contrib/completion/git-prompt.sh \
+        ${share_path}/git-prompt.sh
 }
 
 if {![variant_isset python26] && ![variant_isset python27]} {
@@ -163,12 +174,6 @@
 
 variant bash_completion {
     depends_run-append  path:etc/bash_completion:bash-completion
-
-    post-destroot {
-        xinstall -d ${destroot}${prefix}/etc/bash_completion.d
-        xinstall -m 644 ${worksrcpath}/contrib/completion/git-completion.bash \
-            ${destroot}${prefix}/etc/bash_completion.d/git
-    }
 }
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120926/3378c7c9/attachment.html>


More information about the macports-changes mailing list