--- libinline-ruby-3.8.4.orig/debian/compat
+++ libinline-ruby-3.8.4/debian/compat
@@ -0,0 +1 @@
+5
--- libinline-ruby-3.8.4.orig/debian/libinline-ruby.examples
+++ libinline-ruby-3.8.4/debian/libinline-ruby.examples
@@ -0,0 +1,4 @@
+debian/helloworld_example.rb
+tutorial/*
+demo/*
+example*.rb
--- libinline-ruby-3.8.4.orig/debian/README.source
+++ libinline-ruby-3.8.4/debian/README.source
@@ -0,0 +1,5 @@
+This package uses quilt to manage all modifications to the upstream
+source. Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+See /usr/share/doc/quilt/README.source for a detailed explanation.
--- libinline-ruby-3.8.4.orig/debian/rules
+++ libinline-ruby-3.8.4/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+#
+# CDBS file to build the libinline-ruby package.
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+DEB_INSTALL_CHANGELOGS_ALL = History.txt
+
+build: build-stamp
+
+build-stamp:
+ # Run unit tests:
+ /usr/bin/ruby1.8 -w -Ilib -Idebian ./test/test_*.rb
+
+clean::
+ rm -f build-stamp
--- libinline-ruby-3.8.4.orig/debian/libinline-ruby1.8.install
+++ libinline-ruby-3.8.4/debian/libinline-ruby1.8.install
@@ -0,0 +1,2 @@
+lib/inline.rb usr/lib/ruby/1.8/
+debian/inline_method_name_mapping.rb usr/lib/ruby/1.8/
--- libinline-ruby-3.8.4.orig/debian/control
+++ libinline-ruby-3.8.4/debian/control
@@ -0,0 +1,34 @@
+Source: libinline-ruby
+Section: ruby
+Priority: optional
+Maintainer: Patrick Ringl <patrick_@freenet.de>
+Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>, Paul van Tilburg <paulvt@debian.org>, Gunnar Wolf <gwolf@debian.org>,
+ Ryan Niebur <ryanryan52@gmail.com>, Tobias Grimm <etobi@debian.org>
+Build-Depends: cdbs, debhelper (>= 5.0.0), quilt
+Build-Depends-Indep: ruby-pkg-tools (>= 0.8), ruby1.8, ruby1.8-dev
+Standards-Version: 3.8.4
+Homepage: http://rubyforge.org/projects/rubyinline/
+Vcs-Browser: http://svn.debian.org/viewsvn/pkg-ruby-extras/trunk/libinline-ruby/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-ruby-extras/trunk/libinline-ruby/
+
+Package: libinline-ruby
+Architecture: all
+Depends: ${misc:Depends}, libinline-ruby1.8
+Description: Ruby library for embedding C/++ external module code
+ Ruby Inline is an analog to Perl's Inline::C. Out of the box,
+ it allows you to embed C/++ external module code in your ruby script
+ directly. By writing simple builder classes, you can teach how to cope with
+ new languages (fortran, perl, whatever).
+ .
+ This is a dummy package depending on the library for the current default
+ version of Ruby.
+
+Package: libinline-ruby1.8
+Architecture: all
+Depends: ${misc:Depends}, ruby1.8, ruby1.8-dev
+Recommends: gcc | c-compiler
+Description: Ruby library for embedding C/++ external module code
+ Ruby Inline is an analog to Perl's Inline::C. Out of the box,
+ it allows you to embed C/++ external module code in your ruby script
+ directly. By writing simple builder classes, you can teach how to cope with
+ new languages (fortran, perl, whatever).
--- libinline-ruby-3.8.4.orig/debian/helloworld_example.rb
+++ libinline-ruby-3.8.4/debian/helloworld_example.rb
@@ -0,0 +1,12 @@
+#!/usr/bin/ruby -w
+
+require 'inline'
+
+class Hello
+ inline do |builder|
+ builder.include "<stdio.h>"
+ builder.c 'void hello() { puts("hello world"); }'
+ end
+end
+
+Hello.new.hello
--- libinline-ruby-3.8.4.orig/debian/watch
+++ libinline-ruby-3.8.4/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://rubyforge.org/frs/?group_id=440 .*/RubyInline-(.*)\.tgz
--- libinline-ruby-3.8.4.orig/debian/inline_method_name_mapping.rb
+++ libinline-ruby-3.8.4/debian/inline_method_name_mapping.rb
@@ -0,0 +1,48 @@
+module MethodNameMapping
+ @@method_map = {
+ 'bang' => '!',
+ 'percent' => '%',
+ 'and' => '&',
+ 'times' => '*',
+ 'times2' => '**',
+ 'plus' => '+',
+ 'minus' => '-',
+ 'div' => '/',
+ 'lt' => '<',
+ 'lte' => '<=',
+ 'spaceship' => '<=>',
+ 'lt2' => '<<',
+ 'equals2' => '==',
+ 'equals3' => '===',
+ 'equalstilde' => '=~',
+ 'gt' => '>',
+ 'ge' => '>=',
+ 'gt2' => '>>',
+ 'unary_plus' => '+@',
+ 'unary_minus' => '-@',
+ 'index' => '[]',
+ 'index_equals' => '[]=',
+ 'carat' => '^',
+ 'or' => '|',
+ 'tilde' => '~',
+ }
+
+ @@mapped_re = @@method_map.values.map {|s| Regexp.escape(s)}.join("|")
+
+ def to_ruby(name)
+ name = name.to_s.dup
+ is_class_method = name.sub!(/^class_/, '')
+
+ if @@method_map.has_key?(name)
+ name=@@method_map[name]
+ elsif name.sub!(/_equals(_.*)?$/, '=')
+ elsif name.sub!(/_bang(_.*)?$/, '!')
+ elsif name.sub!(/_eh(_.*)?$/, '?')
+ elsif name =~ /(.*?)_/ and @@method_map.has_key? $1
+ name = @@method_map[$1]
+ end
+ name = 'self.' + name if is_class_method
+
+ return name
+ end
+end
--- libinline-ruby-3.8.4.orig/debian/libinline-ruby.docs
+++ libinline-ruby-3.8.4/debian/libinline-ruby.docs
@@ -0,0 +1 @@
+README.txt
--- libinline-ruby-3.8.4.orig/debian/changelog
+++ libinline-ruby-3.8.4/debian/changelog
@@ -0,0 +1,109 @@
+libinline-ruby (3.8.4-1) unstable; urgency=low
+
+ * New upstream release.
+ * debian/control: bumped standards-version to 3.8.4; no changes required.
+ * debian/README.Debian:
+ - Added to explain inline caching and some issues, copied from
+ libimage-science-ruby, courtesy of Gunnar Wolf (closes: #499859).
+ * debian/libinline-ruby{1.8,}.examples: moved the examples to the
+ libinline-ruby package.
+
+ -- Paul van Tilburg <paulvt@debian.org> Sun, 14 Feb 2010 13:38:20 +0100
+
+libinline-ruby (3.8.3-3) unstable; urgency=low
+
+ * Removed remaining unnecessary Gem usage (Closes: #557534)
+ * Add myself to Uploaders
+ * Run unit tests at build time
+ * Replaced ZenTestMapping usage with custom implementation of the method
+ name mapping
+ * Install History.txt as upstream changelog
+ * Recommends: gcc | c-compiler
+
+ -- Tobias Grimm <etobi@debian.org> Sun, 06 Dec 2009 10:52:59 +0100
+
+libinline-ruby (3.8.3-2) unstable; urgency=low
+
+ * Add myself to Uploaders
+ * add README.source
+ * Debian Policy 3.8.3
+ * don't require rubygems (Closes: #543165, #543061)
+ * switch to patchsys-quilt.mk
+
+ -- Ryan Niebur <ryanryan52@gmail.com> Sun, 23 Aug 2009 12:07:52 -0700
+
+libinline-ruby (3.8.3-1) unstable; urgency=low
+
+ [ Paul van Tilburg ]
+ * debian/control:
+ - Bumped standards version to 3.8.1; no changes required.
+ * debian/patches:
+ - Dropped 00-fix-shebang: upstream removed the binary in question.
+
+ [ Gunnar Wolf ]
+ * New upstream release.
+ * Changed section to Ruby as per ftp-masters' request
+ * Added myself as an uploader
+ * Standards-version → 3.8.2 (no changes needed)
+ * Added #{misc:Depends} to the binary packages
+ * Resurrected 00-fix-shebang.patch, as several files still point to
+ /usr/local/bin/ruby (even to ruby17!)
+
+ -- Gunnar Wolf <gwolf@debian.org> Wed, 12 Aug 2009 16:43:43 -0500
+
+libinline-ruby (3.6.7-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Paul van Tilburg <paulvt@debian.org> Mon, 31 Mar 2008 23:08:26 +0200
+
+libinline-ruby (3.6.6-1) unstable; urgency=low
+
+ * New upstream release.
+ * Added homepage and Vcs-* headers to debian/control.
+ * Bumped standards version to 3.7.3; no changes required.
+
+ -- Paul van Tilburg <paulvt@debian.org> Fri, 07 Mar 2008 20:47:46 +0100
+
+libinline-ruby (3.6.4-1) unstable; urgency=low
+
+ * New upstream release.
+ * Remove debian/patches/01fixheader.patch since we no
+ longer need to remove shebangs for libs.
+ * Added debian/patches/00-fix-shebang.patch since we need
+ to fix the /usr/local/bin call in bin/inline_package.
+
+ -- Paul van Tilburg <paulvt@debian.org> Sun, 07 Oct 2007 12:44:20 +0200
+
+libinline-ruby (3.6.2-2) unstable; urgency=low
+
+ * Adapted debian/control, debian/rules, and removed debian/control.in
+ to drop the Uploaders rule.
+ * Updated the description, libinline-ruby is not part of the
+ libruby-extras bundle!
+
+ -- Paul van Tilburg <paulvt@debian.org> Wed, 18 Apr 2007 23:44:35 +0200
+
+libinline-ruby (3.6.2-1) unstable; urgency=low
+
+ * New upstream release
+
+ -- Patrick Ringl <patrick_@freenet.de> Tue, 7 Nov 2006 13:58:07 +0100
+
+libinline-ruby (3.5.0-2) unstable; urgency=low
+
+ * Fixed the watch-file.
+
+ -- Paul van Tilburg <paulvt@debian.org> Tue, 12 Sep 2006 22:07:58 +0200
+
+libinline-ruby (3.5.0-1) unstable; urgency=low
+
+ [ Patrick Ringl ]
+ * Initial release.
+
+ [ Paul van Tilburg ]
+ * Added the uploaders rule from ruby-pkg-tools since the package falls
+ under team maintenance.
+
+ -- Paul van Tilburg <paulvt@debian.org> Fri, 25 Aug 2006 11:14:19 +0200
+
--- libinline-ruby-3.8.4.orig/debian/copyright
+++ libinline-ruby-3.8.4/debian/copyright
@@ -0,0 +1,35 @@
+This package was debianized by Patrick Ringl <patrick_@freenet.de> on
+Wed, 26 Jul 2006 04:38:15 +0200.
+
+It was downloaded from http://rubyforge.org/frs/download.php/6475/RubyInline-3.5.0.tar.gz
+
+Upstream Author: Ryan Davis <support@zenspider.com>
+
+Copyright: Copyright (c) 2001-2006 Ryan Davis, Zen Spider Software
+
+License: The MIT License
+
+Copyright (c) 2001-2005 Ryan Davis, Zen Spider Software
+
+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.
+
+
+The Debian packaging is (C) 2006, Patrick Ringl <patrick_@freenet.de> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- libinline-ruby-3.8.4.orig/debian/README.debian
+++ libinline-ruby-3.8.4/debian/README.debian
@@ -0,0 +1,39 @@
+RubyInline is a Ruby module that allows for easily embedding and on-the-fly
+compiling C code in Ruby modules.
+
+Although it will work right away on most typical situations, there are
+a couple of catches you should keep in mind:
+
+- To minimize startup times, the inlined C code is cached. This means,
+ any user who calls this module in his Ruby code will get a directory
+ called ".ruby_inline" on his home directory. Inside this directory,
+ Inline will store the C code to be compiled and the compiled
+ objects. The directory can be safely purged, as it will be
+ regenerated as needed.
+
+- You can set up the environment variable INLINEDIR to specify a
+ different directory, i.e., to cope with the cases where the current
+ user has no rights to write on his own directory (which is often the
+ case when using this module for Web-facing application servers). You
+ can safely point it to a randomized temporary directory, as in:
+
+ $ su - nobody -c 'export INLINEDIR=$(mktemp -d); \
+ ruby_inline_using_application; \
+ rm -rf $INLINEDIR'
+
+ Of course, you would replace the call to Ruby to the startup for
+ your application. There will be a slight time penalty upon
+ initialization, as this will compile anew the code each time it is
+ started, but will allow you to work with users unable to work in
+ their home directories.
+
+- It might also be a good idea, specially on slower systems, to set
+ INLINEDIR to a fixed location, i.e. to create user-owned
+ /var/lib/inline/$(whoami) directories. This would avoid the
+ recompilation penalty - You should just remember to purge the
+ directory should you stop using this module.
+
+Of course, for most use cases, the default .ruby_inline directory will
+serve you well.
+
+ -- Gunnar Wolf <gwolf@debian.org>, Mon, 22 Sep 2008 18:16:12 -0500
--- libinline-ruby-3.8.4.orig/debian/patches/00-fix-shebang.patch
+++ libinline-ruby-3.8.4/debian/patches/00-fix-shebang.patch
@@ -0,0 +1,40 @@
+Index: libinline-ruby-3.8.3/demo/hello.rb
+===================================================================
+--- libinline-ruby-3.8.3.orig/demo/hello.rb 2009-08-12 16:37:07.000000000 -0500
++++ libinline-ruby-3.8.3/demo/hello.rb 2009-08-12 16:39:45.000000000 -0500
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/env ruby
+
+ begin require 'rubygems' rescue LoadError end
+ require 'inline'
+Index: libinline-ruby-3.8.3/example.rb
+===================================================================
+--- libinline-ruby-3.8.3.orig/example.rb 2009-08-12 16:37:07.000000000 -0500
++++ libinline-ruby-3.8.3/example.rb 2009-08-12 16:39:50.000000000 -0500
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/env ruby
+
+ begin
+ require 'rubygems'
+Index: libinline-ruby-3.8.3/example2.rb
+===================================================================
+--- libinline-ruby-3.8.3.orig/example2.rb 2009-08-12 16:37:07.000000000 -0500
++++ libinline-ruby-3.8.3/example2.rb 2009-08-12 16:39:43.000000000 -0500
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby17 -w
++#!/usr/bin/env ruby
+
+ begin
+ require 'rubygems'
+Index: libinline-ruby-3.8.3/lib/inline.rb
+===================================================================
+--- libinline-ruby-3.8.3.orig/lib/inline.rb 2009-08-12 16:37:07.000000000 -0500
++++ libinline-ruby-3.8.3/lib/inline.rb 2009-08-12 16:39:48.000000000 -0500
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/env ruby
+
+ ##
+ # Ruby Inline is a framework for writing ruby extensions in foreign
--- libinline-ruby-3.8.4.orig/debian/patches/02-replace-ZenTestMapping.patch
+++ libinline-ruby-3.8.4/debian/patches/02-replace-ZenTestMapping.patch
@@ -0,0 +1,33 @@
+Replace ZenTestMapping with a custom implementation of the method name mapping
+
+Index: libinline-ruby-3.8.3/lib/inline.rb
+===================================================================
+--- libinline-ruby-3.8.3.orig/lib/inline.rb 2009-12-06 00:59:10.000000000 +0100
++++ libinline-ruby-3.8.3/lib/inline.rb 2009-12-06 01:00:06.000000000 +0100
+@@ -52,7 +52,7 @@
+ require 'fileutils'
+ require 'rubygems'
+
+-require 'zentest_mapping'
++require 'inline_method_name_mapping'
+
+ $TESTING = false unless defined? $TESTING
+
+@@ -151,7 +151,7 @@
+
+ class C
+
+- include ZenTestMapping
++ include MethodNameMapping
+
+ MAGIC_ARITY_THRESHOLD = 15
+ MAGIC_ARITY = -1
+@@ -245,7 +245,7 @@
+ signature = parse_signature(src, !expand_types)
+ function_name = signature['name']
+ method_name = options[:method_name]
+- method_name ||= test_to_normal function_name
++ method_name ||= to_ruby function_name
+ return_type = signature['return']
+ arity = signature['arity']
+
--- libinline-ruby-3.8.4.orig/debian/patches/01-dont-requires-rubygems.patch
+++ libinline-ruby-3.8.4/debian/patches/01-dont-requires-rubygems.patch
@@ -0,0 +1,28 @@
+dont require rubygems
+
+Index: libinline-ruby-3.8.3/lib/inline.rb
+===================================================================
+--- libinline-ruby-3.8.3.orig/lib/inline.rb 2009-12-06 00:50:06.000000000 +0100
++++ libinline-ruby-3.8.3/lib/inline.rb 2009-12-06 00:50:35.000000000 +0100
+@@ -50,7 +50,6 @@
+ require "rbconfig"
+ require "digest/md5"
+ require 'fileutils'
+-require 'rubygems'
+
+ require 'zentest_mapping'
+
+@@ -71,13 +70,6 @@
+ RUBINIUS = defined? RUBY_ENGINE
+ DEV_NULL = (WINDOZE ? 'nul' : '/dev/null')
+ GEM = (WINDOZE ? 'gem.bat' : 'gem')
+- RAKE = if WINDOZE then
+- 'rake.bat'
+- elsif RUBINIUS then
+- File.join(Gem.bindir, 'rake')
+- else
+- "#{Gem.ruby} -S rake"
+- end
+
+ warn "RubyInline v #{VERSION}" if $DEBUG
+
--- libinline-ruby-3.8.4.orig/debian/patches/series
+++ libinline-ruby-3.8.4/debian/patches/series
@@ -0,0 +1,3 @@
+00-fix-shebang.patch
+01-dont-requires-rubygems.patch
+02-replace-ZenTestMapping.patch