[Pkg-ruby-extras-maintainers] r512 - in packages/libgems-ruby/trunk/debian: . patches

Daigo Moriwaki daigo-guest at costa.debian.org
Sat Apr 22 15:35:54 UTC 2006


Author: daigo-guest
Date: 2006-04-22 15:35:53 +0000 (Sat, 22 Apr 2006)
New Revision: 512

Added:
   packages/libgems-ruby/trunk/debian/control.in
Modified:
   packages/libgems-ruby/trunk/debian/README.Debian
   packages/libgems-ruby/trunk/debian/changelog
   packages/libgems-ruby/trunk/debian/control
   packages/libgems-ruby/trunk/debian/patches/01_rubygems.dpatch
   packages/libgems-ruby/trunk/debian/rules
Log:
* This package is now managed under pkg-ruby-extras
  https://alioth.debian.org/projects/pkg-ruby-extras/.
* Add debian/control.in, which generates debian/control.
* debian/patches/01_rubygems.dpatch: Fix a bug. GEM_HOME is now available to
  specify where gems are to be installed.

Modified: packages/libgems-ruby/trunk/debian/README.Debian
===================================================================
--- packages/libgems-ruby/trunk/debian/README.Debian	2006-04-22 08:55:37 UTC (rev 511)
+++ packages/libgems-ruby/trunk/debian/README.Debian	2006-04-22 15:35:53 UTC (rev 512)
@@ -1,10 +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 <beatles at sgtpepper.net>  Mon, 23 May 2005 20:24:25 +0900
+ -- Daigo Moriwaki <daigo at debian.org>  Sat, 22 Apr 2006

Modified: packages/libgems-ruby/trunk/debian/changelog
===================================================================
--- packages/libgems-ruby/trunk/debian/changelog	2006-04-22 08:55:37 UTC (rev 511)
+++ packages/libgems-ruby/trunk/debian/changelog	2006-04-22 15:35:53 UTC (rev 512)
@@ -1,3 +1,13 @@
+libgems-ruby (0.8.11-3) experimental; urgency=low
+
+  * This package is now managed under pkg-ruby-extras
+    https://alioth.debian.org/projects/pkg-ruby-extras/.
+  * Add debian/control.in, which generates debian/control.
+  * debian/patches/01_rubygems.dpatch: Fix a bug. GEM_HOME is now available to
+    specify where gems are to be installed.
+
+ -- Daigo Moriwaki <daigo at debian.org>  Sat, 22 Apr 2006 12:45:46 +0900
+
 libgems-ruby (0.8.11-2) unstable; urgency=low
 
   * debian/patches/08_tighter_search_regex.dpatch: new. fix a bug where the

Modified: packages/libgems-ruby/trunk/debian/control
===================================================================
--- packages/libgems-ruby/trunk/debian/control	2006-04-22 08:55:37 UTC (rev 511)
+++ packages/libgems-ruby/trunk/debian/control	2006-04-22 15:35:53 UTC (rev 512)
@@ -3,8 +3,7 @@
 Priority: optional
 Maintainer: Daigo Moriwaki <daigo at debian.org>
 Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>, Antonio S. de A. Terceiro <asaterceiro at inf.ufrgs.br>, David Moreno Garza <damog at debian.org>, David Nusinow <dnusinow at debian.org>, Paul van Tilburg <paulvt at debian.org>, Esteban Manchado Velázquez <zoso at debian.org>, Arnaud Cornet <arnaud.cornet at gmail.com>, Lucas Nussbaum <lucas at lucas-nussbaum.net>, Thierry Reding <thierry at doppeltgemoppelt.de>, Marc Dequènes (Duck) <Duck at DuckCorp.org>, Ari Pollak <ari at debian.org>
-Build-Depends: ruby1.8, docbook-to-man
-Build-Depends-Indep: dpatch (>= 2.0.10), debhelper (>= 4.0.0), ruby-pkg-tools
+Build-Depends-Indep: dpatch (>= 2.0.10), debhelper (>= 4.0.0), ruby1.8, docbook-to-man, ruby-pkg-tools
 Standards-Version: 3.6.2.1
 
 Package: libgems-ruby1.8

Copied: packages/libgems-ruby/trunk/debian/control.in (from rev 507, packages/libgems-ruby/trunk/debian/control)
===================================================================
--- packages/libgems-ruby/trunk/debian/control	2006-04-22 03:30:57 UTC (rev 507)
+++ packages/libgems-ruby/trunk/debian/control.in	2006-04-22 15:35:53 UTC (rev 512)
@@ -0,0 +1,42 @@
+Source: libgems-ruby
+Section: interpreters
+Priority: optional
+Maintainer: Daigo Moriwaki <daigo at debian.org>
+Uploaders: @RUBY_EXTRAS_TEAM@
+Build-Depends-Indep: dpatch (>= 2.0.10), debhelper (>= 4.0.0), ruby1.8, docbook-to-man, ruby-pkg-tools
+Standards-Version: 3.6.2.2
+
+Package: libgems-ruby1.8
+Architecture: all
+Depends: libruby1.8, rdoc1.8, libopenssl-ruby1.8
+Recommends: rubygems
+Description: libraries to use RubyGems, a package management framework
+ This is a way to package Ruby libraries/applications for distribution.
+ RubyGems provides the ability to manage concurrent versions of libraries and
+ dependencies between those libraries. Using RubyGems, you can:
+   * download and install Ruby libraries easily
+   * not worry about libraries A and B depending on different versions of
+     library C
+   * easily remove libraries you no longer use
+ .
+ This package contains RubyGems' libraries. The commands are included in
+ `rubygems' package.
+ .
+ Homepage: http://rubygems.rubyforge.org/wiki/wiki.pl
+
+Package: rubygems
+Architecture: all
+Depends: ruby (>= 1.8), libgems-ruby1.8
+Description: package management framework for Ruby libraries/applications
+ This is a way to package Ruby libraries/applications for distribution.
+ RubyGems provides the ability to manage concurrent versions of libraries and
+ dependencies between those libraries. Using RubyGems, you can:
+   * download and install Ruby libraries easily
+   * not worry about libraries A and B depending on different versions of
+     library C
+   * easily remove libraries you no longer use
+ .
+ This package contains RubyGems' commands like /usr/bin/gem.
+ .
+ Homepage: http://rubygems.rubyforge.org/wiki/wiki.pl
+

Modified: packages/libgems-ruby/trunk/debian/patches/01_rubygems.dpatch
===================================================================
--- packages/libgems-ruby/trunk/debian/patches/01_rubygems.dpatch	2006-04-22 08:55:37 UTC (rev 511)
+++ packages/libgems-ruby/trunk/debian/patches/01_rubygems.dpatch	2006-04-22 15:35:53 UTC (rev 512)
@@ -1,23 +1,32 @@
 #! /bin/sh /usr/share/dpatch/dpatch-run
-## 01_rubygems.dpatch by  <beatles at sgtpepper.net>
+## 01_rubygems.dpatch by  <daigo at debian.org>
 ##
 ## All lines beginning with `## DP:' are a description of the patch.
 ## DP: New patch generated from libgems-ruby 0.8.10-1 diff.gz
 
 @DPATCH@
 
---- libgems-ruby-0.8.10.orig/lib/rubygems.rb
-+++ libgems-ruby-0.8.10/lib/rubygems.rb
-@@ -88,7 +88,11 @@
+--- libgems-ruby-0.8.11.orig/lib/rubygems.rb
++++ libgems-ruby-0.8.11/lib/rubygems.rb
+@@ -85,11 +85,20 @@
+     ##
+     # The directory path where Gems are to be installed.
+     #
++    # Debian patch: search order of this directory.
++    #   1. GEM_HOME enviroment variable
++    #      (Using this, Gems are to be installed in any path as you like)
++    #   2. /var/lib/gems (This is the default path in Debian system)
++    #
      # return:: [String] The directory path
      #
      def dir
 -      @gem_home ||= nil
-+		#@gem_home ||= nil
-+		### Debian ###
-+		#require 'rbconfig'
+-      set_home(ENV['GEM_HOME'] || default_dir) unless @gem_home
++		  ### Debian ###
++		  #@gem_home ||= nil
++      set_home(ENV['GEM_HOME']) if ENV['GEM_HOME']
 +      @gem_home ||= File.join("/var/lib/gems", Config::CONFIG['ruby_version'])
-+		##############
-       set_home(ENV['GEM_HOME'] || default_dir) unless @gem_home
++      #set_home(ENV['GEM_HOME'] || default_dir) unless @gem_home
++		  ##############
        @gem_home
      end

Modified: packages/libgems-ruby/trunk/debian/rules
===================================================================
--- packages/libgems-ruby/trunk/debian/rules	2006-04-22 08:55:37 UTC (rev 511)
+++ packages/libgems-ruby/trunk/debian/rules	2006-04-22 15:35:53 UTC (rev 512)
@@ -13,6 +13,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+include /usr/share/ruby-pkg-tools/1/rules/uploaders.mk
+
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
@@ -42,7 +44,7 @@
 
 	touch build-stamp
  
-clean: clean1 unpatch
+clean:: clean1 unpatch
 clean1:
 	dh_testdir
 	dh_testroot




More information about the pkg-ruby-extras-maintainers mailing list