[arch-commits] Commit in bash-completion/repos/extra-any (5 files)

Eric Bélanger eric at nymeria.archlinux.org
Thu Mar 20 23:40:58 UTC 2014


    Date: Friday, March 21, 2014 @ 00:40:58
  Author: eric
Revision: 208319

archrelease: copy trunk to extra-any

Added:
  bash-completion/repos/extra-any/PKGBUILD
    (from rev 208318, bash-completion/trunk/PKGBUILD)
  bash-completion/repos/extra-any/bash-4.3.patch
    (from rev 208318, bash-completion/trunk/bash-4.3.patch)
  bash-completion/repos/extra-any/bash-completion-lz4.patch
    (from rev 208318, bash-completion/trunk/bash-completion-lz4.patch)
Deleted:
  bash-completion/repos/extra-any/PKGBUILD
  bash-completion/repos/extra-any/bash-4.3.patch

---------------------------+
 PKGBUILD                  |  101 +++++++++++++++++++-------------------------
 bash-4.3.patch            |   54 +++++++++++------------
 bash-completion-lz4.patch |   10 ++++
 3 files changed, 81 insertions(+), 84 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-20 23:40:16 UTC (rev 208318)
+++ PKGBUILD	2014-03-20 23:40:58 UTC (rev 208319)
@@ -1,57 +0,0 @@
-# $Id$
-# Maintainer: Eric Bélanger <eric at archlinux.org>
-
-pkgname=bash-completion
-pkgver=2.1
-pkgrel=3
-pkgdesc="Programmable completion for the bash shell"
-arch=('any')
-url="http://bash-completion.alioth.debian.org/"
-license=('GPL')
-depends=('bash')
-options=('!emptydirs' '!makeflags')
-source=(http://bash-completion.alioth.debian.org/files/${pkgname}-${pkgver}.tar.bz2
-        bash-4.3.patch)
-md5sums=('4e2a9f11a4042a38ee79ddcd048e8b9e'
-         'f964553680d88a89dbe8a7275e94bd3b')
-
-prepare() {
-  cd ${pkgname}-${pkgver}
-  patch -p1 -i ../bash-4.3.patch
-}
-
-build() {
-  cd ${pkgname}-${pkgver}
-  ./configure --prefix=/usr --sysconfdir=/etc
-  make
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-  make DESTDIR="${pkgdir}" install
-
-# bash-completion is sourced in /etc/bash.bashrc so that non-bash shell don't source it
-  rm "${pkgdir}/etc/profile.d/bash_completion.sh"
-
-# remove Slackware's makepkg completion
-  rm "${pkgdir}/usr/share/bash-completion/completions/makepkg"
-
-# provided by networkmanager
-  rm "${pkgdir}/usr/share/bash-completion/completions/nmcli"
-
-# provided by util-linux
-  rm "${pkgdir}/usr/share/bash-completion/completions/cal"
-  rm "${pkgdir}/usr/share/bash-completion/completions/chsh"
-  rm "${pkgdir}/usr/share/bash-completion/completions/dmesg"
-  rm "${pkgdir}/usr/share/bash-completion/completions/eject"
-  rm "${pkgdir}/usr/share/bash-completion/completions/hd"
-  rm "${pkgdir}/usr/share/bash-completion/completions/hexdump"
-  rm "${pkgdir}/usr/share/bash-completion/completions/hwclock"
-  rm "${pkgdir}/usr/share/bash-completion/completions/ionice"
-  rm "${pkgdir}/usr/share/bash-completion/completions/look"
-  rm "${pkgdir}/usr/share/bash-completion/completions/ncal"
-  rm "${pkgdir}/usr/share/bash-completion/completions/newgrp"
-  rm "${pkgdir}/usr/share/bash-completion/completions/renice"
-  rm "${pkgdir}/usr/share/bash-completion/completions/rtcwake"
-  rm "${pkgdir}/usr/share/bash-completion/completions/su"
-}

Copied: bash-completion/repos/extra-any/PKGBUILD (from rev 208318, bash-completion/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2014-03-20 23:40:58 UTC (rev 208319)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=bash-completion
+pkgver=2.1
+pkgrel=4
+pkgdesc="Programmable completion for the bash shell"
+arch=('any')
+url="http://bash-completion.alioth.debian.org/"
+license=('GPL')
+depends=('bash')
+options=('!emptydirs' '!makeflags')
+source=('http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=snapshot;h=867282a7341ccfff9a0e8a8ef6bba6e781b66afb;sf=tgz'
+#http://bash-completion.alioth.debian.org/files/${pkgname}-${pkgver}.tar.bz2
+        bash-4.3.patch bash-completion-lz4.patch)
+md5sums=('3b0ea5f328c228c570ee391b4faed06a'
+         'f964553680d88a89dbe8a7275e94bd3b'
+         '54a801a7a2b7aaae6ad7b3b6419003fe')
+
+prepare() {
+  rm -rf ${pkgname}-${pkgver}
+  mv ${pkgname}-867282a ${pkgname}-${pkgver}
+  cd ${pkgname}-${pkgver}
+  patch -p1 -i ../bash-4.3.patch
+  patch -p0 -i ../bash-completion-lz4.patch
+  autoreconf --install
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr --sysconfdir=/etc
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+
+# bash-completion is sourced in /etc/bash.bashrc so that non-bash shell don't source it
+  rm "${pkgdir}/etc/profile.d/bash_completion.sh"
+
+# remove Slackware's makepkg completion
+  rm "${pkgdir}/usr/share/bash-completion/completions/makepkg"
+}

Deleted: bash-4.3.patch
===================================================================
--- bash-4.3.patch	2014-03-20 23:40:16 UTC (rev 208318)
+++ bash-4.3.patch	2014-03-20 23:40:58 UTC (rev 208319)
@@ -1,27 +0,0 @@
---- a/bash_completion	2014-03-09 17:38:14 +0000
-+++ b/bash_completion	2014-03-13 23:26:44 +0000
-@@ -536,13 +536,23 @@
- # @param $2  Name of variable to return result to
- _quote_readline_by_ref()
- {
--    if [[ $1 == \'* ]]; then
-+    if [ -z "$1" ]; then
-+        # avoid quoting if empty
-+        printf -v $2 %s "$1"
-+    elif [[ $1 == \'* ]]; then
-         # Leave out first character
-         printf -v $2 %s "${1:1}"
-+    elif [[ $1 == ~* ]]; then
-+        # avoid escaping first ~
-+        printf -v $2 ~%q "${1:1}"
-     else
-         printf -v $2 %q "$1"
-     fi
- 
-+    # Replace double escaping ( \\ ) by single ( \ )
-+    # This happens always when argument is already escaped at cmdline,
-+    # and passed to this function as e.g.: file\ with\ spaces
-+    [[ ${!2} == *\\* ]] && printf -v $2 %s "${1//\\\\/\\}"
-     # If result becomes quoted like this: $'string', re-evaluate in order to
-     # drop the additional quoting.  See also: http://www.mail-archive.com/
-     # bash-completion-devel at lists.alioth.debian.org/msg01942.html

Copied: bash-completion/repos/extra-any/bash-4.3.patch (from rev 208318, bash-completion/trunk/bash-4.3.patch)
===================================================================
--- bash-4.3.patch	                        (rev 0)
+++ bash-4.3.patch	2014-03-20 23:40:58 UTC (rev 208319)
@@ -0,0 +1,27 @@
+--- a/bash_completion	2014-03-09 17:38:14 +0000
++++ b/bash_completion	2014-03-13 23:26:44 +0000
+@@ -536,13 +536,23 @@
+ # @param $2  Name of variable to return result to
+ _quote_readline_by_ref()
+ {
+-    if [[ $1 == \'* ]]; then
++    if [ -z "$1" ]; then
++        # avoid quoting if empty
++        printf -v $2 %s "$1"
++    elif [[ $1 == \'* ]]; then
+         # Leave out first character
+         printf -v $2 %s "${1:1}"
++    elif [[ $1 == ~* ]]; then
++        # avoid escaping first ~
++        printf -v $2 ~%q "${1:1}"
+     else
+         printf -v $2 %q "$1"
+     fi
+ 
++    # Replace double escaping ( \\ ) by single ( \ )
++    # This happens always when argument is already escaped at cmdline,
++    # and passed to this function as e.g.: file\ with\ spaces
++    [[ ${!2} == *\\* ]] && printf -v $2 %s "${1//\\\\/\\}"
+     # If result becomes quoted like this: $'string', re-evaluate in order to
+     # drop the additional quoting.  See also: http://www.mail-archive.com/
+     # bash-completion-devel at lists.alioth.debian.org/msg01942.html

Copied: bash-completion/repos/extra-any/bash-completion-lz4.patch (from rev 208318, bash-completion/trunk/bash-completion-lz4.patch)
===================================================================
--- bash-completion-lz4.patch	                        (rev 0)
+++ bash-completion-lz4.patch	2014-03-20 23:40:58 UTC (rev 208319)
@@ -0,0 +1,10 @@
+--- completions/Makefile.am.orig	2014-03-20 19:31:07.341541256 -0400
++++ completions/Makefile.am	2014-03-20 19:31:33.357950340 -0400
+@@ -195,6 +195,7 @@
+ 		luseradd \
+ 		luserdel \
+ 		lvm \
++		lz4 \
+ 		lzip \
+ 		lzma \
+ 		lzop \




More information about the arch-commits mailing list