--- libhighline-ruby-1.4.0.orig/debian/libhighline-ruby-doc.examples
+++ libhighline-ruby-1.4.0/debian/libhighline-ruby-doc.examples
@@ -0,0 +1 @@
+examples/*
--- libhighline-ruby-1.4.0.orig/debian/copyright
+++ libhighline-ruby-1.4.0/debian/copyright
@@ -0,0 +1,79 @@
+This package was debianized by Esteban Manchado Velázquez <zoso@debian.org> on
+Fri Jun  9 22:26:18 WEST 2006.
+
+It was downloaded from http://rubyforge.org/frs/?group_id=683
+
+Copyright Holders: James Edward Gray II <james@grayproductions.net> and
+                   Greg Brown <gregory.t.brown@gmail.com>. 
+
+License:
+
+Distributed under the user's choice of the GPL (see
+/usr/share/common-licenses/GPL) or the Ruby software license (see below) by
+James Edward Gray II and Greg Brown.
+
+Ruby license:
+
+HighLine is copyrighted free software by James Edward Gray II
+<james@grayproductions.net> and Greg Brown.  You can redistribute it and/or
+modify it under either the terms of the GPL (see COPYING.txt file), or the
+conditions below:
+
+  1. You may make and give away verbatim copies of the source form of the
+     software without restriction, provided that you duplicate all of the
+     original copyright notices and associated disclaimers.
+
+  2. You may modify your copy of the software in any way, provided that
+     you do at least ONE of the following:
+
+       a) place your modifications in the Public Domain or otherwise
+          make them Freely Available, such as by posting said
+          modifications to Usenet or an equivalent medium, or by allowing
+          the author to include your modifications in the software.
+
+       b) use the modified software only within your corporation or
+          organization.
+
+       c) rename any non-standard executables so the names do not conflict
+          with standard executables, which must also be provided.
+
+       d) make other distribution arrangements with the author.
+
+  3. You may distribute the software in object code or executable
+     form, provided that you do at least ONE of the following:
+
+       a) distribute the executables and library files of the software,
+          together with instructions (in the manual page or equivalent)
+          on where to get the original distribution.
+
+       b) accompany the distribution with the machine-readable source of
+          the software.
+
+       c) give non-standard executables non-standard names, with
+          instructions on where to get the original software distribution.
+
+       d) make other distribution arrangements with the author.
+
+  4. You may modify and include the part of the software into any other
+     software (possibly commercial).  But some files in the distribution
+     are not written by the author, so that they are not under this terms.
+
+     They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some
+     files under the ./missing directory.  See each file for the copying
+     condition.
+
+  5. The scripts and library files supplied as input to or produced as
+     output from the software do not automatically fall under the
+     copyright of the software, but belong to whomever generated them,
+     and may be sold commercially, and may be aggregated with this
+     software.
+
+  6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+     IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+     PURPOSE.
+
+--
+The setup.rb file included in this source package is released under the GNU
+LGPL. On Debian systems, the complete text of the GNU Lesser General Public
+can be found in `/usr/share/common-licenses/LGPL'.
--- libhighline-ruby-1.4.0.orig/debian/rules
+++ libhighline-ruby-1.4.0/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+# copyright 2006 by Esteban Manchado Velázquez
+
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+# Ruby package with setup.rb
+include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
--- libhighline-ruby-1.4.0.orig/debian/changelog
+++ libhighline-ruby-1.4.0/debian/changelog
@@ -0,0 +1,28 @@
+libhighline-ruby (1.4.0-1~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch.
+
+ -- Jeremy LainÃ© <jeremy.laine@m4x.org>  Mon, 21 Jan 2008 10:51:00 +0100
+
+libhighline-ruby (1.4.0-1) unstable; urgency=low
+
+  * New upstream release.
+  * Adapted debian/control, debian/rules, and remove debian/control.in to
+    drop the Uploaders rule.
+  * Added myself to the Uploaders field.
+
+ -- Paul van Tilburg <paulvt@debian.org>  Tue, 19 Jun 2007 11:05:20 +0100
+
+libhighline-ruby (1.2.2-1) unstable; urgency=low
+
+  * New upstream release
+  * Patch yet another file (new in this release) to have the correct ruby path
+  * Add "ruby1.8" to libhighline-ruby1.8 Depends:
+
+ -- Esteban Manchado VelÃ¡zquez <zoso@debian.org>  Sat, 21 Oct 2006 20:37:12 +0100
+
+libhighline-ruby (1.2.0-1) unstable; urgency=low
+
+  * First upload (Closes: #372530).
+
+ -- Esteban Manchado VelÃ¡zquez <zoso@debian.org>  Sat, 10 Jun 2006 15:23:13 +0100
--- libhighline-ruby-1.4.0.orig/debian/watch
+++ libhighline-ruby-1.4.0/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://rubyforge.org/frs/?group_id=683 .*/highline-(.*)\.tgz
--- libhighline-ruby-1.4.0.orig/debian/control
+++ libhighline-ruby-1.4.0/debian/control
@@ -0,0 +1,41 @@
+Source: libhighline-ruby
+Section: libs
+Priority: optional
+Maintainer: Esteban Manchado VelÃ¡zquez <zoso@debian.org>
+Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org>, Paul van Tilburg <paulvt@debian.org>
+Build-Depends-Indep: rdoc, graphviz
+Build-Depends: cdbs, debhelper (>= 4.1.0), ruby-pkg-tools (>= 0.8), ruby1.8
+Standards-Version: 3.7.2
+
+Package: libhighline-ruby
+Depends: libhighline-ruby1.8
+Architecture: all
+Description: High-level interactive IO Ruby library (default Ruby version)
+ High-level IO library that provides validation, type conversion, and more for
+ command-line interfaces. HighLine also includes a complete menu system that
+ can crank out anything from simple list selection to complete shells with just
+ minutes of work.
+ .
+ This is a dummy package depending on the library for the current default
+ version of Ruby.
+
+Package: libhighline-ruby-doc
+Section: doc
+Architecture: all
+Description: High-level interactive IO Ruby library (documentation)
+ High-level IO library that provides validation, type conversion, and more for
+ command-line interfaces. HighLine also includes a complete menu system that
+ can crank out anything from simple list selection to complete shells with just
+ minutes of work.
+ .
+ This is the documentation package, with upstream documentation as well as
+ generated rdoc.
+
+Package: libhighline-ruby1.8
+Depends: ruby1.8
+Architecture: all
+Description: High-level interactive IO Ruby library
+ High-level IO library that provides validation, type conversion, and more for
+ command-line interfaces. HighLine also includes a complete menu system that
+ can crank out anything from simple list selection to complete shells with just
+ minutes of work.
--- libhighline-ruby-1.4.0.orig/debian/compat
+++ libhighline-ruby-1.4.0/debian/compat
@@ -0,0 +1 @@
+4
--- libhighline-ruby-1.4.0.orig/debian/patches/01_fix-shebang.patch
+++ libhighline-ruby-1.4.0/debian/patches/01_fix-shebang.patch
@@ -0,0 +1,162 @@
+diff -ur highline-1.2.0.orig/examples/ansi_colors.rb highline-1.2.0/examples/ansi_colors.rb
+--- highline-1.2.0.orig/examples/ansi_colors.rb	2006-03-23 03:03:57.000000000 +0000
++++ highline-1.2.0/examples/ansi_colors.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # ansi_colors.rb
+ #
+diff -ur highline-1.2.0.orig/examples/asking_for_arrays.rb highline-1.2.0/examples/asking_for_arrays.rb
+--- highline-1.2.0.orig/examples/asking_for_arrays.rb	2006-02-21 22:21:10.000000000 +0000
++++ highline-1.2.0/examples/asking_for_arrays.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # asking_for_arrays.rb
+ #
+diff -ur highline-1.2.0.orig/examples/basic_usage.rb highline-1.2.0/examples/basic_usage.rb
+--- highline-1.2.0.orig/examples/basic_usage.rb	2006-02-21 22:21:10.000000000 +0000
++++ highline-1.2.0/examples/basic_usage.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # basic_usage.rb
+ #
+diff -ur highline-1.2.0.orig/examples/menus.rb highline-1.2.0/examples/menus.rb
+--- highline-1.2.0.orig/examples/menus.rb	2006-02-21 22:21:10.000000000 +0000
++++ highline-1.2.0/examples/menus.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ require "rubygems"
+ require "highline/import"
+diff -ur highline-1.2.0.orig/examples/page_and_wrap.rb highline-1.2.0/examples/page_and_wrap.rb
+--- highline-1.2.0.orig/examples/page_and_wrap.rb	2006-02-21 22:21:10.000000000 +0000
++++ highline-1.2.0/examples/page_and_wrap.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # page_and_wrap.rb
+ #
+diff -ur highline-1.2.0.orig/examples/password.rb highline-1.2.0/examples/password.rb
+--- highline-1.2.0.orig/examples/password.rb	2006-02-23 17:21:42.000000000 +0000
++++ highline-1.2.0/examples/password.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ require "rubygems"
+ require "highline/import"
+diff -ur highline-1.2.0.orig/examples/trapping_eof.rb highline-1.2.0/examples/trapping_eof.rb
+--- highline-1.2.0.orig/examples/trapping_eof.rb	2006-02-21 22:21:10.000000000 +0000
++++ highline-1.2.0/examples/trapping_eof.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # trapping_eof.rb
+ #
+diff -ur highline-1.2.0.orig/examples/using_readline.rb highline-1.2.0/examples/using_readline.rb
+--- highline-1.2.0.orig/examples/using_readline.rb	2006-02-21 22:21:10.000000000 +0000
++++ highline-1.2.0/examples/using_readline.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # using_readline.rb
+ #
+diff -ur highline-1.2.0.orig/lib/highline/import.rb highline-1.2.0/lib/highline/import.rb
+--- highline-1.2.0.orig/lib/highline/import.rb	2006-03-23 04:23:11.000000000 +0000
++++ highline-1.2.0/lib/highline/import.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # import.rb
+ #
+diff -ur highline-1.2.0.orig/lib/highline/menu.rb highline-1.2.0/lib/highline/menu.rb
+--- highline-1.2.0.orig/lib/highline/menu.rb	2006-03-23 03:37:56.000000000 +0000
++++ highline-1.2.0/lib/highline/menu.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # menu.rb
+ #
+diff -ur highline-1.2.0.orig/lib/highline/question.rb highline-1.2.0/lib/highline/question.rb
+--- highline-1.2.0.orig/lib/highline/question.rb	2006-03-23 04:14:32.000000000 +0000
++++ highline-1.2.0/lib/highline/question.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # question.rb
+ #
+diff -ur highline-1.2.0.orig/lib/highline.rb highline-1.2.0/lib/highline.rb
+--- highline-1.2.0.orig/lib/highline.rb	2006-03-23 04:07:43.000000000 +0000
++++ highline-1.2.0/lib/highline.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # highline.rb
+ #
+diff -ur highline-1.2.0.orig/test/tc_highline.rb highline-1.2.0/test/tc_highline.rb
+--- highline-1.2.0.orig/test/tc_highline.rb	2006-03-23 02:55:55.000000000 +0000
++++ highline-1.2.0/test/tc_highline.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # tc_highline.rb
+ #
+@@ -252,7 +252,7 @@
+       q.glob      = "*.rb"
+     end
+     assert_instance_of(File, file)
+-    assert_equal("#!/usr/local/bin/ruby -w\n", file.gets)
++    assert_equal("#!/usr/bin/ruby -w\n", file.gets)
+     assert_equal("\n", file.gets)
+     assert_equal("# tc_highline.rb\n", file.gets)
+     file.close
+diff -ur highline-1.2.0.orig/test/tc_import.rb highline-1.2.0/test/tc_import.rb
+--- highline-1.2.0.orig/test/tc_import.rb	2006-03-23 04:05:35.000000000 +0000
++++ highline-1.2.0/test/tc_import.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # tc_import.rb
+ #
+diff -ur highline-1.2.0.orig/test/tc_menu.rb highline-1.2.0/test/tc_menu.rb
+--- highline-1.2.0.orig/test/tc_menu.rb	2006-03-23 03:37:37.000000000 +0000
++++ highline-1.2.0/test/tc_menu.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # tc_menu.rb
+ #
+diff -ur highline-1.2.0.orig/test/ts_all.rb highline-1.2.0/test/ts_all.rb
+--- highline-1.2.0.orig/test/ts_all.rb	2006-02-21 22:21:05.000000000 +0000
++++ highline-1.2.0/test/ts_all.rb	2006-06-09 22:40:46.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # ts_all.rb
+ #
+diff -ur highline-1.2.2.orig/lib/highline/system_extensions.rb highline-1.2.2/lib/highline/system_extensions.rb
+--- highline-1.2.2.orig/lib/highline/system_extensions.rb	2006-10-14 00:13:35.000000000 +0100
++++ highline-1.2.2/lib/highline/system_extensions.rb	2006-10-21 19:27:32.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/ruby -w
++#!/usr/bin/ruby -w
+ 
+ # system_extensions.rb
+ #
--- libhighline-ruby-1.4.0.orig/debian/patches/02_remove-rubygems-require.patch
+++ libhighline-ruby-1.4.0/debian/patches/02_remove-rubygems-require.patch
@@ -0,0 +1,94 @@
+diff -ur highline-1.2.0.orig/examples/ansi_colors.rb highline-1.2.0/examples/ansi_colors.rb
+--- highline-1.2.0.orig/examples/ansi_colors.rb	2006-06-09 23:08:21.000000000 +0100
++++ highline-1.2.0/examples/ansi_colors.rb	2006-06-09 23:10:20.000000000 +0100
+@@ -5,7 +5,7 @@
+ #  Created by James Edward Gray II on 2005-05-03.
+ #  Copyright 2005 Gray Productions. All rights reserved.
+ 
+-require "rubygems"
++# require "rubygems"    # Uncomment if using Rubygems
+ require "highline/import"
+ 
+ # Supported color sequences.
+diff -ur highline-1.2.0.orig/examples/asking_for_arrays.rb highline-1.2.0/examples/asking_for_arrays.rb
+--- highline-1.2.0.orig/examples/asking_for_arrays.rb	2006-06-09 23:08:21.000000000 +0100
++++ highline-1.2.0/examples/asking_for_arrays.rb	2006-06-09 23:10:31.000000000 +0100
+@@ -5,7 +5,7 @@
+ #  Created by James Edward Gray II on 2005-07-05.
+ #  Copyright 2005 Gray Productions. All rights reserved.
+ 
+-require "rubygems"
++# require "rubygems"    # Uncomment if using Rubygems
+ require "highline/import"
+ require "pp"
+ 
+diff -ur highline-1.2.0.orig/examples/basic_usage.rb highline-1.2.0/examples/basic_usage.rb
+--- highline-1.2.0.orig/examples/basic_usage.rb	2006-06-09 23:08:21.000000000 +0100
++++ highline-1.2.0/examples/basic_usage.rb	2006-06-09 23:10:44.000000000 +0100
+@@ -5,7 +5,7 @@
+ #  Created by James Edward Gray II on 2005-04-28.
+ #  Copyright 2005 Gray Productions. All rights reserved.
+ 
+-require "rubygems"
++# require "rubygems"    # Uncomment if using Rubygems
+ require "highline/import"
+ require "yaml"
+ 
+diff -ur highline-1.2.0.orig/examples/menus.rb highline-1.2.0/examples/menus.rb
+--- highline-1.2.0.orig/examples/menus.rb	2006-06-09 23:08:21.000000000 +0100
++++ highline-1.2.0/examples/menus.rb	2006-06-09 23:10:47.000000000 +0100
+@@ -1,6 +1,6 @@
+ #!/usr/bin/ruby -w
+ 
+-require "rubygems"
++# require "rubygems"    # Uncomment if using Rubygems
+ require "highline/import"
+ 
+ # The old way, using ask() and say()...
+diff -ur highline-1.2.0.orig/examples/page_and_wrap.rb highline-1.2.0/examples/page_and_wrap.rb
+--- highline-1.2.0.orig/examples/page_and_wrap.rb	2006-06-09 23:08:21.000000000 +0100
++++ highline-1.2.0/examples/page_and_wrap.rb	2006-06-09 23:10:49.000000000 +0100
+@@ -5,7 +5,7 @@
+ #  Created by James Edward Gray II on 2005-05-07.
+ #  Copyright 2005 Gray Productions. All rights reserved.
+ 
+-require "rubygems"
++# require "rubygems"    # Uncomment if using Rubygems
+ require "highline/import"
+ 
+ $terminal.wrap_at = 80
+diff -ur highline-1.2.0.orig/examples/password.rb highline-1.2.0/examples/password.rb
+--- highline-1.2.0.orig/examples/password.rb	2006-06-09 23:08:21.000000000 +0100
++++ highline-1.2.0/examples/password.rb	2006-06-09 23:10:52.000000000 +0100
+@@ -1,6 +1,6 @@
+ #!/usr/bin/ruby -w
+ 
+-require "rubygems"
++# require "rubygems"    # Uncomment if using Rubygems
+ require "highline/import"
+ 
+ pass = ask("Enter your password:  ") { |q| q.echo = false }
+diff -ur highline-1.2.0.orig/examples/trapping_eof.rb highline-1.2.0/examples/trapping_eof.rb
+--- highline-1.2.0.orig/examples/trapping_eof.rb	2006-06-09 23:08:21.000000000 +0100
++++ highline-1.2.0/examples/trapping_eof.rb	2006-06-09 23:10:54.000000000 +0100
+@@ -5,7 +5,7 @@
+ #  Created by James Edward Gray II on 2006-02-20.
+ #  Copyright 2006 Gray Productions. All rights reserved.
+ 
+-require "rubygems"
++# require "rubygems"    # Uncomment if using Rubygems
+ require "highline/import"
+ 
+ loop do
+diff -ur highline-1.2.0.orig/examples/using_readline.rb highline-1.2.0/examples/using_readline.rb
+--- highline-1.2.0.orig/examples/using_readline.rb	2006-06-09 23:08:21.000000000 +0100
++++ highline-1.2.0/examples/using_readline.rb	2006-06-09 23:10:55.000000000 +0100
+@@ -5,7 +5,7 @@
+ #  Created by James Edward Gray II on 2005-07-06.
+ #  Copyright 2005 Gray Productions. All rights reserved.
+ 
+-require "rubygems"
++# require "rubygems"    # Uncomment if using Rubygems
+ require "highline/import"
+ 
+ loop do
