[DRE-commits] [ruby-odbc] 02/09: Switched package to gem2deb helper

Jonas Genannt jonas at brachium-system.net
Mon Dec 16 19:38:26 UTC 2013


This is an automated email from the git hooks/post-receive script.

hggh-guest pushed a commit to branch master
in repository ruby-odbc.

commit 89d9b48dcd6eaad9584cde9e8aee70da903abddc
Author: Jonas Genannt <jonas at brachium-system.net>
Date:   Mon Dec 16 20:08:45 2013 +0100

    Switched package to gem2deb helper
---
 debian/control |  5 ++++-
 debian/rules   | 59 ++++++++++++++--------------------------------------------
 2 files changed, 18 insertions(+), 46 deletions(-)

diff --git a/debian/control b/debian/control
index 088b5dd..1d5d134 100644
--- a/debian/control
+++ b/debian/control
@@ -3,14 +3,16 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Daigo Moriwaki <daigo at debian.org>, Deepak Tripathi <apenguinlinux at gmail.com>, Paul van Tilburg <paulvt at debian.org>
-Build-Depends: debhelper (>= 7.0.0), cdbs, quilt, ruby-pkg-tools, libiodbc2-dev, ruby1.8-dev, ruby1.8, ruby1.9.1, ruby1.9.1-dev
+Build-Depends: debhelper (>= 7.0.0), libiodbc2-dev, gem2deb (>= 0.3.0~)
 Standards-Version: 3.9.3
 Homepage: http://www.ch-werner.de/rubyodbc/
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-odbc.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-odbc.git;a=summary
+XS-Ruby-Versions: all
 
 Package: ruby-odbc
 Architecture: any
+XB-Ruby-Versions: ${ruby:Versions}
 Depends: ${shlibs:Depends}, ${misc:Depends}, libiodbc2 | unixodbc, ruby | ruby-interpreter
 Suggests: libdbi-ruby1.8, libdbi-ruby1.9
 Description: ODBC Binding for Ruby
@@ -24,6 +26,7 @@ Description: ODBC Binding for Ruby
 Package: ruby-odbc-dbg
 Section: debug
 Architecture: any
+XB-Ruby-Versions: ${ruby:Versions}
 Priority: extra
 Depends: ruby-odbc (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}
 Description: ODBC Binding for Ruby
diff --git a/debian/rules b/debian/rules
index 5103892..50f9678 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,46 +1,15 @@
 #!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-ruby_ver1.8 = 1.8
-ruby_ver1.9.1 = 1.9.1
-
-DEB_DBG_PACKAGE_ruby-odbc = ruby-odbc-dbg
-
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/patchsys-quilt.mk
-
-DEB_INSTALL_DOCS_ruby-odbc = README doc
-DEB_INSTALL_EXAMPLES_ruby-odbc = test
-
-configure/ruby-odbc::
-	for v in $(ruby_ver1.8) $(ruby_ver1.9.1) ; do \
-	  cp -r ext ext$$v; \
-	  ( cd ext$$v && ([ -e Makefile ]      || ruby$$v extconf.rb --enable-dlopen) ); \
-	  ( cd ext$$v && ([ -e utf8/Makefile ] || ruby$$v -Cutf8 extconf.rb --enable-dlopen) ); \
-	done
-
-build/ruby-odbc::
-	for v in $(ruby_ver1.8) $(ruby_ver1.9.1) ; do \
-	  ( cd ext$$v && ([ -e odbc.so ]           || $(MAKE)) ); \
-	  ( cd ext$$v && ([ -e utf8/odbc_utf8.so ] || $(MAKE) -Cutf8) ); \
-	done
- 
-install/ruby-odbc::
-	for v in $(ruby_ver1.8) $(ruby_ver1.9.1) ; do \
-	  $(MAKE) -Cext$$v      install DESTDIR=$(CURDIR)/debian/ruby-odbc sitedir='$$(prefix)/lib/ruby/vendor_ruby'; \
-	  $(MAKE) -Cext$$v/utf8 install DESTDIR=$(CURDIR)/debian/ruby-odbc sitedir='$$(prefix)/lib/ruby/vendor_ruby'; \
-	done
-
-cleanbuilddir/ruby-odbc::
-	for v in $(ruby_ver1.8) $(ruby_ver1.9.1) ; do \
-	  [ ! -e ext$$v/Makefile ]      || $(MAKE) -C ext$$v distclean; \
-	  [ ! -e ext$$v/utf8/Makefile ] || $(MAKE) -C ext$$v/utf8 distclean; \
-	done
-
-clean::
-	for v in $(ruby_ver1.8) $(ruby_ver1.9.1) ; do \
-	  rm -rf ext$$v ; \
-	done
-
+export DH_VERBOSE=1
+#
+# Uncomment to ignore all test failures (but the tests will run anyway)
+#export DH_RUBY_IGNORE_TESTS=all
+#
+# Uncomment to ignore some test failures (but the tests will run anyway).
+# Valid values:
+#export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems
+#
+# If you need to specify the .gemspec (eg there is more than one)
+#export DH_RUBY_GEMSPEC=gem.gemspec
+
+%:
+	dh $@ --buildsystem=ruby --with ruby

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-odbc.git



More information about the Pkg-ruby-extras-commits mailing list