debian/0000755000000000000000000000000012141533647007174 5ustar debian/compat0000644000000000000000000000000211741345050010364 0ustar 7 debian/libdawgdic-dev.install0000644000000000000000000000001711741345050013421 0ustar /usr/include/* debian/dawgdic-tools.manpages0000644000000000000000000000002411741345050013437 0ustar debian/manpages/*.1 debian/control0000644000000000000000000000165512060145307010576 0ustar Source: dawgdic Section: libs Priority: optional Maintainer: Jakub Wilk Build-Depends: debhelper (>= 7), dpkg-dev (>= 1.16.1), autoconf (>= 2.61), automake, python-docutils (>= 0.6) | python3-docutils Standards-Version: 3.9.4 Homepage: http://code.google.com/p/dawgdic/ Package: libdawgdic-dev Section: libdevel Architecture: all Multi-Arch: foreign Depends: ${misc:Depends} Description: C++ library for DAWG dictionaries dawgdic is a C++ library for building and accessing dictionaries implemented with directed acyclic word graphs (DAWGs). . This package contains the development files. Package: dawgdic-tools Section: text Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: command line tools for DAWG dictionaries dawgdic is a library for building and accessing dictionaries implemented with directed acyclic word graphs (DAWGs). . This package contains the command-line tools. debian/dawgdic-tools.install0000644000000000000000000000001311741345050013310 0ustar /usr/bin/* debian/patches/0000755000000000000000000000000012067340701010615 5ustar debian/patches/series0000644000000000000000000000002112051701375012024 0ustar out-of-tree.diff debian/patches/out-of-tree.diff0000644000000000000000000000065512067340701013623 0ustar Description: fix testing for out-of-tree builds Author: Jakub Wilk Forwarded: https://code.google.com/p/dawgdic/issues/detail?id=10 Last-Update: 2012-12-28 --- a/test/dawg-builder-test.sh +++ b/test/dawg-builder-test.sh @@ -4,7 +4,7 @@ find_bin="${TOP_BUILDDIR:-..}/src/dawgdic-find" test_dir="${TOP_SRCDIR:-..}/test" -"${test_dir}/dawg-builder-test" +./dawg-builder-test if [ $? -ne 0 ] then exit 1 debian/copyright0000644000000000000000000001344611741345606011140 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: dawgdic Upstream-Contact: Susumu Yata Source: http://code.google.com/p/dawgdic/ Files: * Copyright: 2009-2012, Susumu Yata License: BSD-3-clauses Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . - Neither the name of the University of Tokushima nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: 2012, Jakub Wilk License: BSD-2-clauses Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: aclocal.m4 Copyright: 1996-2008, Free Software Foundation, Inc. License: GNU-permissive This file is free software; the Free Software Foundation gives unlimited permission to copy and/or distribute it, with or without modifications, as long as this notice is preserved. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Files: depcomp missing Copyright: 1996-2007, Free Software Foundation, Inc. License: GPL-2+ with Autoconf exception 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, 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. . As a special exception to the GNU General Public License, if you distribute this file as part of a program that contains a configuration script generated by Autoconf, you may include it under the same distribution terms that you use for the rest of that program. . You can find the GPL version 2 in /usr/share/common-licenses/GPL-2 on Debian systems. Files: install-sh Copyright: 1994, X Consortium License: X11 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 X CONSORTIUM 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. . Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium. . FSF changes to this file are in the public domain. debian/watch0000644000000000000000000000013411741345050010215 0ustar version=3 http://code.google.com/p/dawgdic/downloads/list \ .*/dawgdic-([0-9.]+)[.]tar[.]gz debian/manpages/0000755000000000000000000000000012141533647010767 5ustar debian/manpages/dawgdic-find.rst0000644000000000000000000000112212141533517014031 0ustar ============ dawgdic-find ============ ------------------------------------- find words in a DAWG-based dictionary ------------------------------------- :manual section: 1 :version: dawgdic 0.4.5 :date: 2013-05-05 Usage ----- **dawgdic-find** [`options`] `dictionary-file` [`lexicon-file`] Description ----------- **dawgdic-find** queries DAWG dictionary `dictionary-file` for words read from `lexicon-file` (or from standard input). Options ------- -h Display help and exit. -g Load dictionary with guide. -r Load dictionary with ranked guide. See also -------- **dawgdic-build**\(1) debian/manpages/dawgdic-build.rst0000644000000000000000000000122012141533516014206 0ustar ============= dawgdic-build ============= ----------------------------- build a DAWG-based dictionary ----------------------------- :manual section: 1 :version: dawgdic 0.4.5 :date: 2013-05-05 Usage ----- **dawgdic-build** [`options`] [`lexicon-file` [`dictionary-file`]] Description ----------- **dawgdic-build** reads sorted list of words from `lexicon-file` (or standard input), builds a DAWG dictionary and saves it to `dictionary-file` (or to standard output). Options ------- -h Display help and exit. -t Handle tab as separator. -g Build dictionary with guide. -r Build dictionary with ranked guide. See also -------- **dawgdic-find**\(1) debian/changelog0000644000000000000000000000262012141533645011044 0ustar dawgdic (0.4.5-2) unstable; urgency=low * Upload to unstable. * Don't use dh_testdir; instead: + use makefile rules to ensure that debian/rules can be only run in the correct directory; + call dh_clean as the first command in the clean target. * Add information about version and date to the manual pages. -- Jakub Wilk Sun, 05 May 2013 21:48:52 +0200 dawgdic (0.4.5-1) experimental; urgency=low * New upstream release. + Add patch to fix testing for out-of-tree builds. (out-of-tree.diff) -- Jakub Wilk Fri, 28 Dec 2012 16:59:21 +0100 dawgdic (0.4.4-1) experimental; urgency=low * New upstream release. * Add DEP-8 tests. * Bump standards version to 3.9.4; no changes needed. -- Jakub Wilk Wed, 14 Nov 2012 16:55:42 +0100 dawgdic (0.4.3-1) unstable; urgency=low * New upstream release. + Drop all patches, applied upstream. + Fix FTBFS on big-endian systems (closes: #667600). * Add missing target dependencies to debian/rules. * Update copyright file. -- Jakub Wilk Wed, 11 Apr 2012 20:51:20 +0200 dawgdic (0.4.2-1) unstable; urgency=low * Initial release (closes: #604253). * Add patch to allow out-of-tree builds. (out-of-tree.diff) * Add patch to fix a typo in dawgdic-build. (typo.diff) -- Jakub Wilk Mon, 26 Mar 2012 15:30:26 +0200 debian/source/0000755000000000000000000000000011741345050010466 5ustar debian/source/format0000644000000000000000000000001411741345050011674 0ustar 3.0 (quilt) debian/source/options0000644000000000000000000000037311741345050012107 0ustar extend-diff-ignore = "(^|/)Makefile[.]in$" extend-diff-ignore = "^INSTALL$" extend-diff-ignore = "^aclocal[.]m4$" extend-diff-ignore = "^configure$" extend-diff-ignore = "^depcomp$" extend-diff-ignore = "^install-sh$" extend-diff-ignore = "^missing$" debian/rules0000755000000000000000000000403112141532605010243 0ustar #!/usr/bin/make -f DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) configure_flags = --prefix=/usr configure_flags += --build $(DEB_BUILD_GNU_TYPE) ifneq "$(DEB_BUILD_GNU_TYPE)" "$(DEB_HOST_GNU_TYPE)" configure_flags += --host $(DEB_HOST_GNU_TYPE) endif configure_flags += $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags --export=configure) n_jobs = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) parallel = -j$(or $(n_jobs),1) manpage_sources = $(wildcard debian/manpages/*.rst) manpages = $(manpage_sources:.rst=.1) .PHONY: clean clean: dh_clean rm -rf obj/ rm -rf $(manpages) .PHONY: build build-arch build-indep build build-arch build-indep: obj/build-stamp ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" "" build build-arch build-indep: obj/test-stamp endif obj/autoconf-stamp: configure.ac dh_testdir autoreconf -vfi mkdir -p $(dir $@) touch $(@) obj/config.status: obj/autoconf-stamp dh_testdir cd obj/ && ../configure $(configure_flags) %.1: %.rst rst2man $(<) $(@) obj/build-stamp: obj/config.status $(manpages) dh_testdir $(MAKE) -C obj/ $(parallel) touch $(@) obj/test-stamp: obj/build-stamp $(MAKE) -C obj/test/ check touch $(@) .PHONY: binary binary-arch binary-indep binary: binary-arch binary-indep obj/install-stamp: obj/build-stamp dh_testdir $(MAKE) -C obj/ install DESTDIR=$(CURDIR)/debian/tmp touch $(@) binary-arch: obj/install-stamp dh_testdir dh_testroot dh_prep -a -X tmp dh_install -a --fail-missing dh_installdocs -a dh_installchangelogs -a dh_installman dh_compress -a dh_fixperms -a dh_strip -a dh_shlibdeps -a dh_installdeb -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary-indep: obj/install-stamp dh_testdir dh_testroot dh_prep -i -X tmp dh_install -i --fail-missing dh_installdocs -i dh_installchangelogs -i dh_compress -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i .SECONDARY: .NOTPARALLEL: # vim:ts=4 sw=4 noet debian/tests/0000755000000000000000000000000012050737200010324 5ustar debian/tests/completer-test0000755000000000000000000000013212050735506013224 0ustar #!/bin/sh set -e -u . debian/tests/common.sh run_test completer-test.sh # vim:ts=4 sw=4 debian/tests/common.sh0000644000000000000000000000103512050737200012147 0ustar prepare_test() { return } run_test() { test_script="$1" export TOP_BUILDDIR="$ADTTMP" export TOP_SRCDIR="$ADTTMP" cp -a test "$ADTTMP/test" ln -s /usr/bin "$ADTTMP/src" rc=0 cd "$ADTTMP/test" echo -n "$test_script ... " : > "${test_script}.out" if ! prepare_test then echo ERROR elif ./"$test_script" 2>>"${test_script}.out" then echo ok else echo FAIL rc=1 fi sed -e 's/^/| /' < "${test_script}.out" return $rc } # vim:ts=4 sw=4 et debian/tests/control0000644000000000000000000000035412050736770011744 0ustar Tests: dawg-builder-test Depends: dawgdic-tools, libdawgdic-dev, g++ Tests: dictionary-test Depends: dawgdic-tools Tests: completer-test Depends: dawgdic-tools Tests: ranked-completer-test Depends: dawgdic-tools, libdawgdic-dev, g++ debian/tests/ranked-completer-test0000755000000000000000000000030512050735614014470 0ustar #!/bin/sh set -e -u . debian/tests/common.sh prepare_test() { f="$ADTTMP/test/ranked-completer-test.cc" g++ -g -O2 -Wall "$f" -o "${f%.cc}" } run_test ranked-completer-test.sh # vim:ts=4 sw=4 debian/tests/dawg-builder-test0000755000000000000000000000027212050737054013605 0ustar #!/bin/sh set -e -u . debian/tests/common.sh prepare_test() { f="$ADTTMP/test/dawg-builder-test.cc" g++ -g -O2 -Wall "$f" -o "${f%.cc}" } run_test dawg-builder-test # vim:ts=4 sw=4 debian/tests/dictionary-test0000755000000000000000000000013312050735512013375 0ustar #!/bin/sh set -e -u . debian/tests/common.sh run_test dictionary-test.sh # vim:ts=4 sw=4