[DebianGIS-dev] [SCM] ruby-hdfeos5 branch, master, updated. upstream/1.0-2-g3cf8f0d

Youhei SASAKI uwabami at gfd-dennou.org
Mon Dec 13 19:39:19 UTC 2010


The following commit has been merged in the master branch:
commit 3cf8f0df864e26b745309d608d9dcffd809d2e3c
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date:   Tue Dec 14 04:37:13 2010 +0900

    Update for Ruby1.9.2
    
    * Bump Standard Version: 3.9.1
    * Add support Ruby 1.9.2(from CVS HEAD)
    * Add testsuite in extconf.rb
    * Change Maintainer: Debian GIS Project
    * Add me to Uploadres
    * Add DM-Upload-Allowed: I became DM
    * Add Vcs-* field

diff --git a/debian/changelog b/debian/changelog
index e027fc0..1452fb7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,4 +2,4 @@ ruby-hdfeos5 (1.0-1) unstable; urgency=low
 
   * Initial release (Closes: #574423) 
 
- -- Youhei SASAKI <uwabami at gfd-dennou.org>  Wed, 17 Mar 2010 16:51:58 +0900
+ -- Youhei SASAKI <uwabami at gfd-dennou.org>  Tue, 14 Dec 2010 04:22:48 +0900
diff --git a/debian/control b/debian/control
index 6a68a24..147a06a 100644
--- a/debian/control
+++ b/debian/control
@@ -1,12 +1,16 @@
 Source: ruby-hdfeos5
 Section: ruby
 Priority: optional
-Maintainer: Youhei SASAKI <uwabami at gfd-dennou.org>
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: Youhei SASAKI <uwabami at gfd-dennou.org>
+DM-Upload-Allowed: yes
 Build-Depends: cdbs, debhelper (>= 7.0.50~), ruby-pkg-tools, quilt,
-  ruby1.8, ruby1.8-dev, libnarray-ruby1.8,
-  ruby1.9.1, ruby1.9.1-dev, libnarray-ruby1.9.1,
+  ruby1.8, ruby1.8-dev, libnarray-ruby1.8, libnarray-miss-ruby1.8, 
+  ruby1.9.1, ruby1.9.1-dev, libnarray-ruby1.9.1, libnarray-miss-ruby1.9.1,
   libhe5-hdfeos-dev, libgctp-dev, libhdf5-serial-dev
-Standards-Version: 3.8.4
+Standards-Version: 3.9.1
+Vcs-Git: git://git.debian.org/git/pkg-grass/ruby-hdfeos5.git
+Vcs-Browser: http://git.debian.org/?p=pkg-grass/ruby-hdfeos5.git
 Homepage: http://ruby.gfd-dennou.org/products/ruby-hdfeos5/
 
 Package: libhdfeos5-ruby
@@ -22,6 +26,7 @@ Description: Ruby interface to the HDF-EOS5 library
 Package: libhdfeos5-ruby1.8
 Architecture: any
 Depends: ruby1.8, libnarray-miss-ruby1.8, ${shlibs:Depends}, ${misc:Depends}
+Suggests: libhdfeos5-ruby-doc
 Description: Ruby interface to the HDF-EOS5 library
  Ruby interface to the HDF-EOS5 library built on the NArray library,
  which is an efficient multi-dimensional numeric array class for Ruby.
@@ -45,6 +50,7 @@ Description: Ruby interface to the HDF-EOS5 library
 Package: libhdfeos5-ruby1.9.1
 Architecture: any
 Depends: ruby1.9.1, libnarray-miss-ruby1.9.1, ${shlibs:Depends}, ${misc:Depends}
+Suggests: libhdfeos5-ruby-doc
 Description: Ruby interface to the HDF-EOS5 library
  Ruby interface to the HDF-EOS5 library built on the NArray library,
  which is an efficient multi-dimensional numeric array class for Ruby.
@@ -65,3 +71,12 @@ Description: Ruby interface to the HDF-EOS5 library
  easier to interpret core dumps. Most people will not need this
  package.
 
+Package: libhdfeos5-ruby-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Description: Ruby HDF-EOS library API documents 
+ Ruby interface to the HDF-EOS5 library built on the NArray library,
+ which is an efficient multi-dimensional numeric array class for Ruby.
+ .
+ This package provides all API Documents.
diff --git a/debian/patches/AddlibgctpEntry b/debian/patches/AddlibgctpEntry
index eca8391..d1a4b14 100644
--- a/debian/patches/AddlibgctpEntry
+++ b/debian/patches/AddlibgctpEntry
@@ -1,5 +1,5 @@
---- ruby-hdfeos5-1.0.orig/extconf.rb
-+++ ruby-hdfeos5-1.0/extconf.rb
+--- ruby-hdfeos5.orig/extconf.rb
++++ ruby-hdfeos5/extconf.rb
 @@ -1,6 +1,6 @@
  require "mkmf"
  
@@ -8,11 +8,12 @@
  
  if ( ! ( have_header("narray.h") && have_header("narray_config.h") ) ) then
  print <<EOS
-@@ -14,6 +14,15 @@
-    exit(-1)
+@@ -32,9 +32,18 @@
+   exit(-1)
  end
  
-+dir_config('gctp', $sitearchdir, $sitearchdir)
+-dir_config('hdfeos5',$sitearchdir,$sitearchdir)
++dir_config('gctp', $archdir, $archdir)
 +if ( ! have_library("gctp") ) then
 +  print <<-EOS
 +  ** configure error **
@@ -21,6 +22,10 @@
 +  exit(-1)
 +end
 +
- dir_config('hdfeos5',$sitearchdir,$sitearchdir)
++dir_config('hdfeos5',$archdir,$archdir)
  
- if ( ! ( have_header("hdf5.h") && have_header("HE5_HdfEosDef.h") && have_library("he5_hdfeos") && have_library("hdf5")  ) )then
+-if ( ! ( have_header("HE5_HdfEosDef.h") && have_library("Gctp") && have_library("he5_hdfeos")  ) )then
++if ( ! ( have_header("HE5_HdfEosDef.h") && have_library("gctp") && have_library("he5_hdfeos")  ) )then
+   print <<-EOS
+     ** configure error **  
+        Header hdfeos5.h or the compiled hdfeos5 library is not found. 
diff --git a/debian/patches/SupportRuby1.9.1 b/debian/patches/CVSupdate
similarity index 88%
rename from debian/patches/SupportRuby1.9.1
rename to debian/patches/CVSupdate
index 3f47703..0a2f9fa 100644
--- a/debian/patches/SupportRuby1.9.1
+++ b/debian/patches/CVSupdate
@@ -1,5 +1,135 @@
---- ruby-hdfeos5.orig/hdfeos5_chkdatatype.c
-+++ ruby-hdfeos5/hdfeos5_chkdatatype.c
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ruby-hdfeos5~/ChangeLog ruby-hdfeos5/ChangeLog
+--- ruby-hdfeos5~/ChangeLog	2010-12-13 19:22:54.000000000 +0900
++++ ruby-hdfeos5/ChangeLog	2010-12-13 19:23:11.000000000 +0900
+@@ -6,18 +6,47 @@
+  This script is available from  http://www.red-bean.com/cvs2cl/
+ 
+ 
++2010-04-05 Monday 15:55  koshiro
++
++	* hdfeos5_chkdatatype.c (1.4), hdfeos5_obj2cary.c (1.4),
++	  hdfeos5gd_wrap.c (1.5), hdfeos5main_wrap.c (1.3),
++	  hdfeos5pt_wrap.c (1.3), hdfeos5sw_wrap.c (1.12), hdfeos5za_wrap.c
++	  (1.6):
++
++	  * Ruby 1.9 compatibility
++
++2010-04-05 Monday 15:28  koshiro
++
++	* extconf.rb (1.2):
++
++	  * extconf.rb: bug fix.
++
++2009-07-03 Friday 19:42  horikawa
++
++	* lib/hdfeos5.rb (1.21, ruby-hdfeos5-1_0):
++	   bugfix
++
++2009-04-24 Friday 16:20  horikawa
++
++	* ChangeLog (1.8, ruby-hdfeos5-1_0), hdfeos5za_wrap.c (1.5,
++	  ruby-hdfeos5-1_0), lib/hdfeos5.rb (1.20), test/test_za.rb (1.3,
++	  ruby-hdfeos5-1_0): changed  info() to  fieldinfo()
++
+ 2009-04-22 Wednesday 13:54  horikawa
+ 
+-	* ChangeLog (1.7), hdfeos5pt_wrap.c (1.2), test/test_pt.rb (1.2):
+-	  supported linkage point (point wrapper)
++	* ChangeLog (1.7), hdfeos5pt_wrap.c (1.2, ruby-hdfeos5-1_0),
++	  test/test_pt.rb (1.2, ruby-hdfeos5-1_0): supported linkage point
++	  (point wrapper)
+ 
+ 2009-04-20 Monday 13:11  horikawa
+ 
+-	* ChangeLog (1.6), hdfeos5_chkdatatype.c (1.3), hdfeos5_obj2cary.c
+-	  (1.3), hdfeos5gd_wrap.c (1.4), hdfeos5main_wrap.c (1.2),
+-	  hdfeos5pt_wrap.c (1.1), hdfeos5sw_wrap.c (1.11), hdfeos5za_wrap.c
+-	  (1.4), lib/hdfeos5.rb (1.19), test/test_gd.rb (1.2),
+-	  test/test_pt.rb (1.1), test/test_sw.rb (1.2), test/test_za.rb
++	* ChangeLog (1.6), hdfeos5_chkdatatype.c (1.3, ruby-hdfeos5-1_0),
++	  hdfeos5_obj2cary.c (1.3, ruby-hdfeos5-1_0), hdfeos5gd_wrap.c
++	  (1.4, ruby-hdfeos5-1_0), hdfeos5main_wrap.c (1.2,
++	  ruby-hdfeos5-1_0), hdfeos5pt_wrap.c (1.1), hdfeos5sw_wrap.c
++	  (1.11, ruby-hdfeos5-1_0), hdfeos5za_wrap.c (1.4), lib/hdfeos5.rb
++	  (1.19), test/test_gd.rb (1.2, ruby-hdfeos5-1_0), test/test_pt.rb
++	  (1.1), test/test_sw.rb (1.2, ruby-hdfeos5-1_0), test/test_za.rb
+ 	  (1.2): modified simple_put and put_with_miss modified the
+ 	  readfield function ( swath / grid / zonal ) modified
+ 	  HE5Wrap_store_NArray1D_or_str added point wrapper ( support only
+@@ -53,10 +82,13 @@
+ 
+ 2009-03-06 Friday 11:40  horikawa
+ 
+-	* test/: MLS-Aura_L2GP-O3_v02-21-c01_2007d059.he5 (1.1),
++	* test/: MLS-Aura_L2GP-O3_v02-21-c01_2007d059.he5 (1.1,
++	  ruby-hdfeos5-1_0),
+ 	  OMI-Aura_L2-OMAERO_2008m0229t0011-o19277_v003-2008m0229t061514.he5
+-	  (1.1), OMI-Aura_L3-OMAEROe_2008m0101_v003-2009m0114t114202.he5
+-	  (1.1), test_gd.rb (1.1), test_sw.rb (1.1), test_za.rb (1.1):
++	  (1.1, ruby-hdfeos5-1_0),
++	  OMI-Aura_L3-OMAEROe_2008m0101_v003-2009m0114t114202.he5 (1.1,
++	  ruby-hdfeos5-1_0), test_gd.rb (1.1), test_sw.rb (1.1), test_za.rb
++	  (1.1):
+ 	  * Set up testfile(test_sw,test_gd,test_za) and
+ 	  testdata(AIRS,MLS,OMI).
+ 
+@@ -214,7 +246,7 @@
+ 
+ 2008-06-09 Monday 15:03  horinout
+ 
+-	* Makefile (1.2), Makefile_CL (1.1):
++	* Makefile (1.2), Makefile_CL (1.1, ruby-hdfeos5-1_0):
+ 	  * Renamed Makefile to create ChangeLog to Makefile_CL
+ 
+ 2008-06-09 Monday 14:52  horinout
+@@ -247,8 +279,8 @@
+ 
+ 2008-06-05 Thursday 18:17  horikawa
+ 
+-	* SWapi.c (1.1.1.1), extconf.rb (1.1.1.1), hdfeos5_cary2obj.c
+-	  (1.1.1.1), hdfeos5_obj2cary.c (1.1.1.1), lib/numru/hdfeos5.rb
+-	  (1.1.1.1) (utags: Initial): initial import of ruby-hdfeos5 into
+-	  CVS
++	* SWapi.c (1.1.1.1), extconf.rb (1.1.1.1, ruby-hdfeos5-1_0),
++	  hdfeos5_cary2obj.c (1.1.1.1, ruby-hdfeos5-1_0),
++	  hdfeos5_obj2cary.c (1.1.1.1), lib/numru/hdfeos5.rb (1.1.1.1)
++	  (utags: Initial): initial import of ruby-hdfeos5 into CVS
+ 
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ruby-hdfeos5~/extconf.rb ruby-hdfeos5/extconf.rb
+--- ruby-hdfeos5~/extconf.rb	2010-12-13 19:22:54.000000000 +0900
++++ ruby-hdfeos5/extconf.rb	2010-12-13 19:23:11.000000000 +0900
+@@ -14,9 +14,27 @@
+    exit(-1)
+ end
+ 
++dir_config('hdf5',$sitearchdir,$sitearchdir)
++
++if ( ! ( have_header("hdf5.h") && have_library("hdf5")  ) )then
++  print <<-EOS
++    ** configure error **  
++       Header hdf.h or the compiled hdf5 library is not found. 
++       If you have the library installed under /hdf5dir (that is, hdf5.h is
++       in /hdf5dir/include and the library in /hdf5dir/lib/),
++       try the following:
++
++       % ruby extconf.rb --with-hdf5-dir=/hdf5dir
++
++       Alternatively, you can specify the two directory separately
++       with --with-hdf5-include and --with-hdf5-lib.
++  EOS
++  exit(-1)
++end
++
+ dir_config('hdfeos5',$sitearchdir,$sitearchdir)
+ 
+-if ( ! ( have_header("hdf5.h") && have_header("HE5_HdfEosDef.h") && have_library("he5_hdfeos") && have_library("hdf5")  ) )then
++if ( ! ( have_header("HE5_HdfEosDef.h") && have_library("Gctp") && have_library("he5_hdfeos")  ) )then
+   print <<-EOS
+     ** configure error **  
+        Header hdfeos5.h or the compiled hdfeos5 library is not found. 
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ruby-hdfeos5~/hdfeos5_chkdatatype.c ruby-hdfeos5/hdfeos5_chkdatatype.c
+--- ruby-hdfeos5~/hdfeos5_chkdatatype.c	2010-12-13 19:22:54.000000000 +0900
++++ ruby-hdfeos5/hdfeos5_chkdatatype.c	2010-12-13 19:23:11.000000000 +0900
 @@ -5,8 +5,9 @@
  #include "narray.h"
  #include<string.h>
@@ -11,8 +141,9 @@
  #endif
  
  static VALUE rb_eHE5Error;
---- ruby-hdfeos5.orig/hdfeos5_obj2cary.c
-+++ ruby-hdfeos5/hdfeos5_obj2cary.c
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ruby-hdfeos5~/hdfeos5_obj2cary.c ruby-hdfeos5/hdfeos5_obj2cary.c
+--- ruby-hdfeos5~/hdfeos5_obj2cary.c	2010-12-13 19:22:54.000000000 +0900
++++ ruby-hdfeos5/hdfeos5_obj2cary.c	2010-12-13 19:23:11.000000000 +0900
 @@ -2,6 +2,17 @@
  #include "ruby.h"
  #include "narray.h"
@@ -106,8 +237,9 @@
  
      rtn = ALLOC_N(float , len);
  
---- ruby-hdfeos5.orig/hdfeos5gd_wrap.c
-+++ ruby-hdfeos5/hdfeos5gd_wrap.c
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ruby-hdfeos5~/hdfeos5gd_wrap.c ruby-hdfeos5/hdfeos5gd_wrap.c
+--- ruby-hdfeos5~/hdfeos5gd_wrap.c	2010-12-13 19:22:54.000000000 +0900
++++ ruby-hdfeos5/hdfeos5gd_wrap.c	2010-12-13 19:23:11.000000000 +0900
 @@ -5,8 +5,15 @@
  #include "narray.h"
  #include<string.h>
@@ -653,8 +785,9 @@
          if(l_edge < 0) {
        l_edge +=hs_dims[i];
          }
---- ruby-hdfeos5.orig/hdfeos5main_wrap.c
-+++ ruby-hdfeos5/hdfeos5main_wrap.c
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ruby-hdfeos5~/hdfeos5main_wrap.c ruby-hdfeos5/hdfeos5main_wrap.c
+--- ruby-hdfeos5~/hdfeos5main_wrap.c	2010-12-13 19:22:54.000000000 +0900
++++ ruby-hdfeos5/hdfeos5main_wrap.c	2010-12-13 19:23:11.000000000 +0900
 @@ -6,7 +6,7 @@
  #include<string.h>
  
@@ -664,8 +797,9 @@
  #endif
  
  VALUE rb_eHE5Error;
---- ruby-hdfeos5.orig/hdfeos5pt_wrap.c
-+++ ruby-hdfeos5/hdfeos5pt_wrap.c
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ruby-hdfeos5~/hdfeos5pt_wrap.c ruby-hdfeos5/hdfeos5pt_wrap.c
+--- ruby-hdfeos5~/hdfeos5pt_wrap.c	2010-12-13 19:22:54.000000000 +0900
++++ ruby-hdfeos5/hdfeos5pt_wrap.c	2010-12-13 19:23:11.000000000 +0900
 @@ -5,8 +5,9 @@
  #include "narray.h"
  #include<string.h>
@@ -677,8 +811,9 @@
  #endif
  
  extern int   check_numbertype(char *);
---- ruby-hdfeos5.orig/hdfeos5sw_wrap.c
-+++ ruby-hdfeos5/hdfeos5sw_wrap.c
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ruby-hdfeos5~/hdfeos5sw_wrap.c ruby-hdfeos5/hdfeos5sw_wrap.c
+--- ruby-hdfeos5~/hdfeos5sw_wrap.c	2010-12-13 19:22:54.000000000 +0900
++++ ruby-hdfeos5/hdfeos5sw_wrap.c	2010-12-13 19:23:11.000000000 +0900
 @@ -5,8 +5,15 @@
  #include "narray.h"
  #include<string.h>
@@ -1224,8 +1359,9 @@
          if(l_edge < 0) {
  	  l_edge +=hs_dims[i];
          }
---- ruby-hdfeos5.orig/hdfeos5za_wrap.c
-+++ ruby-hdfeos5/hdfeos5za_wrap.c
+diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' ruby-hdfeos5~/hdfeos5za_wrap.c ruby-hdfeos5/hdfeos5za_wrap.c
+--- ruby-hdfeos5~/hdfeos5za_wrap.c	2010-12-13 19:22:54.000000000 +0900
++++ ruby-hdfeos5/hdfeos5za_wrap.c	2010-12-13 19:23:11.000000000 +0900
 @@ -5,8 +5,15 @@
  #include "narray.h"
  #include<string.h>
diff --git a/debian/patches/ChangeTestPATH b/debian/patches/ChangeTestPATH
new file mode 100644
index 0000000..a5a0d45
--- /dev/null
+++ b/debian/patches/ChangeTestPATH
@@ -0,0 +1,17 @@
+--- ruby-hdfeos5.orig/extconf.rb
++++ ruby-hdfeos5/extconf.rb
+@@ -77,8 +77,12 @@
+    when /^all:/
+       newmkfl.puts(line)
+       newmkfl.puts("")         
+-      newmkfl.puts("test: all")            # insert the "test" target
+-      newmkfl.puts("\t\t at cd test && ruby test.rb && echo 'test did not fail :-p (please ignore the warnings)' && cd ..") 
++      newmkfl.puts("\t\t-@( [ ! -d lib/numru ] && ( mkdir -p lib/numru && cd lib/numru && ln -s ../../hdfeos5raw.so hdfeos5raw.so && ln -s ../hdfeos5.rb hdfeos5.rb )) ") 
++      newmkfl.puts("\t\tcd test && /usr/bin/ruby$(CDBS_RUBY_VER) -I../lib test_gd.rb 1>/dev/null && cd ..")
++      newmkfl.puts("\t\tcd test && /usr/bin/ruby$(CDBS_RUBY_VER) -I../lib test_pt.rb 1>/dev/null && cd ..")
++      newmkfl.puts("\t\tcd test && /usr/bin/ruby$(CDBS_RUBY_VER) -I../lib test_sw.rb 1>/dev/null && cd ..")
++      newmkfl.puts("\t\tcd test && /usr/bin/ruby$(CDBS_RUBY_VER) -I../lib test_za.rb 1>/dev/null && cd ..")
++      newmkfl.puts("\t\t-@( [ -d lib/numru ] && ( rm -rf lib/numru ))")
+    else
+       newmkfl.puts(line)
+    end
diff --git a/debian/patches/series b/debian/patches/series
index 22a8d75..396f7ac 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
+CVSupdate
 AddlibgctpEntry
-SupportRuby1.9.1
+ChangeTestPATH
diff --git a/debian/rules b/debian/rules
index 506f405..513966b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,18 +1,32 @@
 #!/usr/bin/make -f
 
-DEB_AUTO_CLEANUP_RCS := yes
-HDFEOS5_RUBY_VERSIONS = 1.8 1.9.1
-
-LIB_PACKAGE_FILTER = %-ruby $(patsubst %,\%-ruby%,$(HDFEOS5_RUBY_VERSIONS))
-
 include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/ruby-pkg-tools/1/class/ruby-extconf-rb.mk
+include /usr/share/ruby-pkg-tools/1/class/ruby-common.mk
 include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 
+HDFEOS5_RUBY_VERSIONS = 1.8 1.9.1
+LIB_PACKAGE_FILTER = %-ruby $(patsubst %,\%-ruby%,$(HDFEOS5_RUBY_VERSIONS))
+DEB_AUTO_CLEANUP_RCS := yes
+DEB_RUBY_SETUP_CMD = extconf.rb
 DEB_RUBY_SETUP_ARGS := \
 	--with-hdfeos5-dir=/usr/lib \
 	--with-hdfeos5-include=/usr/include/hdf-eos5
+cdbs_pkgdir = $(CURDIR)/debian/$(cdbs_curpkg)
+cdbs_ruby_libdir_ver = $(cdbs_pkgdir)$(DEB_RUBY_LIBDIR)
+cdbs_ruby_archdir_ver = $(cdbs_pkgdir)$(DEB_RUBY_ARCHDIR)
+DEB_RUBY_INSTALL_ARGS = DESTDIR=$(cdbs_pkgdir) \
+	sitelibdir=$(cdbs_ruby_libdir_ver) \
+        sitearchdir=$(cdbs_ruby_archdir_ver)
 
+$(patsubst %,install/%,$(DEB_RUBY_REAL_LIB_PACKAGES)) :: install/% :
+	cd $(DEB_SRCDIR) 
+	[ ! -f Makefile ] || $(MAKE) distclean
+	/usr/bin/ruby$(cdbs_ruby_ver) $(DEB_RUBY_SETUP_RUBY_ARGS) $(DEB_RUBY_SETUP_CMD) $(DEB_RUBY_SETUP_ARGS)
+	CDBS_RUBY_VER=$(cdbs_ruby_ver) $(MAKE)
+	$(MAKE) install $(DEB_RUBY_INSTALL_ARGS)
 
 clean::
+	-[ ! -f Makefile ] || $(MAKE) distclean
+	-[ ! -d lib/numru ] || rm -rf lib/numru
 	rm -f debian/*.log
+	rm -f test/test*.he5

-- 
Ruby interface of HDF-EOS5 library



More information about the Pkg-grass-devel mailing list