[DRE-commits] [SCM] debian packaging for ruby-benchmark-ips. branch, master, updated. upstream/1.2.0+git.20130122.fcff7f-8-ge0aed62

Per Andersson avtobiff at gmail.com
Sun Jun 9 14:48:57 UTC 2013


The following commit has been merged in the master branch:
commit 53dc3544562d13a6739d364eed6479ca04e5a3f0
Author: Per Andersson <avtobiff at gmail.com>
Date:   Sun Jun 9 16:38:56 2013 +0200

    Build documentation and ship it
    
    New binary package ruby-benchmark-ips-doc.

diff --git a/debian/control b/debian/control
index f349a4b..9e8242d 100644
--- a/debian/control
+++ b/debian/control
@@ -17,8 +17,28 @@ XS-Ruby-Versions: all
 Package: ruby-benchmark-ips
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ruby | ruby-interpreter
+Suggests:
+ ruby-benchmark-ips-doc
 Description: iterations per second enhancement to Benchmark
  Benchmark/ips benchmarks a blocks iterations/second. For short snippets of
  code, ips automatically figures out how many times to run the code to get
  interesting data. No more guessing at random iteration counts.
+
+Package: ruby-benchmark-ips-doc
+Architecture: all
+Section: doc
+Depends:
+ ${misc:Depends},
+ libjs-jquery
+Suggests:
+ ruby-benchmark-ips
+Description: iterations per second enhancement to Benchmark (documentation)
+ Benchmark/ips benchmarks a blocks iterations/second. For short snippets of
+ code, ips automatically figures out how many times to run the code to get
+ interesting data. No more guessing at random iteration counts.
+ .
+ This package contains the html documentation for ruby-benchmark-ips.
diff --git a/debian/ruby-benchmark-ips-doc.doc-base b/debian/ruby-benchmark-ips-doc.doc-base
new file mode 100644
index 0000000..1ddf17a
--- /dev/null
+++ b/debian/ruby-benchmark-ips-doc.doc-base
@@ -0,0 +1,12 @@
+Document: ruby-benchmark-ips-doc
+Title: Debian ruby-benchmark-ips manual
+Author: Evan Phoenix
+Abstract: iterations per second enhancement to Benchmark
+ Benchmark/ips benchmarks a blocks iterations/second. For short snippets of
+ code, ips automatically figures out how many times to run the code to get
+ interesting data. No more guessing at random iteration counts.
+Section: Programming/Ruby
+
+Format: HTML
+Index: /usr/share/doc/ruby-benchmark-ips-doc/html/index.html
+Files: /usr/share/doc/ruby-benchmark-ips-doc/html/*
diff --git a/debian/ruby-benchmark-ips-doc.install b/debian/ruby-benchmark-ips-doc.install
new file mode 100644
index 0000000..56592f5
--- /dev/null
+++ b/debian/ruby-benchmark-ips-doc.install
@@ -0,0 +1 @@
+doc/*   usr/share/doc/ruby-benchmark-ips-doc/html/
diff --git a/debian/ruby-benchmark-ips-doc.links b/debian/ruby-benchmark-ips-doc.links
new file mode 100644
index 0000000..b825c99
--- /dev/null
+++ b/debian/ruby-benchmark-ips-doc.links
@@ -0,0 +1 @@
+usr/share/javascript/jquery/jquery.js usr/share/doc/ruby-benchmark-ips-doc/html/js/jquery.js
diff --git a/debian/rules b/debian/rules
index 1fa68e3..9ecd3cb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,8 +14,19 @@
 %:
 	dh $@ --buildsystem=ruby --with ruby
 
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf doc
+
+override_dh_auto_build:
+	dh_auto_build
+	# build documentation
+	rdoc --main=README.txt lib
+
 override_dh_auto_install:
 	dh_auto_install
+	# remove bundled jquery.js
+	rm -f debian/ruby-benchmark-ips-doc/usr/share/doc/ruby-benchmark-ips-doc/html/js/jquery.js
 	# remove unused script
 	rm -f debian/ruby-benchmark-ips/usr/bin/benchmark_ips
 	rmdir debian/ruby-benchmark-ips/usr/bin

-- 
debian packaging for ruby-benchmark-ips.



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