[92467] trunk/dports/sysutils

raimue at macports.org raimue at macports.org
Sun Apr 29 05:27:37 PDT 2012


Revision: 92467
          https://trac.macports.org/changeset/92467
Author:   raimue at macports.org
Date:     2012-04-29 05:27:34 -0700 (Sun, 29 Apr 2012)
Log Message:
-----------
sysutils/bash-completion, sysutils/bash-completion-devel:
Add -devel port for bash-completion, mark as conflicting with bash-completion

Modified Paths:
--------------
    trunk/dports/sysutils/bash-completion/Portfile
    trunk/dports/sysutils/bash-completion-devel/Portfile

Added Paths:
-----------
    trunk/dports/sysutils/bash-completion-devel/

Modified: trunk/dports/sysutils/bash-completion/Portfile
===================================================================
--- trunk/dports/sysutils/bash-completion/Portfile	2012-04-29 11:48:40 UTC (rev 92466)
+++ trunk/dports/sysutils/bash-completion/Portfile	2012-04-29 12:27:34 UTC (rev 92467)
@@ -3,6 +3,7 @@
 PortSystem      1.0
 
 name            bash-completion
+conflicts       bash-completion-devel
 epoch           1
 version         1.3
 revision        5

Modified: trunk/dports/sysutils/bash-completion-devel/Portfile
===================================================================
--- trunk/dports/sysutils/bash-completion/Portfile	2012-04-16 15:28:17 UTC (rev 92031)
+++ trunk/dports/sysutils/bash-completion-devel/Portfile	2012-04-29 12:27:34 UTC (rev 92467)
@@ -2,10 +2,9 @@
 
 PortSystem      1.0
 
-name            bash-completion
-epoch           1
-version         1.3
-revision        5
+name            bash-completion-devel
+conflicts       bash-completion
+version         1.99
 categories      sysutils
 platforms       darwin
 supported_archs noarch
@@ -13,13 +12,15 @@
 maintainers     raimue
 description     Programmable bash completions
 long_description \
-    Programmable completion library for bash.
+    Programmable completion library for bash. Note that this port is meant to \
+    be used with bash >=4.1 as provided by the bash port.
 
 homepage        http://bash-completion.alioth.debian.org/
 master_sites    http://bash-completion.alioth.debian.org/files/
-checksums       md5     a1262659b4bbf44dc9e59d034de505ec \
-                sha1    6a46b93f44c56cc336632ab28d90c0595fbcc98f \
-                rmd160  222be4aee5a9542e5b27133d8bfd697c2c95262d
+distname        bash-completion-${version}
+checksums       md5     3cf478b7f1065f424d3d6ec35f80e4f2 \
+                rmd160  c5b4a926d8a7c1843c6bc85a6ba22b371baaf20e \
+                sha256  a2baf5130fa015527f435e145949029c653f0106c89ccfd20ad8987f292ed314
 use_bzip2 yes
 
 patchfiles      patch-man.diff \
@@ -37,16 +38,20 @@
 }
 
 post-destroot {
-    xinstall -m 644 -W ${filespath} port launchctl ${destroot}${prefix}/etc/bash_completion.d/
+    xinstall -m 644 -W ${filespath} port launchctl \
+        ${destroot}${prefix}/share/bash-completion/completions/
+
+    # Add a link for compatibility with older versions
+    ln -s ${prefix}/etc/profile.d/bash_completion.sh ${destroot}${prefix}/etc/bash_completion
 }
 
 notes "
 To use bash_completion, add the following lines at the end of your .bash_profile:
-  if \[ -f ${prefix}/etc/bash_completion ]; then
-      . ${prefix}/etc/bash_completion
+  if \[ -f ${prefix}/etc/profile.d/bash_completion.sh ]; then
+      . ${prefix}/etc/profile.d/bash_completion.sh
   fi
 "
 
 livecheck.type      regex
 livecheck.url       ${homepage}
-livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
+livecheck.regex     "bash-completion-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120429/8f824ca3/attachment.html>


More information about the macports-changes mailing list