--- dict-moby-thesaurus-1.0.orig/conv.py +++ dict-moby-thesaurus-1.0/conv.py @@ -0,0 +1,35 @@ +import sys, dictdlib + +# Conversion script by John Goerzen + +itextfile = open("introduction.txt", "rt") + + +dw = dictdlib.DictWriter("moby-thesaurus", + 'http://www.ibiblio.org/pub/docs/books/gutenberg/etext02/mthes10.zip', + 'Moby Thesaurus II by Grady Ward, 1.0', + itextfile.read(-1)) + +while 1: + line = sys.stdin.readline() + if not line: + break + line.strip() + base, d = line.split(',', 1) + defstr = "" + defline = " " + count = 0 + for defword in d.split(','): + count += 1 + if len(defline) + len(defword) + 3 > 70: + defstr += defline + "," + "\n" + defline = " " + defword + elif defline == " ": + defline += defword + else: + defline += ", " + defword + if defline != " ": + defstr += defline + "\n" + dw.writeentry("%s Moby Thesaurus words for \"%s\":\n" % (count, base) + \ + defstr, [base]) +dw.finish() --- dict-moby-thesaurus-1.0.orig/debian/changelog +++ dict-moby-thesaurus-1.0/debian/changelog @@ -0,0 +1,69 @@ +dict-moby-thesaurus (1.0-6.3) unstable; urgency=medium + + * Non-maintainer upload. + * Update DH level to 9. (Closes: #800227) + * debian/compat: created and set to 9, instead of using DH_COMPAT. + * debian/control: + - Added the ${misc:Depends} variable to provide the right install + dependencies. + - Bumped Standards-Version to 3.9.7. + - Moved debhelper from Build-Depends-Indep to Build-Depends. + * debian/rules: removed the DH_COMPAT line. + + -- Giovani Augusto Ferreira Sat, 26 Mar 2016 23:27:43 -0300 + +dict-moby-thesaurus (1.0-6.2) unstable; urgency=low + + * Non-maintainer upload. + * /etc/init.d/dictd sanity checks; closes: #440541. + + -- Robert S. Edmonds Tue, 11 Sep 2007 16:25:56 -0400 + +dict-moby-thesaurus (1.0-6.1) unstable; urgency=low + + * Non-maintainer upload. + * Use invoke-rc.d; closes: #367733. + + -- Robert S. Edmonds Sun, 02 Sep 2007 02:11:42 -0400 + +dict-moby-thesaurus (1.0-6) unstable; urgency=low + + * Use current Python to build. Closes: #401516. + + -- John Goerzen Mon, 4 Dec 2006 22:38:10 -0600 + +dict-moby-thesaurus (1.0-5) unstable; urgency=low + + * Build process updated for Python 2.3. Closes: #212070. + * Changed dep on dictd to dictzip, as it moved out of that package. + + -- John Goerzen Tue, 7 Oct 2003 13:43:43 -0500 + +dict-moby-thesaurus (1.0-4) unstable; urgency=low + + * Modified to require newer dictdlib and ensure proper sorting of + the index. + + -- John Goerzen Fri, 19 Apr 2002 17:16:56 -0500 + +dict-moby-thesaurus (1.0-3) unstable; urgency=low + + * Switched to the dictdlib dict generator in Python that I wrote. + There is more control over the output this way. + Updated control to refer to proper packages. + * Made sure to clean .pyc files. + + -- John Goerzen Fri, 19 Apr 2002 11:56:48 -0500 + +dict-moby-thesaurus (1.0-2) unstable; urgency=low + + * Slightly nicer output formatting for first line. + + -- John Goerzen Thu, 18 Apr 2002 21:51:23 -0500 + +dict-moby-thesaurus (1.0-1) unstable; urgency=low + + * Initial Release. Closes: #143503. + + -- John Goerzen Thu, 18 Apr 2002 14:46:10 -0500 + --- dict-moby-thesaurus-1.0.orig/debian/compat +++ dict-moby-thesaurus-1.0/debian/compat @@ -0,0 +1 @@ +9 --- dict-moby-thesaurus-1.0.orig/debian/control +++ dict-moby-thesaurus-1.0/debian/control @@ -0,0 +1,22 @@ +Source: dict-moby-thesaurus +Section: text +Priority: optional +Maintainer: John Goerzen +Build-Depends: debhelper (>=9) +Build-Depends-Indep: python (>= 2.4.3), python-dictdlib (>= 2.0.4), dictzip +Standards-Version: 3.9.7 + +Package: dict-moby-thesaurus +Architecture: all +Depends: ${misc:Depends} +Suggests: dict, dictd +Description: Largest and most comprehensive thesaurus + Moby Thesaurus is the largest and most comprehensive thesaurus data + source in English available for commercial use. This second edition + has been thoroughly revised adding more than 5,000 root words (to + total more than 30,000) with an additional _million_ synonyms and + related terms (to total more than 2.5 _million_ synonyms and related + terms). + . + This is formatted for use by the dictionary server in the dictd + package. --- dict-moby-thesaurus-1.0.orig/debian/copyright +++ dict-moby-thesaurus-1.0/debian/copyright @@ -0,0 +1,15 @@ +This package was debianized by John Goerzen on +Thu, 18 Apr 2002 14:46:10 -0500. + +It was downloaded from +http://www.ibiblio.org/pub/docs/books/gutenberg/etext02/mthes10.zip + +Upstream Author(s): Grady Ward + +Copyright: + +Moby (tm) Thesaurus II Documentation Notes + +This documentation, the software and/or database are: + +Public Domain material by grant from the author, January, 2001. --- dict-moby-thesaurus-1.0.orig/debian/dirs +++ dict-moby-thesaurus-1.0/debian/dirs @@ -0,0 +1 @@ +usr/share/dictd --- dict-moby-thesaurus-1.0.orig/debian/docs +++ dict-moby-thesaurus-1.0/debian/docs @@ -0,0 +1 @@ +aaREADME.txt --- dict-moby-thesaurus-1.0.orig/debian/ex.package.doc-base +++ dict-moby-thesaurus-1.0/debian/ex.package.doc-base @@ -0,0 +1,22 @@ +Document: dict-moby-thesaurus +Title: Debian dict-moby-thesaurus Manual +Author: +Abstract: This manual describes what dict-moby-thesaurus is + and how it can be used to + manage online manuals on Debian systems. +Section: unknown + +Format: debiandoc-sgml +Files: /usr/share/doc/dict-moby-thesaurus/dict-moby-thesaurus.sgml.gz + +Format: postscript +Files: /usr/share/doc/dict-moby-thesaurus/dict-moby-thesaurus.ps.gz + +Format: text +Files: /usr/share/doc/dict-moby-thesaurus/dict-moby-thesaurus.text.gz + +Format: HTML +Index: /usr/share/doc/dict-moby-thesaurus/html/index.html +Files: /usr/share/doc/dict-moby-thesaurus/html/*.html + + --- dict-moby-thesaurus-1.0.orig/debian/postinst +++ dict-moby-thesaurus-1.0/debian/postinst @@ -0,0 +1,56 @@ +#! /bin/sh +# postinst script for dict-moby-thesaurus +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + if [ -x /usr/sbin/dictdconfig ]; then dictdconfig -w ;fi + if [ -x /etc/init.d/dictd ]; then + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d dictd restart + else + /etc/init.d/dictd restart + fi + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- dict-moby-thesaurus-1.0.orig/debian/postrm +++ dict-moby-thesaurus-1.0/debian/postrm @@ -0,0 +1,45 @@ +#! /bin/sh +# postrm script for dict-moby-thesaurus +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + if [ -x /usr/sbin/dictdconfig ]; then dictdconfig -w ;fi + if [ -x /etc/init.d/dictd ]; then + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d dictd restart + else + /etc/init.d/dictd restart + fi + fi + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- dict-moby-thesaurus-1.0.orig/debian/rules +++ dict-moby-thesaurus-1.0/debian/rules @@ -0,0 +1,93 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. + +PYTHON=$(shell pyversions -d) + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(PYTHON) conv.py < mthesaur.txt + dictzip moby-thesaurus.dict + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + #-$(MAKE) clean + + -rm -f *.dz *.index *.dict *.dictfmt *.pyc + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/dict-moby-thesaurus. + #$(MAKE) install DESTDIR=$(CURDIR)/debian/dict-moby-thesaurus + cp *.dz *.index debian/dict-moby-thesaurus/usr/share/dictd + + +binary-arch: build install +# We have nothing to do by default. + +binary-indep: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- dict-moby-thesaurus-1.0.orig/introduction.txt +++ dict-moby-thesaurus-1.0/introduction.txt @@ -0,0 +1,18 @@ +Title: Moby Thesaurus II + +Author: Grady Ward, grady@gradyward.com + +Edition: 1.0 + +Moby (tm) Thesaurus II Documentation Notes + +This documentation, the software and/or database are: + +Public Domain material by grant from the author, January, 2001. + +Moby Thesaurus is the largest and most comprehensive thesaurus data +source in English available for commercial use. This second edition +has been thoroughly revised adding more than 5,000 root words (to +total more than 30,000) with an additional _million_ synonyms and +related terms (to total more than 2.5 _million_ synonyms and related +terms).