--- ebview-0.3.6.2.orig/debian/compat
+++ ebview-0.3.6.2/debian/compat
@@ -0,0 +1 @@
+7
--- ebview-0.3.6.2.orig/debian/rules
+++ ebview-0.3.6.2/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+# Add here any variable or target overrides you need.
+
+DEB_CONFIGURE_EXTRA_FLAGS := --sysconfdir=/etc
+DEB_MAKE_INSTALL_TARGET := install prefix=$(CURDIR)/debian/ebview/usr
+
+build/ebview::
+	$(CC) $(CFLAGS) -o $(CURDIR)/src/ebview-client $(CURDIR)/src/ebview-client.c
+
+install/ebview::
+	install -m 755 $(CURDIR)/src/ebview-client $(CURDIR)/debian/ebview/usr/bin	
+	install -m 644 $(CURDIR)/pixmaps/ebview-32x32.xpm $(CURDIR)/debian/ebview/usr/share/pixmaps/ebview.xpm
+	install -m 644 $(CURDIR)/debian/ebview.desktop $(CURDIR)/debian/ebview/usr/share/applications
+
+clean::
+	rm -f $(CURDIR)/src/ebview-client
+
--- ebview-0.3.6.2.orig/debian/docs
+++ ebview-0.3.6.2/debian/docs
@@ -0,0 +1,2 @@
+NEWS
+README
--- ebview-0.3.6.2.orig/debian/ebview.1
+++ ebview-0.3.6.2/debian/ebview.1
@@ -0,0 +1,80 @@
+.\" This -*- nroff -*- file has been generated from
+.\" DocBook SGML with docbook-to-man on Debian GNU/Linux.
+...\"
+...\"	transcript compatibility for postscript use.
+...\"
+...\"	synopsis:  .P! <file.ps>
+...\"
+.de P!
+\\&.
+.fl			\" force out current output buffer
+\\!%PB
+\\!/showpage{}def
+...\" the following is from Ken Flowers -- it prevents dictionary overflows
+\\!/tempdict 200 dict def tempdict begin
+.fl			\" prolog
+.sy cat \\$1\" bring in postscript file
+...\" the following line matches the tempdict above
+\\!end % tempdict %
+\\!PE
+\\!.
+.sp \\$2u	\" move below the image
+..
+.de pF
+.ie     \\*(f1 .ds f1 \\n(.f
+.el .ie \\*(f2 .ds f2 \\n(.f
+.el .ie \\*(f3 .ds f3 \\n(.f
+.el .ie \\*(f4 .ds f4 \\n(.f
+.el .tm ? font overflow
+.ft \\$1
+..
+.de fP
+.ie     !\\*(f4 \{\
+.	ft \\*(f4
+.	ds f4\"
+'	br \}
+.el .ie !\\*(f3 \{\
+.	ft \\*(f3
+.	ds f3\"
+'	br \}
+.el .ie !\\*(f2 \{\
+.	ft \\*(f2
+.	ds f2\"
+'	br \}
+.el .ie !\\*(f1 \{\
+.	ft \\*(f1
+.	ds f1\"
+'	br \}
+.el .tm ? font underflow
+..
+.ds f1\"
+.ds f2\"
+.ds f3\"
+.ds f4\"
+'\" t 
+.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n  
+.TH "EBVIEW" "1" 
+.SH "NAME" 
+ebview \(em An EPWING CD-ROM dictionary viewer 
+.SH "SYNOPSIS" 
+.PP 
+\fBebview\fP [\fB-e \fIthis\fP\fP]  [\fB--example \fIthat\fP\fP]  
+.SH "DESCRIPTION" 
+.PP 
+This manual page documents briefly the 
+\fBebview\fP commands. 
+.PP 
+This manual page was written for the \fBDebian\fP distribution 
+because the original program does not have a manual page. 
+.PP 
+\fBebview\fP is a program that... 
+.PP 
+\fBebview\fP is an EPWING CD-ROM 
+dictionary viewer using libeb. It uses libeb and supports  
+EPWING format. It can read multiple dictionary at same time and  
+can search words on X11 cut-buffer automatically. 
+.SH "AUTHOR" 
+.PP 
+This manual page was written by Masayuki Hatta mhatta@debian.org for 
+the \fBDebian\fP system (but may be used by others).  
+...\" created by instant / docbook-to-man, Sat 24 May 2003, 17:22 
--- ebview-0.3.6.2.orig/debian/control
+++ ebview-0.3.6.2/debian/control
@@ -0,0 +1,15 @@
+Source: ebview
+Section: text
+Priority: extra
+Maintainer: Masayuki Hatta (mhatta) <mhatta@debian.org>
+Build-Depends: cdbs, debhelper (>= 7), autotools-dev, quilt, libeb16-dev, libgtk2.0-dev
+Standards-Version: 3.8.2
+Homepage: http://ebview.sourceforge.net/
+
+Package: ebview
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: edict-fpw
+Description: EPWING dictionary viewer
+ This tool can read multiple dictionaries at the same time and
+ provides a search facility supporting the X11 cut-and-paste buffer.
--- ebview-0.3.6.2.orig/debian/changelog
+++ ebview-0.3.6.2/debian/changelog
@@ -0,0 +1,228 @@
+ebview (0.3.6.2-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Build-depends on libeb16-dev instead of libeb13-dev (Closes: #623456).
+
+ -- Luca Falavigna <dktrkranz@debian.org>  Sun, 15 May 2011 01:08:02 +0200
+
+ebview (0.3.6.2-1) unstable; urgency=low
+
+  * New upstream (though unofficial) release.
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Sun, 16 Aug 2009 07:56:21 +0900
+
+ebview (0.3.6.1-1) unstable; urgency=low
+
+  * New upstream (though unofficial) release.
+  * Converted to CDBS.
+  * Rebuilt with libeb13 - closes: #539005
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Sat, 15 Aug 2009 08:17:47 +0900
+
+ebview (0.3.6-9) unstable; urgency=low
+
+  * Added ebview.desktop, thanks fueryuejing - closes: #471002
+  * Bumped to Standards-Version: 3.8.0.
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Wed, 16 Jul 2008 10:40:02 +0900
+
+ebview (0.3.6-8) unstable; urgency=low
+
+  * Added ebview-client (but doesn't work currently) - closes: #459694
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Tue, 08 Jan 2008 14:49:51 +0900
+
+ebview (0.3.6-7) unstable; urgency=low
+
+  * Seems what I really need to do was running autoreconf... 
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Tue, 11 Dec 2007 03:27:38 +0900
+
+ebview (0.3.6-6) unstable; urgency=low
+
+  * Added automake | automaken to Build-Deps.  Seems automake is
+    needed to build this package on some archs (at least powerpc).
+    I'm not sure why... 
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Tue, 11 Dec 2007 02:46:24 +0900
+
+ebview (0.3.6-5) unstable; urgency=low
+
+  * Bumped to Standards-Version: 3.7.3.
+  * Fixed various lintian warnings.
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Thu, 06 Dec 2007 22:15:47 +0900
+
+ebview (0.3.6-4) unstable; urgency=low
+
+  * Maintainer upload.
+  * Acknowledged NMU, thanks Cyril - closes: #444523
+  * Applied display popup window fix from Ubuntu - closes: #450595
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Tue, 04 Dec 2007 20:56:38 +0900
+
+ebview (0.3.6-3.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Comment the  “#define GTK_DISABLE_DEPRECATED 1” line in src/ebview.c to
+    avoid FTBFS due to the Gtk 2.12 transition (Closes: #444523).
+  * Move menu section from “Apps/Text” to “Applications/Text”, due to the menu
+    transition.
+  * No longer ignore “make distclean” errors, per lintian.
+
+ -- Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>  Tue, 09 Oct 2007 01:52:26 +0200
+
+ebview (0.3.6-3) unstable; urgency=low
+
+  * Maintainer upload.
+  * Acknowledged NMU - closes: #410444, #414460
+  * Ran autoreconf -i - closes: #417404
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Tue, 01 May 2007 16:51:00 +0900
+
+ebview (0.3.6-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Build-depend on libeb12-dev rather than on libeb7-dev. (Closes: #410444)
+  * automaken is not necessary to build ebview, build dependency dropped.
+    (Closes: #414460)
+
+ -- Emanuele Rocca <ema@debian.org>  Sun, 18 Mar 2007 23:37:27 +0100
+
+ebview (0.3.6-2) unstable; urgency=low
+
+  * Bumped to Standards-Version: 3.7.2.
+  * Acknowledged NMU, thanks Mario - closes: #355323
+  * Fixed FSF's address.
+  * Converted the menu icon to 32x32.
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Sun,  8 Oct 2006 18:30:40 +0900
+
+ebview (0.3.6-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload, BSP Zurich/Switzerland.
+  * Fix a FTBFS (Closes: #355323)
+    - Link now against libpangox
+    - Added some macros to configure.in for PANGOX
+
+ -- Mario Iseli <admin@marioiseli.com>  Sat, 9 Sep 2006 16:29:05 +0200
+
+ebview (0.3.6-1) unstable; urgency=high
+
+  * The "Brief Return From The Hell" release.
+  * New upstream release.
+  * Acknowledged NMU - closes: #250122
+  * Now suggests (recommends may be too strong) edict-fpw - closes: #258893
+  * Now installs the icon and revised menu - closes: #258892
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Sun,  8 Aug 2004 04:15:23 +0900
+
+ebview (0.3.5-1.1) unstable; urgency=medium
+
+  * NMU
+  * Fix for GTK+2.4 build fail (closes: Bug#250122)
+
+ -- Kenshi Muto <kmuto@debian.org>  Sat, 10 Jul 2004 09:43:16 +0000
+
+ebview (0.3.5-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Mon,  8 Mar 2004 01:27:33 +0900
+
+ebview (0.3.3-2) unstable; urgency=low
+
+  * [control] changed Maintainer field.
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Mon,  9 Feb 2004 14:31:41 +0900
+
+ebview (0.3.3-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Masayuki Hatta (mhatta) <mhatta@debian.org>  Sat,  7 Feb 2004 17:19:12 +0900
+
+ebview (0.3.1-3) unstable; urgency=low
+
+  * Rebuilt with new gtk+2.0.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Tue,  7 Oct 2003 00:07:07 +0900
+
+ebview (0.3.1-2) unstable; urgency=low
+
+  * Linked with libeb7.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Tue, 16 Sep 2003 08:53:23 +0900
+
+ebview (0.3.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Masayuki Hatta <mhatta@debian.org>  Sun,  6 Jul 2003 20:32:04 +0900
+
+ebview (0.3.0-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Masayuki Hatta <mhatta@debian.org>  Sat, 24 May 2003 17:07:16 +0900
+
+ebview (0.2.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Masayuki Hatta <mhatta@debian.org>  Sun, 27 Apr 2003 19:26:38 +0900
+
+ebview (0.2.0-2) unstable; urgency=low
+
+  * Bumped to Standards-Version: 3.5.9.
+  * Linked with new eb.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Mon, 21 Apr 2003 21:48:49 +0900
+
+ebview (0.2.0-1) unstable; urgency=low
+
+  * New upstream release
+  * Build-Depends: automake1.7
+  * Bumped to Standards-Version: 3.5.8.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Sat, 21 Dec 2002 20:00:32 +0900
+
+ebview (0.1.5p1-4) unstable; urgency=low
+
+  * Built with imlib1-dev/gdk-imlib1-dev.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Fri, 30 Aug 2002 10:13:37 +0900
+
+ebview (0.1.5p1-3) unstable; urgency=low
+
+  * Built with new gdk-imlib-dev.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Wed, 21 Aug 2002 11:58:36 +0900
+
+ebview (0.1.5p1-2) unstable; urgency=low
+
+  * Added automake to Build-Depends - closes: #153073
+
+ -- Masayuki Hatta <mhatta@debian.org>  Tue, 16 Jul 2002 15:05:31 +0900
+
+ebview (0.1.5p1-1) unstable; urgency=low
+
+  * New upstream release(applied ebview-0.1.5.patch1).
+  * Added gdk-imlib-dev to Build-Depends - closes: #150906
+  * Improved description - closes: #150885
+
+ -- Masayuki Hatta <mhatta@debian.org>  Mon, 15 Jul 2002 20:51:29 +0900
+
+ebview (0.1.5-1) unstable; urgency=low
+
+  * New upstream release.
+  * Initial release for Debian Project - closes: #149459
+
+ -- Masayuki Hatta <mhatta@debian.org>  Sun,  9 Jun 2002 23:44:58 +0900
+
+ebview (0.1.4-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Masayuki Hatta <mhatta@debian.org>  Mon, 25 Feb 2002 09:55:47 +0900
+
--- ebview-0.3.6.2.orig/debian/ebview.desktop
+++ ebview-0.3.6.2/debian/ebview.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=EBView
+Name[ja]=EBView 辞書ブラウザ
+Comment=EPWING CD-ROM dictionary viewer
+Comment[ja]=EPWING形式のCD-ROM辞書を検索します
+Icon=/usr/share/pixmaps/ebview.xpm
+Exec=/usr/bin/ebview
+StartupNotify=true
+Terminal=false
+Type=Application
+Categories=Application;GTK;Utility;Dictionary;
+MimeType=application/ebview;
--- ebview-0.3.6.2.orig/debian/dirs
+++ ebview-0.3.6.2/debian/dirs
@@ -0,0 +1,4 @@
+usr/bin
+usr/share/applications
+usr/share/pixmaps
+
--- ebview-0.3.6.2.orig/debian/ebview.sgml
+++ ebview-0.3.6.2/debian/ebview.sgml
@@ -0,0 +1,113 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
+     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+     less'.  A typical entry in a Makefile or Makefile.am is:
+
+ebview.1: ebview.sgml
+	docbook-to-man $< > $@
+
+    
+	The docbook-to-man binary is found in the docbook-to-man package.
+	Please remember that if you create the nroff version in one of the
+	debian/rules file targets (such as build), you will need to include
+	docbook-to-man in your Build-Depends control field.
+
+  -->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>Masayuki</firstname>">
+  <!ENTITY dhsurname   "<surname>Hatta</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>Febrary 25, 2002</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>mhatta@debian.org</email>">
+  <!ENTITY dhusername  "Masayuki Hatta">
+  <!ENTITY dhucpackage "<refentrytitle>EBVIEW</refentrytitle>">
+  <!ENTITY dhpackage   "ebview">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2002</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>An EPWING CD-ROM dictionary viewer</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+      <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+      <arg><option>--example <replaceable>that</replaceable></option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> commands.</para>
+
+    <para>This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.</para>
+
+    <para><command>&dhpackage;</command> is a program that...</para>
+
+    <para><command>&dhpackage;</command> is an EPWING CD-ROM
+      dictionary viewer using libeb. It uses libeb and supports 
+      EPWING format. It can read multiple dictionary at same time and 
+      can search words on X11 cut-buffer automatically.</para>
+
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others). </para>
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
--- ebview-0.3.6.2.orig/debian/copyright
+++ ebview-0.3.6.2/debian/copyright
@@ -0,0 +1,39 @@
+This package was debianized by:
+
+    Masayuki Hatta (mhatta) <mhatta@debian.org> on Sat, 15 Aug 2009 10:00:19 +0900
+
+It was downloaded from:
+
+    http://ebview.sourceforge.net/
+
+Upstream Author:
+
+    Kenichi SUTO <deep_blue@users.sourceforge.net>
+
+Copyright:
+
+    Copyright (C) 2001- Kenichi SUTO
+
+License:
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 2 of the License, or
+    (at your option) any later version.
+
+    This package is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+On Debian systems, the complete text of the GNU General
+Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
+
+The Debian packaging is:
+
+    Copyright (C) 2009 Masayuki Hatta (mhatta) <mhatta@debian.org>
+
+and is licensed under the GPL version 3, see above.
--- ebview-0.3.6.2.orig/debian/ebview.manpages
+++ ebview-0.3.6.2/debian/ebview.manpages
@@ -0,0 +1 @@
+debian/ebview.1
--- ebview-0.3.6.2.orig/debian/menu
+++ ebview-0.3.6.2/debian/menu
@@ -0,0 +1,4 @@
+?package(ebview):needs="X11" section="Applications/Text"\
+  longtitle="EPWING dictionary viewer"\
+  icon="/usr/share/pixmaps/ebview.xpm"\
+  title="EBView" command="/usr/bin/ebview"
