[DRE-commits] [ruby-prof] 02/14: Imported Debian patch 0.7.3-1.1

Jonas Genannt jonas at brachium-system.net
Thu Dec 19 19:42:23 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-prof.

commit a810e0b8e4351b3309e2daffba4056b785ee687a
Author: Scott Kitterman <scott at kitterman.com>
Date:   Mon Jul 9 23:39:26 2012 -0400

    Imported Debian patch 0.7.3-1.1
---
 debian/changelog                  | 52 +++++++++++++++++++++++++++++++++++++++
 debian/compat                     |  1 +
 debian/control                    | 25 +++++++++++++++++++
 debian/copyright                  | 32 ++++++++++++++++++++++++
 debian/patches/dont-use-env.patch | 27 ++++++++++++++++++++
 debian/patches/series             |  1 +
 debian/ruby-prof.1                | 49 ++++++++++++++++++++++++++++++++++++
 debian/ruby-prof.docs             |  1 +
 debian/ruby-prof.manpages         |  1 +
 debian/rules                      | 41 ++++++++++++++++++++++++++++++
 debian/watch                      |  2 ++
 11 files changed, 232 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8de9776
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,52 @@
+ruby-prof (0.7.3-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Specify building with ruby1.8 and not just ruby in debian/rules to
+    fix FTBFS now that ruby1.9.1 is default (Closes: #676087)
+  * Manually create debian/ruby-prof/usr/lib/ruby/1.8 in install rule so files
+    are copied to the correct destination
+  * Directly build-depend and depend on ruby1.8 since it's no longer default
+
+ -- Scott Kitterman <scott at kitterman.com>  Mon, 09 Jul 2012 23:39:26 -0400
+
+ruby-prof (0.7.3-1) unstable; urgency=low
+
+  * New Upstream Version.
+  * Change section to ruby.
+  * Update standards version (no change needed).
+  * Drop rake build-dependency.
+  * Use /usr/share/quilt/quilt.make in debian/rules, refresh
+    dont-use-env.patch.
+
+ -- Arnaud Cornet <acornet at debian.org>  Sat, 21 Mar 2009 13:04:51 +0100
+
+ruby-prof (0.6.0-1) unstable; urgency=low
+
+  * New Upstream Version (Closes: #480731)
+  * Drop CDBS build-dep, add debhelper >= 7
+  * Update man page
+
+ -- Arnaud Cornet <acornet at debian.org>  Sat, 31 May 2008 10:50:26 +0200
+
+ruby-prof (0.5.2-1) unstable; urgency=low
+
+  * New Upstream Version.
+  * Add watch file.
+  * Use debian mail address.
+  * Use quilt. Refresh patch.
+  * Cleaner install in debian/rules.
+
+ -- Arnaud Cornet <acornet at debian.org>  Sat, 18 Aug 2007 10:13:34 +0200
+
+ruby-prof (0.4.1-2) unstable; urgency=low
+
+  * debian/rules: install to architecture dependent directory
+  (Closes: #409403).
+
+ -- Arnaud Cornet <arnaud.cornet at gmail.com>  Fri,  2 Feb 2007 22:10:20 +0100
+
+ruby-prof (0.4.1-1) unstable; urgency=low
+
+  * Initial release. (Closes: #392383)
+
+ -- Arnaud Cornet <arnaud.cornet at gmail.com>  Mon, 09 Oct 2006 14:47:22 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..cc2fe9e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,25 @@
+Source: ruby-prof
+Section: ruby
+Priority: optional
+Maintainer: Arnaud Cornet <acornet at debian.org>
+Standards-Version: 3.8.1
+Build-Depends: debhelper (>= 7), quilt, ruby, ruby1.8, ruby1.8-dev
+
+Package: ruby-prof
+Architecture: any
+Depends: ruby1.8, rake, ${shlibs:Depends}, ${misc:Depends}
+Description: A fast code profiler for Ruby
+ ruby-prof is runs a ruby program and keeps track of the amount of time spent
+ in each method. At the end of execution it displays collected information.
+ Its features include:
+   * Speed - it is a C extension and therefore many times faster than 
+     the standard Ruby profiler.
+   * Flat Profiles - similar to the reports generated by the standard
+     Ruby profiler.
+   * Graph profiles - similar to GProf, these show how long a method
+     runs, which methods call it and which methods it calls.
+   * Threads - supports profiling multiple threads simultaneously.
+   * Recursive calls - supports profiling recursive method calls.
+   * Reports - can generate both text and cross-referenced html reports.
+   * Output - can output to standard out or to a file.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ec59a2b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,32 @@
+This package was debianized by Arnaud Cornet <arnaud.cornet at gmail.com> on
+Tue, 10 Oct 2006 15:06:52 +0200.
+
+It was downloaded from http://rubyforge.org/projects/ruby-prof .
+
+Upstream Author: Shugo Maeda <shugo at ruby-lang.org>
+
+This software is distributed under a two-clause BSD styled license :
+
+Copyright (C) 2005  Shugo Maeda <shugo at ruby-lang.org>
+All rights reserved.
+ *
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+ *
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
diff --git a/debian/patches/dont-use-env.patch b/debian/patches/dont-use-env.patch
new file mode 100644
index 0000000..1a6b404
--- /dev/null
+++ b/debian/patches/dont-use-env.patch
@@ -0,0 +1,27 @@
+Index: ruby-prof/bin/ruby-prof
+===================================================================
+--- ruby-prof.orig/bin/ruby-prof	2008-11-12 01:48:30.000000000 +0100
++++ ruby-prof/bin/ruby-prof	2009-03-21 13:05:28.000000000 +0100
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env ruby
++#!/usr/bin/ruby
+ 
+ # == Synopsis
+ #
+Index: ruby-prof/lib/ruby-prof/task.rb
+===================================================================
+--- ruby-prof.orig/lib/ruby-prof/task.rb	2009-03-21 13:06:06.000000000 +0100
++++ ruby-prof/lib/ruby-prof/task.rb	2009-03-21 13:06:16.000000000 +0100
+@@ -1,5 +1,3 @@
+-#!/usr/bin/env ruby
+-
+ require 'rake'
+ require 'rake/testtask'
+ require 'fileutils'
+@@ -143,4 +141,4 @@
+       ENV['OPTIONS'] || @options.join(" ") || ""
+     end
+   end
+-end
+\ No newline at end of file
++end
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..834595e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+dont-use-env.patch
diff --git a/debian/ruby-prof.1 b/debian/ruby-prof.1
new file mode 100644
index 0000000..96ddec1
--- /dev/null
+++ b/debian/ruby-prof.1
@@ -0,0 +1,49 @@
+.TH RUBY-PROF 1 "14 October 2006"
+.SH NAME
+ruby-prof \- A fast ruby profiler
+.SH SYNOPSIS
+\fBruby-prof\fP [\fBoptions\fP] <\fIscript.rb\fP>  [ \fBscript-options\fP ] 
+.SH DESCRIPTION
+ruby-prof is a fast profiler for ruby. It can be used as a stand-alone program
+(that this man page documents) or as a ruby library.
+Simply run the ruby program you want to profile using ruby-prof :
+\fBruby-prof script.rb\fP
+At the end of execution the time spent in each method is displayed.
+.SH OPTIONS
+.TP
+\fB-p, --printer=printer\fP
+Select a printer:
+  flat - Prints a flat profile as text (default).
+  graph - Prints a graph profile as text.
+  graph_html - Prints a graph profile as html.
+  call_tree - format for KCacheGrind
+.TP
+\fB-m, --min_percent=min_percent\fP
+The minimum percent a method must take before being included in output reports.
+This option is not supported for call tree.
+.TP
+\fB-f, --file=path\fP
+Output results to a file instead of standard out.
+.TP
+\fB--mode=measure_mode\fP
+Select what ruby-prof should measure
+  process - Use process time (default).
+  wall - Use wall time.
+  cpu - Use the CPU clock counter (only supported on Pentium and PowerPCs).
+.TP
+\fB--replace-progname\fP
+Replace $0 when loading the ruby source file.
+.TP
+\fB-h, --help\fP
+Show help message.
+.TP
+\fB-v, --version\fP
+Show version.
+.SH SEE ALSO
+The ruby-prof website, http://ruby-prof.rubyforge.org/
+.SH AUTHOR
+ruby-prof was written by Shugo Maeda <shugo at ruby-lang.org>.
+.PP
+This manual page was written by Arnaud Cornet <arnaud.cornet at gmail.com>
+for the Debian project (but may be used by others).
+
diff --git a/debian/ruby-prof.docs b/debian/ruby-prof.docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/ruby-prof.docs
@@ -0,0 +1 @@
+README
diff --git a/debian/ruby-prof.manpages b/debian/ruby-prof.manpages
new file mode 100644
index 0000000..b923838
--- /dev/null
+++ b/debian/ruby-prof.manpages
@@ -0,0 +1 @@
+debian/ruby-prof.1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0887714
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,41 @@
+#!/usr/bin/make -f
+
+include /usr/share/quilt/quilt.make
+
+RUBY_ARCHDIR=$(strip $(shell ruby1.8 -rrbconfig -e 'puts Config::CONFIG["archdir"]'))
+
+build: patch
+	dh build --until dh_auto_configure
+	(cd ext && ruby1.8 extconf.rb)
+	make -C ext
+	dh build --after dh_auto_build
+
+clean: unpatch
+	([ -f ext/Makefile ] && make -C ext clean) || true
+	rm -f ext/ruby_prof.so
+	rm -f ext/ruby_prof.o
+	rm -f ext/Makefile ext/mkmf.log
+	dh clean
+
+install: build
+	dh install --until dh_auto_install
+	mkdir -p debian/ruby-prof/$(RUBY_ARCHDIR)
+	mkdir -p debian/ruby-prof/usr/bin
+	mkdir -p debian/ruby-prof/usr/lib/ruby/1.8
+	cp -r lib/ruby-prof debian/ruby-prof/usr/lib/ruby/1.8
+	cp lib/*.rb debian/ruby-prof/usr/lib/ruby/1.8
+	chmod a-x debian/ruby-prof/usr/lib/ruby/1.8/ruby-prof/*.rb
+	cp bin/ruby-prof debian/ruby-prof/usr/bin
+	cp ext/ruby_prof.so debian/ruby-prof/$(RUBY_ARCHDIR)
+	mkdir -p debian/ruby-prof/usr/share/doc/ruby-prof
+	cp CHANGES debian/ruby-prof/usr/share/doc/ruby-prof/changelog
+	dh install --after dh_auto_install
+
+binary-arch: install
+	dh binary-arch
+
+binary-indep: install
+	dh binary-indep
+
+binary: binary-arch binary-indep
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..97572fe
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://rubyforge.org/frs/?group_id=1814 .*ruby-prof-(.*)\.tgz

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



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