[DRE-commits] [SCM] debian packaging for ruby-benchmark-suite. branch, master, updated. upstream/1.0.0+git.20130122.5bded6-1-g03f88c7

Per Andersson avtobiff at gmail.com
Sun Jun 9 16:05:49 UTC 2013


The following commit has been merged in the master branch:
commit 03f88c7028f28a45595ee708e04d069b1f80d2d6
Author: Per Andersson <avtobiff at gmail.com>
Date:   Sun Jun 9 17:59:42 2013 +0200

    Initial Debianization

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1dce138
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ruby-benchmark-suite (1.0.0+git.20130122.5bded6-1) unstable; urgency=low
+
+  * Initial release (Closes: #698729)
+
+ -- Per Andersson <avtobiff at gmail.com>  Sun, 09 Jun 2013 17:03:30 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..cc79672
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,47 @@
+Source: ruby-benchmark-suite
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Per Andersson <avtobiff at gmail.com>
+Build-Depends:
+ debhelper (>= 7.0.50~),
+ gem2deb (>= 0.3.0~),
+ rdoc,
+ ruby-benchmark-ips
+Standards-Version: 3.9.4
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-benchmark-suite.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-benchmark-suite.git;a=summary
+Homepage: http://github.com/evanphx/benchmark_suite
+XS-Ruby-Versions: all
+
+Package: ruby-benchmark-suite
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+ ruby | ruby-interpreter,
+ ruby-benchmark-ips
+Suggests:
+ ruby-benchmark-suite-doc
+Description: enhancements to the standard library benchmark.rb
+ This package contains a command line tool for running multiple benchmarks
+ against multiple rubies.
+ .
+ It is also uses benchmark/ips to report iterations per second.
+
+Package: ruby-benchmark-suite-doc
+Architecture: all
+Section: doc
+Depends:
+ ${misc:Depends},
+ libjs-jquery
+Suggests:
+ ruby-benchmark-suite
+Description: enhancements to the standard library benchmark.rb (documentation)
+ This package contains a command line tool for running multiple benchmarks
+ against multiple rubies.
+ .
+ It is also uses benchmark/ips to report iterations per second.
+ .
+ This package contains the html documentation for ruby-benchmark-suite.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4da696d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: benchmark_suite
+Homepage: http://github.com/evanphx/benchmark_suite
+
+Files: *
+Copyright: 2011-2012 Evan Phoenix <evan at phx.io>
+License: MIT
+
+Files: debian/*
+Copyright: 2013 Per Andersson <avtobiff at gmail.com>
+License: MIT
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ 'Software'), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/debian/patches/0001-Hardwire-Debian-lib-path.patch b/debian/patches/0001-Hardwire-Debian-lib-path.patch
new file mode 100644
index 0000000..740d6b7
--- /dev/null
+++ b/debian/patches/0001-Hardwire-Debian-lib-path.patch
@@ -0,0 +1,23 @@
+From: Per Andersson <avtobiff at gmail.com>
+Date: Sun, 9 Jun 2013 17:51:39 +0200
+Subject: Hardwire Debian lib path
+
+---
+ bin/benchmark |    4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/bin/benchmark b/bin/benchmark
+index 55a55e5..0e4e3d3 100755
+--- a/bin/benchmark
++++ b/bin/benchmark
+@@ -3,7 +3,9 @@
+ require 'optparse'
+ require 'tempfile'
+ 
+-lib_path = File.expand_path("../../lib", __FILE__)
++#lib_path = File.expand_path("../../lib", __FILE__)
++# Debian lib path
++lib_path = "/usr/lib/ruby/vendor_ruby"
+ 
+ $:.unshift lib_path
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8f9f5bd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Hardwire-Debian-lib-path.patch
diff --git a/debian/ruby-benchmark-suite-doc.doc-base b/debian/ruby-benchmark-suite-doc.doc-base
new file mode 100644
index 0000000..c0d928f
--- /dev/null
+++ b/debian/ruby-benchmark-suite-doc.doc-base
@@ -0,0 +1,13 @@
+Document: ruby-benchmark-suite-doc
+Title: Debian ruby-benchmark-suite manual
+Author: Evan Phoenix
+Abstract: enhancements to the standard library benchmark.rb
+ This package contains a command line tool for running multiple benchmarks
+ against multiple rubies.
+ .
+ It is also uses benchmark/ips to report iterations per second.
+Section: Programming/Ruby
+
+Format: HTML
+Index: /usr/share/doc/ruby-benchmark-suite-doc/html/index.html
+Files: /usr/share/doc/ruby-benchmark-suite-doc/html/*
diff --git a/debian/ruby-benchmark-suite-doc.install b/debian/ruby-benchmark-suite-doc.install
new file mode 100644
index 0000000..a9b4f82
--- /dev/null
+++ b/debian/ruby-benchmark-suite-doc.install
@@ -0,0 +1 @@
+doc/*   usr/share/doc/ruby-benchmark-suite-doc/html/
diff --git a/debian/ruby-benchmark-suite-doc.links b/debian/ruby-benchmark-suite-doc.links
new file mode 100644
index 0000000..9679645
--- /dev/null
+++ b/debian/ruby-benchmark-suite-doc.links
@@ -0,0 +1 @@
+usr/share/javascript/jquery/jquery.js usr/share/doc/ruby-benchmark-suite-doc/html/js/jquery.js
diff --git a/debian/ruby-benchmark-suite.1 b/debian/ruby-benchmark-suite.1
new file mode 100644
index 0000000..6077048
--- /dev/null
+++ b/debian/ruby-benchmark-suite.1
@@ -0,0 +1,22 @@
+.TH "RUBY-BENCHMARK-SUITE" "1" "June 2013" "ruby-benchmark-suite 1.0.0" "Ruby Benchmark Suite"
+.SH NAME
+ruby-benchmark-suite \- run multiple benchmarks against multiple rubies.
+.SH SYNOPSIS
+.B ruby-benchmark-suite
+[\fIoptions\fR]
+.SH DESCRIPTION
+.TP
+\fB\-t\fR, \fB\-\-target\fR TARGET
+Use TARGET to compare against: r:ruby|r19:ruby19|x:rbx|j:jruby
+.TP
+\fB\-p\fR, \fB\-\-profile\fR
+Profile code while benchmarking (rbx only)
+.TP
+\fB\-e\fR, \fB\-\-end\fR
+Report all stats after all suitse have run
+.TP
+\fB\-T\fR OPTION
+Add more arguments to each target
+.TP
+\fB\-s\fR, \fB\-\-save\fR PATH
+Save the results to a file
diff --git a/debian/ruby-benchmark-suite.docs b/debian/ruby-benchmark-suite.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ruby-benchmark-suite.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ruby-benchmark-suite.manpages b/debian/ruby-benchmark-suite.manpages
new file mode 100644
index 0000000..3cbb352
--- /dev/null
+++ b/debian/ruby-benchmark-suite.manpages
@@ -0,0 +1 @@
+debian/ruby-benchmark-suite.1
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
new file mode 100644
index 0000000..d20ea04
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1,2 @@
+$: << 'lib' << 'test'
+require 'test/test_benchmark_suite'
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1dc1648
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,31 @@
+#!/usr/bin/make -f
+#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
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf doc
+
+override_dh_auto_build:
+	dh_auto_build
+	# build documentation
+	rdoc --main=README.md lib
+
+override_dh_auto_install:
+	dh_auto_install
+	# remove bundled jquery.js
+	rm -f debian/ruby-benchmark-suite-doc/usr/share/doc/ruby-benchmark-suite-doc/html/js/jquery.js
+	# rename generic benchmark binary
+	mv debian/ruby-benchmark-suite/usr/bin/benchmark debian/ruby-benchmark-suite/usr/bin/ruby-benchmark-suite
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..4aceb10
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1 @@
+unapply-patches
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..3eb1346
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://githubredir.debian.net/github/evanphx/benchmark_suite/ (.*)\.tar\.gz

-- 
debian packaging for ruby-benchmark-suite.



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