[DRE-commits] [SCM] ruby-mocha.git branch, master, updated. debian/0.11.3-2-20-g57274dd

Cédric Boutillier boutil at debian.org
Sat Apr 13 13:57:19 UTC 2013


The following commit has been merged in the master branch:
commit 1804a0763382904d6e1cb789eaf1f049f32c3577
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon Apr 8 08:38:40 2013 +0200

    build documentation with yard; add build-dep on yard, remove build-dep on libjs-jquery

diff --git a/debian/control b/debian/control
index 193d32e..d032613 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Antonio Terceiro <terceiro at debian.org>, Paul van Tilburg <paulvt at debian.org>, Cédric Boutillier <boutil at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-metaclass, ruby-introspection, ruby-minitest, libjs-jquery
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-metaclass, ruby-introspection, ruby-minitest, yard
 Standards-Version: 3.9.4
 Homepage: http://mocha.rubyforge.org/
 Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-mocha.git;a=summary
diff --git a/debian/rules b/debian/rules
index 8cd906e..25fa6c1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,8 +11,18 @@
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec
 
+UPSTREAM_VERSION := $(shell dpkg-parsechangelog | grep "^Version:" | cut -d\  -f2 | cut -d- -f1)
+
 %:
 	dh $@ --buildsystem=ruby --with ruby
 
 override_dh_installchangelogs:
 	dh_installchangelogs RELEASE.md -O--buildsystem=ruby
+
+override_dh_install:
+	yard --title "Mocha $(UPSTREAM_VERSION)"
+	dh_install
+
+override_dh_clean:
+	rm -rf doc/ .yardoc/
+	dh_clean

-- 
ruby-mocha.git



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