diff -u libgems-ruby-0.9.4/debian/patches/00list libgems-ruby-0.9.4/debian/patches/00list --- libgems-ruby-0.9.4/debian/patches/00list +++ libgems-ruby-0.9.4/debian/patches/00list @@ -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 diff -u libgems-ruby-0.9.4/debian/rules libgems-ruby-0.9.4/debian/rules --- libgems-ruby-0.9.4/debian/rules +++ libgems-ruby-0.9.4/debian/rules @@ -69,7 +69,7 @@ # DEBUG tree debian/tmp mv debian/tmp/usr/bin/index_gem_repository.rb debian/tmp/usr/bin/index_gem_repository dh_install --list-missing --sourcedir=debian/tmp - rm -rf debian/libgems-ruby1.8/usr/bin + rm -rf debian/libgems-ruby1.8/usr/bin debian/libgems-ruby1.8/etc #cp -ar docs debian/libgems-ruby1.8/usr/share/doc/libgems-ruby1.8/ #cp -ar test debian/libgems-ruby1.8/usr/share/doc/libgems-ruby1.8/ diff -u libgems-ruby-0.9.4/debian/changelog libgems-ruby-0.9.4/debian/changelog --- libgems-ruby-0.9.4/debian/changelog +++ libgems-ruby-0.9.4/debian/changelog @@ -1,3 +1,10 @@ +libgems-ruby (0.9.4-1ubuntu1) gutsy; urgency=low + + * Added bash completion for gem commands. + * Added README.Debian file to rubygems package + + -- Neil Wilson Tue, 7 Aug 2007 21:50:33 +0100 + libgems-ruby (0.9.4-1) unstable; urgency=low * New upstream release. (Closes: #426190) diff -u libgems-ruby-0.9.4/debian/copyright libgems-ruby-0.9.4/debian/copyright --- libgems-ruby-0.9.4/debian/copyright +++ libgems-ruby-0.9.4/debian/copyright @@ -73,0 +74,4 @@ +-- +Rubygems bash completion (c) Michael Schuerig, michael@schuerig.de, 2007-02-24 +Free for all uses. + diff -u libgems-ruby-0.9.4/debian/control libgems-ruby-0.9.4/debian/control --- libgems-ruby-0.9.4/debian/control +++ libgems-ruby-0.9.4/debian/control @@ -1,8 +1,8 @@ Source: libgems-ruby Section: interpreters Priority: optional -Maintainer: Daigo Moriwaki -Uploaders: Debian Ruby Extras Maintainers +XSBC-Original-Maintainer: Daigo Moriwaki +Maintainer: Ubuntu MOTU Developers Build-Depends-Indep: dpatch (>= 2.0.10), debhelper (>= 4.0.0), ruby1.8, docbook-to-man, ruby-pkg-tools Standards-Version: 3.7.2 diff -u libgems-ruby-0.9.4/debian/rubygems.install libgems-ruby-0.9.4/debian/rubygems.install --- libgems-ruby-0.9.4/debian/rubygems.install +++ libgems-ruby-0.9.4/debian/rubygems.install @@ -7,0 +8 @@ +etc/bash_completion.d/gem only in patch2: unchanged: --- libgems-ruby-0.9.4.orig/debian/patches/22_add_bash_completion.dpatch +++ libgems-ruby-0.9.4/debian/patches/22_add_bash_completion.dpatch @@ -0,0 +1,197 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 22_add_bash_completion.dpatch by Neil Wilson +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@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@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 only in patch2: unchanged: --- libgems-ruby-0.9.4.orig/debian/rubygems.README.Debian +++ libgems-ruby-0.9.4/debian/rubygems.README.Debian @@ -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 Sat, 22 Apr 2006