[DRE-commits] [SCM] gem2deb.git branch, master, updated. debian/0.2.3-20-g80a639e

Vincent Fourmond fourmond at debian.org
Mon Jun 6 07:44:01 UTC 2011


The following commit has been merged in the master branch:
commit 6810cc5ca72b146502312e9e8b0a89587473b948
Author: Vincent Fourmond <fourmond at debian.org>
Date:   Thu May 12 14:35:30 2011 +0200

    Implement a new dh_auto build system: rubysetuprb

diff --git a/debhelper7/buildsystem/rubysetuprb.pm b/debhelper7/buildsystem/rubysetuprb.pm
new file mode 100644
index 0000000..bb2ee3f
--- /dev/null
+++ b/debhelper7/buildsystem/rubysetuprb.pm
@@ -0,0 +1,53 @@
+# A debhelper build system class for building Ruby projects.
+#
+# Copyright: © 2011 Vincent Fourmond
+# License: GPL-2+
+# Based on the ruby.pm build system
+
+package Debian::Debhelper::Buildsystem::rubysetuprb;
+
+use strict;
+use base 'Debian::Debhelper::Buildsystem';
+
+sub DESCRIPTION {
+	"Ruby (Gem2Deb+setup.rb)"
+}
+
+sub check_auto_buildable {
+	my $this=shift;
+	return 0;		# Never autobuildable
+}
+
+sub new {
+	my $class=shift;
+	my $this=$class->SUPER::new(@_);
+	$this->enforce_in_source_building();
+	return $this;
+}
+
+sub configure {
+	my $this=shift;
+	$this->doit_in_sourcedir("dh_ruby", "--setuprb", "--configure", @_);
+}
+
+sub build {
+	my $this=shift;
+	$this->doit_in_sourcedir("dh_ruby", "--setuprb", "--build", @_);
+}
+
+sub test {
+	my $this=shift;
+	$this->doit_in_sourcedir("dh_ruby", "--setuprb", "--test", @_);
+}
+
+sub install {
+	my $this=shift;
+	$this->doit_in_sourcedir("dh_ruby", "--setuprb", "--install", @_);
+}
+
+sub clean {
+	my $this=shift;
+	$this->doit_in_sourcedir("dh_ruby", "--setuprb", "--clean", @_);
+}
+
+1
diff --git a/debian/gem2deb.install b/debian/gem2deb.install
index b853bb3..12b3bf5 100644
--- a/debian/gem2deb.install
+++ b/debian/gem2deb.install
@@ -1,4 +1,4 @@
 bin/* /usr/bin/
 lib/* /usr/lib/ruby/vendor_ruby/
-debhelper7/buildsystem/ruby.pm /usr/share/perl5/Debian/Debhelper/Buildsystem/
+debhelper7/buildsystem/ruby*.pm /usr/share/perl5/Debian/Debhelper/Buildsystem/
 debhelper7/sequence/ruby.pm /usr/share/perl5/Debian/Debhelper/Sequence/

-- 
gem2deb.git



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