--- langscan-1.2+cvs20070125.orig/acinclude.m4
+++ langscan-1.2+cvs20070125/acinclude.m4
@@ -19,7 +19,7 @@
   REQUIRED_VERSION="$1"
   AC_MSG_CHECKING([ruby version...])
   RUBY_VERSION="`$RUBY -e "puts RUBY_VERSION"`"
-  if ruby -e "exit(RUBY_VERSION >= '$REQUIRED_VERSION')" >/dev/null; then
+  if $RUBY -e "exit(RUBY_VERSION >= '$REQUIRED_VERSION')" >/dev/null; then
     AC_MSG_RESULT($RUBY_VERSION found)
   else
     AC_MSG_RESULT($RUBY_VERSION found)
@@ -41,7 +41,7 @@
   AC_MSG_CHECKING([path to ruby library])
   if test "x$rubydir" = x; then
     changequote(<<, >>)
-    rubydir=`ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]'`
+    rubydir=`$RUBY -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]'`
     changequote([, ])
   fi
   AC_MSG_RESULT($rubydir)
@@ -57,20 +57,20 @@
   AC_MSG_CHECKING([path to ruby binary library])
   if test "x$rubyarchdir" = x; then
     changequote(<<, >>)
-    rubyarchdir=`ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]'`
+    rubyarchdir=`$RUBY -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]'`
     changequote([, ])
   fi
   AC_MSG_RESULT($rubyarchdir)
   AC_SUBST(rubyarchdir)
 
   changequote(<<, >>)
-  RUBY_CC="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["CC"]'`"
-  RUBY_LDSHARED="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["LDSHARED"]'`"
-  RUBY_CFLAGS="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["CCDLFLAGS"] + " " + Config::MAKEFILE_CONFIG["CFLAGS"]'`"
-  RUBY_DLEXT="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["DLEXT"]'`"
-  RUBY_DLDFLAGS="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["DLDFLAGS"]'`"
-  RUBY_LIBS="`ruby -rmkmf -e 'puts Config::MAKEFILE_CONFIG["LIBS"]'`"
-  RUBY_HDRHDIR="`ruby -rmkmf -e 'puts Config::CONFIG["archdir"]'`"
+  RUBY_CC="`$RUBY -rmkmf -e 'puts Config::MAKEFILE_CONFIG["CC"]'`"
+  RUBY_LDSHARED="`$RUBY -rmkmf -e 'puts Config::MAKEFILE_CONFIG["LDSHARED"]'`"
+  RUBY_CFLAGS="`$RUBY -rmkmf -e 'puts Config::MAKEFILE_CONFIG["CCDLFLAGS"] + " " + Config::MAKEFILE_CONFIG["CFLAGS"]'`"
+  RUBY_DLEXT="`$RUBY -rmkmf -e 'puts Config::MAKEFILE_CONFIG["DLEXT"]'`"
+  RUBY_DLDFLAGS="`$RUBY -rmkmf -e 'puts Config::MAKEFILE_CONFIG["DLDFLAGS"]'`"
+  RUBY_LIBS="`$RUBY -rmkmf -e 'puts Config::MAKEFILE_CONFIG["LIBS"]'`"
+  RUBY_HDRHDIR="`$RUBY -rmkmf -e 'puts Config::CONFIG["archdir"]'`"
   RUBY_CPPFLAGS='-I. -I$(RUBY_HDRHDIR)'
   changequote([, ])
 
--- langscan-1.2+cvs20070125.orig/Makefile.am
+++ langscan-1.2+cvs20070125/Makefile.am
@@ -2,6 +2,7 @@
 noinst_SCRIPTS = langscan-test
 #EXTRA_DIST  =	$(noinst_SCRIPTS)	langscan.rb
 EXTRA_DIST  =	langscan-test.in langscan.rb
+CLEANFILES = langscan-test
 
 rubylibdir = $(rubydir)
 rubylib_DATA =	langscan.rb
--- langscan-1.2+cvs20070125.orig/debian/dirs
+++ langscan-1.2+cvs20070125/debian/dirs
@@ -0,0 +1 @@
+/usr/lib
--- langscan-1.2+cvs20070125.orig/debian/rules
+++ langscan-1.2+cvs20070125/debian/rules
@@ -0,0 +1,106 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+RUBY = /usr/bin/ruby1.8
+RUBYLIBDIR = $(shell $(RUBY) -rrbconfig -e 'puts Config::CONFIG["rubylibdir"]')
+RUBYARCHDIR = $(shell $(RUBY) -rrbconfig -e 'puts Config::CONFIG["archdir"]')
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+	./autogen.sh --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" \
+	--with-rubydir=$(RUBYLIBDIR) --with-rubyarchdir=$(RUBYARCHDIR) --with-ruby=$(RUBY)
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#docbook-to-man debian/langscan.sgml > langscan.1
+
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) distclean
+	rm -f COPYING INSTALL aclocal.m4 configure install-sh missing
+	rm -f `find . -name Makefile.in`
+	rm -f `find . -name "*.dist"`
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/langscan.
+	$(MAKE) DESTDIR=$(CURDIR)/debian/liblangscan-ruby install
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installexamples
+#	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
--- langscan-1.2+cvs20070125.orig/debian/watch
+++ langscan-1.2+cvs20070125/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/gonzui/langscan-(.*)\.tar\.gz
--- langscan-1.2+cvs20070125.orig/debian/langscan.substvars
+++ langscan-1.2+cvs20070125/debian/langscan.substvars
@@ -0,0 +1 @@
+shlibs:Depends=libc6 (>= 2.3.6-6)
--- langscan-1.2+cvs20070125.orig/debian/compat
+++ langscan-1.2+cvs20070125/debian/compat
@@ -0,0 +1 @@
+5
--- langscan-1.2+cvs20070125.orig/debian/control
+++ langscan-1.2+cvs20070125/debian/control
@@ -0,0 +1,19 @@
+Source: langscan
+Section: devel
+Priority: optional
+Maintainer: NIIBE Yutaka <gniibe@fsij.org>
+Build-Depends: debhelper (>= 5), autotools-dev, autoconf (>= 2.50), automake (>= 1.9.5), ruby1.8 (>= 1.8.2), ruby1.8-dev (>= 1.8.2), flex, ocaml-nox
+Standards-Version: 3.7.2.2
+
+Package: liblangscan-ruby
+Architecture: any
+Depends: ruby1.8, ${shlibs:Depends}
+Replaces: gonzui (<= 1.2)
+Conflicts: gonzui (<= 1.2)
+Description: Ruby module of scanners for programming languages
+ LangScan is a set of scanners.  It supports following languages:
+   C, C++, C#, CSS, D, Eiffel, Emacs Lisp, Java, Javascript, Lua,
+   OCaml, Perl, PHP, Python, Ruby, Scheme, Bourne Shell, and others.
+ LangScan is used by the source code search engine, Gonzui.
+ .
+ Homepage: http://gonzui.sourceforge.net/
--- langscan-1.2+cvs20070125.orig/debian/docs
+++ langscan-1.2+cvs20070125/debian/docs
@@ -0,0 +1,2 @@
+NEWS
+README
--- langscan-1.2+cvs20070125.orig/debian/changelog
+++ langscan-1.2+cvs20070125/debian/changelog
@@ -0,0 +1,56 @@
+langscan (1.2+cvs20070125-1.5.201411011652) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. The following patches have been applied to the original source package
+    0001-bump-version-for-ucs400
+
+ -- Univention builddaemon <buildd@univention.de>  Sat, 01 Nov 2014 16:52:28 +0100
+
+langscan (1.2+cvs20070125-1) unstable; urgency=low
+
+  * Bump version, otherwise the build stamp in UCS 3.2 is higher than the 4.0
+    build (Bug #35387)
+
+ -- Sönke Schwardt-Krummrich <schwardt@univention.de>  Fri, 30 Oct 2014 14:43:23 +0200
+
+langscan (1.2+cvs20070125-1.1) unstable; urgency=medium
+
+  [ Cédric Boutillier ]
+  * Non-maintainer upload.
+  * Build only with Ruby 1.8.
+    + debian/control: remove ruby from Build-Depends field as it would pull
+      ruby-1.9.1
+    + debian/rules: add --with-ruby flag to configure script to point to
+      /usr/bin/ruby1.8 binary
+    + acinclude.m4: use $RUBY variable instead of hardcoded name 'ruby' for
+      the Ruby binary to ensure that Ruby 1.8 is used in the configuration
+      process. (Closes: #676113)
+    + gonzui,the only reverse dependency, will only work with Ruby 1.8 anyway
+      because of other depencies.
+  * Set urgency to medium, as a RC bug is fixed.
+
+  [ Holger Levsen ]
+  * Remove dh_make-todo-boilerplate from debian/copyright.
+
+ -- Cédric Boutillier <cedric.boutillier@gmail.com>  Sun, 16 Sep 2012 22:33:55 +0200
+
+langscan (1.2+cvs20070125-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/control (Replaces): Added. (Closes: #408175)
+  Thanks to Junichi Uekawa for his bug report.
+
+ -- NIIBE Yutaka <gniibe@fsij.org>  Thu, 25 Jan 2007 10:51:25 +0900
+
+langscan (1.2+cvs20061228-2) unstable; urgency=low
+
+  * debian/control (Build-Depends): Added ruby.  Thanks to Kurt Roeckx.
+  (Closes: #405856).
+
+ -- NIIBE Yutaka <gniibe@fsij.org>  Sun,  7 Jan 2007 10:10:02 +0900
+
+langscan (1.2+cvs20061228-1) unstable; urgency=low
+
+  * Initial release (Closes: #404768).
+
+ -- NIIBE Yutaka <gniibe@fsij.org>  Thu, 28 Dec 2006 10:33:21 +0900
+
--- langscan-1.2+cvs20070125.orig/debian/copyright
+++ langscan-1.2+cvs20070125/debian/copyright
@@ -0,0 +1,31 @@
+This package was debianized by NIIBE Yutaka <gniibe@fsij.org> on
+Thu, 28 Dec 2006 10:33:21 +0900.
+
+It was downloaded from cvs.sourceforge.net:/cvsroot/gonzui
+
+Upstream Authors: 
+Kenichi Ishibashi <bashi at dream.ie.ariake-nct.ac.jp>
+Satoru Takabayashi <satoru at namazu.org>
+Tanaka Akira <akr at m17n.org>
+Keisuke Nishida <knishida at open-cobol.org>
+Yoshinori K. Okuji <okuji at enbug.org>
+MATSUNO Tokuhiro <tokuhirom at yahoo.co.jp>
+Tatsuhiko Miyagawa <miyagawa at bulknews.net>
+Kouichirou Eto <2005 at eto.com>
+Soutaro Matsumoto <matsumoto at soutaro.com>
+shinichro.h <hamaji at nii.ac.jp>
+Yoshinori KUNIGA  <kuniga at users.sourceforge.net>
+
+Copyright: Copyright (C) 2003, 2004, 2005 by each author above
+
+License:
+   All rights reserved.
+   This is free software with ABSOLUTELY NO WARRANTY.
+   You can redistribute it and/or modify it under the terms of 
+   the GNU General Public License version 2.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
+The Debian packaging is (C) 2006, NIIBE Yutaka <gniibe@fsij.org> and
+is licensed under the GPL, see above.
--- langscan-1.2+cvs20070125.orig/debian/README.Debian
+++ langscan-1.2+cvs20070125/debian/README.Debian
@@ -0,0 +1,7 @@
+langscan for Debian
+-------------------
+
+It used to be included in the package gonzui (until version 1.2).
+Now, it's a separate package.
+
+ -- NIIBE Yutaka <gniibe@fsij.org>, Thu, 28 Dec 2006 11:29:02 +0900
