--- cbedic-4.0.orig/debian/compat +++ cbedic-4.0/debian/compat @@ -0,0 +1 @@ +4 --- cbedic-4.0.orig/debian/changelog +++ cbedic-4.0/debian/changelog @@ -0,0 +1,59 @@ +cbedic (4.0-2ubuntu1) lucid; urgency=low + + * src/engine/translator.cpp: Fix FTBFS with gcc-4.4. + + -- Michael Bienia Sun, 03 Jan 2010 18:15:01 +0100 + +cbedic (4.0-2build2) gutsy; urgency=low + + * rebuild for libgcc2 + + -- LaMont Jones Tue, 12 Jun 2007 06:53:19 -0600 + +cbedic (4.0-2build1) dapper; urgency=low + + * Rebuild with current g++ + + -- Matthias Klose Wed, 28 Dec 2005 09:48:26 +0000 + +cbedic (4.0-2) unstable; urgency=low + + * Updated description of the package: en_bg.dat and bg_en.dat instead of + engbul.dat and buleng.dat. + + -- Anton Zinoviev Wed, 24 Sep 2003 13:41:47 +0300 + +cbedic (4.0-1) unstable; urgency=low + + * New upstream version. + - uses new and reacher language base. + - doesn't include config.guess (I hope this closes: #179608, + thanks to lamont+buildd@hp.com). + * Updated information about where one can download the language data. + Closes: #196931, thanks to Jay Bonci. + + -- Anton Zinoviev Fri, 29 Aug 2003 22:54:56 +0300 + +cbedic (1.2-2) unstable; urgency=low + + * Applied patch to fix compile errors with g++ 3.2 plus + a bug where either the character 0xff could be mistaken for + EOF (if chars behave as signed), or EOFs would not be recognized + at all (if chars behave as unsigned). Thanks to Jeroen T. Vermeulen + (closes: #174961). + + -- Anton Zinoviev Thu, 16 Jan 2003 20:55:26 +0300 + +cbedic (1.2-1) unstable; urgency=low + + * New upstream version. + * Closes: #96996 + + -- Anton Zinoviev Mon, 2 Jul 2001 23:05:46 +0300 + +cbedic (1.0-1) unstable; urgency=low + + * Initial Release. Closes: #96996 + + -- Anton Zinoviev Mon, 14 May 2001 23:31:56 +0300 + --- cbedic-4.0.orig/debian/postrm +++ cbedic-4.0/debian/postrm @@ -0,0 +1,5 @@ +#!/bin/sh -e + +#DEBHELPER# + +rmdir /usr/local/share/bedic || true --- cbedic-4.0.orig/debian/postinst +++ cbedic-4.0/debian/postinst @@ -0,0 +1,5 @@ +#!/bin/sh -e + +#DEBHELPER# + +mkdir -p /usr/local/share/bedic || true --- cbedic-4.0.orig/debian/README.Debian +++ cbedic-4.0/debian/README.Debian @@ -0,0 +1,9 @@ +cbedic for Debian +----------------- + +You have to go to http://ftp1.sourceforge.net/kbedic, get the +package bedic-data-4.0.tar.gz, unpack it and install the files en_bg.dat +and bg_en.dat in directory /usr/local/share/bedic/. Please look at +README.gz and README.kbedic.gz for additional information and help. + + -- Anton Zinoviev , Wed Sep 24 13:40:28 2003 --- cbedic-4.0.orig/debian/copyright +++ cbedic-4.0/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Anton Zinoviev on +Tue, 2 Jul 2001 18:15:42 +0300. + +It was downloaded from http://kbedic.sourceforge.net/download.php +(cbedic-src-xxx.tar.gz) where `xxx' corresponds to the Debian version +of the package. + +Copyright (C) 2000 Radostin Radnev +Copyright (C) 2001-2003 Antoby + + +CBE Dictionary 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, or (at your option) +any later version. + +This program 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, write to the Free Software +Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- cbedic-4.0.orig/debian/rules +++ cbedic-4.0/debian/rules @@ -0,0 +1,49 @@ +#!/usr/bin/make -f + +configure: configure-stamp +configure-stamp: + dh_testdir + ./configure --prefix=/usr --datadir=/usr/local/share/bedic + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + rm -f build-stamp configure-stamp + -$(MAKE) distclean + -rm -f src/win.moc.cpp src/test.moc.cpp + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + $(MAKE) install prefix=$(CURDIR)/debian/cbedic/usr + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installmenu +# dh_installman +# dh_undocumented + dh_installchangelogs ChangeLog + dh_strip +# dh_link + dh_compress + dh_fixperms + 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 --- cbedic-4.0.orig/debian/control +++ cbedic-4.0/debian/control @@ -0,0 +1,23 @@ +Source: cbedic +Section: contrib/text +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Anton Zinoviev +Build-Depends: debhelper (>> 4.0.0) +Standards-Version: 3.6.0 + +Package: cbedic +Architecture: any +Description: Text-mode Bulgarian/English Dictionary + CBE Dictionary is a command-line Bulgarian to English and English to + Bulgarian electronic Dictionary. It can work in interactive mode + too. + . + The dictionary databases are not included in this package. You have + to download bedic-data-4.0.tar.gz from + http://kbedic.sourceforge.net. Install the files + bg_en.dat and en_bg.dat in /usr/local/share/bedic. +Depends: ${shlibs:Depends} +Suggests: kbedic +Section: contrib/text +Priority: optional --- cbedic-4.0.orig/debian/docs +++ cbedic-4.0/debian/docs @@ -0,0 +1,3 @@ +README +README.bg +README.kbedic --- cbedic-4.0.orig/src/engine/translator.cpp +++ cbedic-4.0/src/engine/translator.cpp @@ -291,7 +291,7 @@ //======================================================================== bool Translator::isLatinInput(const char *word, char *buf, const bool ignoreSpace) { int i = 0; - char *p; + const char *p; while (word[i] != '\0') { if ((ignoreSpace) && (word[i] == ' ')) { buf[i] = word[i]; @@ -321,7 +321,7 @@ char *Translator::toLatin(const char *word, char *buf, const bool legalLatinInput) { int i = 0; int j = 0; - char *p; + const char *p; char c; while ((c = word[i]) != '\0') { if (legalLatinInput) {