[DRE-commits] r1839 - in packages/libgems-ruby/trunk/debian: . patches
daigo at alioth.debian.org
daigo at alioth.debian.org
Sun Aug 26 00:19:18 UTC 2007
Author: daigo
Date: 2007-08-26 00:19:18 +0000 (Sun, 26 Aug 2007)
New Revision: 1839
Added:
packages/libgems-ruby/trunk/debian/patches/22_add_bash_completion.dpatch
packages/libgems-ruby/trunk/debian/rubygems.README.Debian
Removed:
packages/libgems-ruby/trunk/debian/README.Debian
Modified:
packages/libgems-ruby/trunk/debian/changelog
packages/libgems-ruby/trunk/debian/copyright
packages/libgems-ruby/trunk/debian/libgems-ruby1.8.install
packages/libgems-ruby/trunk/debian/patches/00list
packages/libgems-ruby/trunk/debian/rubygems.install
Log:
* debian/patches/22_add_bash_completion.dpatch: imported Ubuntu's work.
It enables bash completion for the gem command.
Thanks to Ubuntu MOTU Developers.
* move debian/README.Debian to debian/rubygems.README.Debian.
Deleted: packages/libgems-ruby/trunk/debian/README.Debian
===================================================================
--- packages/libgems-ruby/trunk/debian/README.Debian 2007-08-25 10:39:03 UTC (rev 1838)
+++ packages/libgems-ruby/trunk/debian/README.Debian 2007-08-26 00:19:18 UTC (rev 1839)
@@ -1,25 +0,0 @@
-libgems-ruby for Debian
------------------------
-
-Some patches are applied to fit Debian FHS
-
-* Directory where gems are to be installed
-
-/var/lib/gems is used in Debian. However, you can override it by defining
-GEM_HOME environment variable. If you go with your GEM_HOME, some files should
-be manually installed.
- $ cp -r /var/lib/gems/1.8/gems/sources-0.0.1 $GEM_HOME/gems/
- $ cp /var/lib/gems/1.8/specifications/sources-0.0.1.gemspec \
- $GEM_HOME/specifications/
-Replace version numbers above with what you really have.
-
-
-* Executables in gems
-
-Gems which Debian's RubyGems will install are stored at /var/lib/gems instead
-of /usr/lib/ruby/gems. Executables of the gems will be put at
-/var/lib/gems/1.8/bin (for Ruby 1.8). In order to use them you manually have to
-add the directory in your PATH environment variable or make symbolic links at
-/usr/bin.
-
- -- Daigo Moriwaki <daigo at debian.org> Sat, 22 Apr 2006
Modified: packages/libgems-ruby/trunk/debian/changelog
===================================================================
--- packages/libgems-ruby/trunk/debian/changelog 2007-08-25 10:39:03 UTC (rev 1838)
+++ packages/libgems-ruby/trunk/debian/changelog 2007-08-26 00:19:18 UTC (rev 1839)
@@ -1,6 +1,9 @@
-libgems-ruby (0.9.4-4) UNRELEASED; urgency=low
+libgems-ruby (0.9.4-4) unstable; urgency=low
- * NOT RELEASED YET
+ * debian/patches/22_add_bash_completion.dpatch: imported Ubuntu's work.
+ It enables bash completion for the gem command.
+ Thanks to Ubuntu MOTU Developers.
+ * move debian/README.Debian to debian/rubygems.README.Debian.
-- Daigo Moriwaki <daigo at debian.org> Sun, 05 Aug 2007 09:53:12 +0900
Modified: packages/libgems-ruby/trunk/debian/copyright
===================================================================
--- packages/libgems-ruby/trunk/debian/copyright 2007-08-25 10:39:03 UTC (rev 1838)
+++ packages/libgems-ruby/trunk/debian/copyright 2007-08-26 00:19:18 UTC (rev 1839)
@@ -71,3 +71,7 @@
On Debian GNU/Linux systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
+
+debian/patches/22_add_bash_completion.dpatch
+Rubygems bash completion (c) Michael Schuerig, michael at schuerig.de, 2007-02-24
+Free for all uses.
Modified: packages/libgems-ruby/trunk/debian/libgems-ruby1.8.install
===================================================================
--- packages/libgems-ruby/trunk/debian/libgems-ruby1.8.install 2007-08-25 10:39:03 UTC (rev 1838)
+++ packages/libgems-ruby/trunk/debian/libgems-ruby1.8.install 2007-08-26 00:19:18 UTC (rev 1839)
@@ -1 +1,2 @@
-*
+usr/lib/
+var/
Modified: packages/libgems-ruby/trunk/debian/patches/00list
===================================================================
--- packages/libgems-ruby/trunk/debian/patches/00list 2007-08-25 10:39:03 UTC (rev 1838)
+++ packages/libgems-ruby/trunk/debian/patches/00list 2007-08-26 00:19:18 UTC (rev 1839)
@@ -9,6 +9,7 @@
09_installer.dpatch
10_datadir.dpatch
21_avoid_ioseek.dpatch
+22_add_bash_completion.dpatch
#90_opensuse_gem_commands.dpatch
#91_opensuse_installer.dpatch
#92_opensuse_gem_commands.dpatch
Added: packages/libgems-ruby/trunk/debian/patches/22_add_bash_completion.dpatch
===================================================================
--- packages/libgems-ruby/trunk/debian/patches/22_add_bash_completion.dpatch (rev 0)
+++ packages/libgems-ruby/trunk/debian/patches/22_add_bash_completion.dpatch 2007-08-26 00:19:18 UTC (rev 1839)
@@ -0,0 +1,197 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 22_add_bash_completion.dpatch by Neil Wilson <aldursys at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad libgems-ruby-0.9.4~/conf/bash_completion.d/gem libgems-ruby-0.9.4/conf/bash_completion.d/gem
+--- libgems-ruby-0.9.4~/conf/bash_completion.d/gem 1970-01-01 01:00:00.000000000 +0100
++++ libgems-ruby-0.9.4/conf/bash_completion.d/gem 2007-08-07 21:48:16.000000000 +0100
+@@ -0,0 +1,186 @@
++# Michael Schuerig, michael at schuerig.de, 2007-02-24
++# Free for all uses.
++
++_gem()
++{
++ local cur prev completions
++
++ COMPREPLY=()
++ cur=${COMP_WORDS[COMP_CWORD]}
++ prev=${COMP_WORDS[COMP_CWORD-1]}
++
++ COMMANDS='build cert check cleanup contents dependency\
++ environment help install list query rdoc search specification\
++ uninstall unpack update'
++
++ COMMON_OPTIONS='\
++ --source
++ -p --http-proxy --no-http-proxy\
++ -h --help\
++ --config-file\
++ --backtrace\
++ --debug'
++
++ CERT_OPTIONS='\
++ -a -add\
++ -l --list\
++ -r --remove\
++ -b --build\
++ -C --certificate\
++ -K --private-key\
++ -s --sign'
++
++ CHECK_OPTIONS='\
++ -v --verify\
++ -a --alien\
++ -t --test\
++ -V --version'
++
++ CLEANUP_OPTIONS='\
++ -d --dry-run'
++
++ CONTENTS_OPTIONS='\
++ -l --list\
++ -V --version\
++ -s --spec-dir\
++ -v --verbose'
++
++ DEPENDENCY_OPTIONS='\
++ -v --version\
++ -r --reverse-dependencies --no-reverse-dependencies\
++ -p --pipe'
++
++ HELP_OPTIONS=$COMMANDS
++
++ INSTALL_OPTIONS='\
++ -v --version\
++ -l --local\
++ -r --remote\
++ -b --both\
++ -i --install-dir\
++ -B --build-root\
++ -d --rdoc --no-rdoc\
++ --ri --no-ri\
++ -f --force --no-force\
++ -t --test --no-test\
++ -w --wrappers --no-wrappers\
++ -P --trust-policy\
++ --ignore-dependencies\
++ -y --include-dependencies'
++
++ LIST_OPTIONS='\
++ -d --details --no-details\
++ -l --local\
++ -r --remote\
++ -b --both'
++
++ QUERY_OPTIONS='\
++ -n --name-matches\
++ -d --details --no-details\
++ -l --local\
++ -r --remote\
++ -b --both'
++
++ RDOC_OPTIONS='\
++ --all\
++ --rdoc --no-rdoc\
++ --ri --no-ri\
++ -v --version'
++
++ SEARCH_OPTIONS='\
++ -d --details --no-details\
++ -l --local\
++ -r --remote\
++ -b --both'
++
++ SPECIFICATION_OPTIONS='\
++ -v --version\
++ -l --local\
++ -r --remote\
++ -b --both\
++ -all'
++
++ UNINSTALL_OPTIONS='\
++ -a --all --no-all\
++ -i --ignore-dependencies --no-ignore-dependencies\
++ -x --executables --no-executables\
++ -v --version'
++
++ UNPACK_OPTIONS='\
++ -v --version'
++
++ UPDATE_OPTIONS='\
++ -i --install-dir\
++ -B --build-root\
++ -d --rdoc --no-rdoc\
++ -ri --no-ri\
++ -f --force --no-force\
++ -t --test --no-test\
++ -w --wrappers --no-wrappers\
++ -P --trust-policy\
++ --ignore-dependencies\
++ -y --include-dependencies\
++ --system'
++
++ case "${prev}" in
++ build)
++ completions="$COMMON_OPTIONS $BUILD_OPTIONS"
++ ;;
++ cert)
++ completions="$COMMON_OPTIONS $CERT_OPTIONS"
++ ;;
++ check)
++ completions="$COMMON_OPTIONS $CHECK_OPTIONS"
++ ;;
++ cleanup)
++ completions="$COMMON_OPTIONS $CLEANUP_OPTIONS"
++ ;;
++ contents)
++ completions="$COMMON_OPTIONS $CONTENTS_OPTIONS"
++ ;;
++ dependency)
++ completions="$COMMON_OPTIONS $DEPENDENCY_OPTIONS"
++ ;;
++ environment)
++ completions="$COMMON_OPTIONS $ENVIRONMENT_OPTIONS"
++ ;;
++ help)
++ completions="$COMMON_OPTIONS $HELP_OPTIONS"
++ ;;
++ install)
++ completions="$COMMON_OPTIONS $INSTALL_OPTIONS"
++ ;;
++ list)
++ completions="$COMMON_OPTIONS $LIST_OPTIONS"
++ ;;
++ query)
++ completions="$COMMON_OPTIONS $QUERY_OPTIONS"
++ ;;
++ rdoc)
++ completions="$COMMON_OPTIONS $RDOC_OPTIONS"
++ ;;
++ search)
++ completions="$COMMON_OPTIONS $SEARCH_OPTIONS"
++ ;;
++ specification)
++ completions="$COMMON_OPTIONS $SPECIFICATION_OPTIONS"
++ ;;
++ uninstall)
++ completions="$COMMON_OPTIONS $UNINSTALL_OPTIONS"
++ ;;
++ unpack)
++ completions="$COMMON_OPTIONS $UNPACK_OPTIONS"
++ ;;
++ update)
++ completions="$COMMON_OPTIONS $UPDATE_OPTIONS"
++ ;;
++ *)
++ completions="$COMMANDS $COMMON_OPTIONS"
++ ;;
++ esac
++
++ COMPREPLY=( $( compgen -W "$completions" -- $cur ))
++ return 0
++}
++
++[ -n "${have:-}" ] && complete -F _gem $filenames gem
Property changes on: packages/libgems-ruby/trunk/debian/patches/22_add_bash_completion.dpatch
___________________________________________________________________
Name: svn:executable
+ *
Copied: packages/libgems-ruby/trunk/debian/rubygems.README.Debian (from rev 1807, packages/libgems-ruby/trunk/debian/README.Debian)
===================================================================
--- packages/libgems-ruby/trunk/debian/rubygems.README.Debian (rev 0)
+++ packages/libgems-ruby/trunk/debian/rubygems.README.Debian 2007-08-26 00:19:18 UTC (rev 1839)
@@ -0,0 +1,25 @@
+libgems-ruby for Debian
+-----------------------
+
+Some patches are applied to fit Debian FHS
+
+* Directory where gems are to be installed
+
+/var/lib/gems is used in Debian. However, you can override it by defining
+GEM_HOME environment variable. If you go with your GEM_HOME, some files should
+be manually installed.
+ $ cp -r /var/lib/gems/1.8/gems/sources-0.0.1 $GEM_HOME/gems/
+ $ cp /var/lib/gems/1.8/specifications/sources-0.0.1.gemspec \
+ $GEM_HOME/specifications/
+Replace version numbers above with what you really have.
+
+
+* Executables in gems
+
+Gems which Debian's RubyGems will install are stored at /var/lib/gems instead
+of /usr/lib/ruby/gems. Executables of the gems will be put at
+/var/lib/gems/1.8/bin (for Ruby 1.8). In order to use them you manually have to
+add the directory in your PATH environment variable or make symbolic links at
+/usr/bin.
+
+ -- Daigo Moriwaki <daigo at debian.org> Sat, 22 Apr 2006
Modified: packages/libgems-ruby/trunk/debian/rubygems.install
===================================================================
--- packages/libgems-ruby/trunk/debian/rubygems.install 2007-08-25 10:39:03 UTC (rev 1838)
+++ packages/libgems-ruby/trunk/debian/rubygems.install 2007-08-26 00:19:18 UTC (rev 1839)
@@ -5,3 +5,4 @@
usr/bin/gemri
usr/bin/gemwhich
usr/bin/index_gem_repository
+etc/bash_completion.d/gem
More information about the Pkg-ruby-extras-commits
mailing list