Revision
71018
Author
raimue@macports.org
Date
2010-08-29 17:17:32 -0700 (Sun, 29 Aug 2010)

Log Message

devel/bzr: Add +bash_completion variant

Modified Paths

Diff

Modified: trunk/dports/devel/bzr/Portfile (71017 => 71018)


--- trunk/dports/devel/bzr/Portfile	2010-08-30 00:00:43 UTC (rev 71017)
+++ trunk/dports/devel/bzr/Portfile	2010-08-30 00:17:32 UTC (rev 71018)
@@ -50,6 +50,16 @@
         ${destroot}${prefix}/share/doc/${name}
 }
 
+variant bash_completion {
+    depends_run-append  port:bash-completion
+
+    post-destroot {
+        xinstall -d ${destroot}${prefix}/etc/bash_completion.d
+        xinstall -m 644 ${worksrcpath}/contrib/bash/bzr \
+            ${destroot}${prefix}/etc/bash_completion.d/bzr
+    }
+}
+
 universal_variant no
 
 livecheck.type      regex