--- mecab-jumandic-5.1+20070304.orig/debian/NEWS.Debian +++ mecab-jumandic-5.1+20070304/debian/NEWS.Debian @@ -0,0 +1,8 @@ +mecab-jumandic (5.1+20051121-1) unstable; urgency=low + + * The method to estimate connection weights between morphemes of this + dictionary has been changed. In this new version, weights estimated + by CRF (Conditional Random Fields) are used, although hand-crafted + weights were used in the previous versions. + + -- TSUCHIYA Masatoshi Sat, 07 Oct 2006 17:02:24 +0900 --- mecab-jumandic-5.1+20070304.orig/debian/changelog +++ mecab-jumandic-5.1+20070304/debian/changelog @@ -0,0 +1,45 @@ +mecab-jumandic (5.1+20070304-3) unstable; urgency=low + + * Create `mecab-jumandic-utf8' package for morphological analysis in UTF-8. + + -- TSUCHIYA Masatoshi Fri, 01 Feb 2008 13:10:20 +0900 + +mecab-jumandic (5.1+20070304-2) unstable; urgency=low + + * Fix the documentation bug to use UTF-8 dictionary. + * Fix the packaging bug which fails removing this package (closes: #455128). + * Fix the packaging bug which fails rebuilding this package (closes: #424569). + + -- TSUCHIYA Masatoshi Tue, 15 Jan 2008 22:12:42 +0900 + +mecab-jumandic (5.1+20070304-1) unstable; urgency=low + + * New upstream. + + -- TSUCHIYA Masatoshi Sun, 25 Mar 2007 19:19:22 +0900 + +mecab-jumandic (5.1+20051121-1) unstable; urgency=low + + * New upstream. + + -- TSUCHIYA Masatoshi Sat, 07 Oct 2006 17:02:24 +0900 + +mecab-jumandic (4.0+0.77-1) unstable; urgency=low + + * Reversioning to override an obsolete package installed with mecab-0.76. + * debian/preinst: Remove an alternative provided by the obsolete package. + + -- TSUCHIYA Masatoshi Thu, 19 Feb 2004 00:09:29 +0900 + +mecab-jumandic (4.0-2) unstable; urgency=low + + * Use juman2mecab.pl which is distributed with + http://cl.aist-nara.ac.jp/~taku-ku/software/mecab/dic/juman/mecab-juman4.0-dic-0.03.tar.gz. + + -- TSUCHIYA Masatoshi Thu, 05 Feb 2004 13:39:48 +0900 + +mecab-jumandic (4.0-1) unstable; urgency=low + + * Initial release. + + -- TSUCHIYA Masatoshi Fri, 05 Dec 2003 01:29:04 +0900 --- mecab-jumandic-5.1+20070304.orig/debian/compat +++ mecab-jumandic-5.1+20070304/debian/compat @@ -0,0 +1 @@ +4 --- mecab-jumandic-5.1+20070304.orig/debian/control +++ mecab-jumandic-5.1+20070304/debian/control @@ -0,0 +1,22 @@ +Source: mecab-jumandic +Section: misc +Priority: optional +Maintainer: TSUCHIYA Masatoshi +Build-Depends: debhelper (>> 4.0.0) +Standards-Version: 3.7.2 + +Package: mecab-jumandic +Architecture: all +Depends: mecab-utils (>= 0.93) +Description: Juman dictionary compiled for Mecab + This package provides Juman dictionary converted for Mecab, that is a + Japanese morphological analysis system. This dictionary is written + in Masuoka-Takubo grammar system. + +Package: mecab-jumandic-utf8 +Architecture: all +Depends: mecab-utils (>= 0.93), mecab-jumandic +Description: Juman dictionary encoded in UTF-8 compiled for Mecab + This package provides Juman dictionary converted for Mecab, that is a + Japanese morphological analysis system. This dictionary is written + in Masuoka-Takubo grammar system. --- mecab-jumandic-5.1+20070304.orig/debian/copyright +++ mecab-jumandic-5.1+20070304/debian/copyright @@ -0,0 +1,39 @@ +This package was debianized by TSUCHIYA Masatoshi + on Sun, 16 Jun 2002 01:22:22 +0900. + +It was downloaded from http://mecab.sourceforge.net/ + +Upstream Author: Sadao Kurohashi . + +Copyright: + +Copyright (c) 2005 University of Tokyo +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. 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. + +3. The name University of Tokyo may not be used to endorse or promote + products derived from this software without specific prior written + permission. + + +THIS SOFTWARE IS PROVIDED BY University of Tokyo ``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 University of Tokyo 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. --- mecab-jumandic-5.1+20070304.orig/debian/mecab-jumandic-utf8.README.Debian +++ mecab-jumandic-5.1+20070304/debian/mecab-jumandic-utf8.README.Debian @@ -0,0 +1,10 @@ +mecab-jumandic-utf8 for Debian +------------------------------ + +This package provides Juman dictionary compiled for Mecab. + +Two dictionary packages for Mecab are available: `mecab-jumandic' and +`mecab-ipadic'. To select a dictionary, (a) edit /etc/mecabrc, or +(b) execute the command `update-alternatives --config mecab-dictionary'. + + -- TSUCHIYA Masatoshi , Fri, 1 Feb 2008 13:17:57 +0900 --- mecab-jumandic-5.1+20070304.orig/debian/mecab-jumandic-utf8.dirs +++ mecab-jumandic-5.1+20070304/debian/mecab-jumandic-utf8.dirs @@ -0,0 +1 @@ +var/lib/mecab/dic/juman-utf8 --- mecab-jumandic-5.1+20070304.orig/debian/mecab-jumandic.README.Debian +++ mecab-jumandic-5.1+20070304/debian/mecab-jumandic.README.Debian @@ -0,0 +1,13 @@ +mecab-jumandic for Debian +------------------------- + +This package provides Juman dictionary compiled for Mecab. + +Two dictionary packages for Mecab are available: `mecab-jumandic' and +`mecab-ipadic'. To select a dictionary, (a) edit /etc/mecabrc, or +(b) execute the command `update-alternatives --config mecab-dictionary'. + +If you want to use UTF-8 when analyzing morphologicaly, try +`mecab-jumandic-utf8' package. + + -- TSUCHIYA Masatoshi , Fri, 1 Feb 2008 13:17:35 +0900 --- mecab-jumandic-5.1+20070304.orig/debian/mecab-jumandic.dirs +++ mecab-jumandic-5.1+20070304/debian/mecab-jumandic.dirs @@ -0,0 +1,2 @@ +usr/share/mecab/dic/juman +var/lib/mecab/dic/juman --- mecab-jumandic-5.1+20070304.orig/debian/mecab-jumandic.docs +++ mecab-jumandic-5.1+20070304/debian/mecab-jumandic.docs @@ -0,0 +1 @@ +debian/NEWS.Debian --- mecab-jumandic-5.1+20070304.orig/debian/mecab-jumandic.preinst +++ mecab-jumandic-5.1+20070304/debian/mecab-jumandic.preinst @@ -0,0 +1,29 @@ +#! /bin/sh +# preinst script for mecab-jumandic +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + upgrade|install) + # Remove an alternative that is temporally used by mecab-jumandic_4.0+0.76. + if ( dpkg --compare-versions "$2" lt "4.0+0.77" ); then + update-alternatives --remove mecab-dictionary /usr/lib/mecab/dic/juman + rm -f /usr/lib/mecab/dic/debian + fi + ;; + abort-upgrade) + ;; + *) + echo "preinst 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 --- mecab-jumandic-5.1+20070304.orig/debian/postinst.in +++ mecab-jumandic-5.1+20070304/debian/postinst.in @@ -0,0 +1,39 @@ +#! /bin/sh +# postinst script for mecab-@package@ +# +# see: dh_installdeb(1) + +set -e + +srcdir=/usr/share/mecab/dic/juman +dstdir=/var/lib/mecab/dic/@basename@ +encoding=@encoding@ + +case "$1" in + configure) + echo "Compiling Juman dictionary for Mecab. This takes long time..." + /usr/lib/mecab/mecab-dict-index -d ${srcdir} -o ${dstdir} -f EUC-JP -t ${encoding} + test -f ${dstdir}/dicrc && rm ${dstdir}/dicrc + if [ ${encoding} = 'EUC-JP' ]; then + ln -s ${srcdir}/dicrc ${dstdir}/dicrc + priority=30 + else + sed "s,EUC-JP,${encoding},g" ${srcdir}/dicrc > ${dstdir}/dicrc + priority=40 + fi + update-alternatives --install /var/lib/mecab/dic/debian mecab-dictionary ${dstdir} ${priority} + ;; + 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 --- mecab-jumandic-5.1+20070304.orig/debian/prerm.in +++ mecab-jumandic-5.1+20070304/debian/prerm.in @@ -0,0 +1,31 @@ +#! /bin/sh +# prerm script for mecab-@package@ +# +# see: dh_installdeb(1) + +set -e + +case "$1" in + remove|upgrade|deconfigure) + rm -f /var/lib/mecab/dic/@basename@/* + ;; +esac + +case "$1" in + remove|deconfigure|failed-upgrade) + update-alternatives --remove mecab-dictionary /var/lib/mecab/dic/@basename@ + ;; + upgrade) + ;; + *) + echo "prerm 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 --- mecab-jumandic-5.1+20070304.orig/debian/rules +++ mecab-jumandic-5.1+20070304/debian/rules @@ -0,0 +1,55 @@ +#!/usr/bin/make -f +# -*- Makefile -*- + +PACKAGE = mecab-jumandic +VERSION = $(shell dpkg-parsechangelog | awk '/^Version: /{print $$2}' | cut -f1 -d- | sed 's,\+,-,') +TAR_DIR = $(PACKAGE)-$(VERSION) +TARBALL = $(TAR_DIR).tar.gz +SCRIPTS = debian/mecab-jumandic.postinst debian/mecab-jumandic.prerm debian/mecab-jumandic-utf8.postinst debian/mecab-jumandic-utf8.prerm + +DEFFILES = char.def feature.def matrix.def unk.def +DICFILES = left-id.def right-id.def rewrite.def pos-id.def dicrc + +build: build-stamp $(SCRIPTS) +build-stamp: + dh_testdir + tar xzf $(TARBALL) + touch $@ + +mecab-jumandic.%: %.in + sed -e 's,@package@,jumandic,g;' -e 's,@basename@,juman,g;' -e 's,@encoding@,EUC-JP,g;' $^ > $@ + +mecab-jumandic-utf8.%: %.in + sed -e 's,@package@,jumandic-utf8,g;' -e 's,@basename@,juman-utf8,g;' -e 's,@encoding@,UTF-8,g;' $^ > $@ + +clean: + dh_testdir + dh_testroot + dh_clean + -rm -rf $(TAR_DIR) + -rm -f build-stamp $(SCRIPTS) + +install: build + dh_testdir + dh_testroot + dh_clean + dh_installdirs + cp -p $(patsubst %,$(TAR_DIR)/%,$(DEFFILES) $(DICFILES)) \ + $(wildcard $(TAR_DIR)/*.csv) \ + debian/$(PACKAGE)/usr/share/mecab/dic/juman + +binary-indep: install + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: + +binary: binary-indep binary-arch