--- mecab-naist-jdic-0.6.3-20100801.orig/debian/changelog +++ mecab-naist-jdic-0.6.3-20100801/debian/changelog @@ -0,0 +1,41 @@ +mecab-naist-jdic (0.6.3-20100801-0~ppa1) lucid; urgency=low + + * + + -- Sawa (ikoinoba) Tue, 28 Dec 2010 22:55:38 +0900 + +mecab-naist-jdic (0.6.2-20100208-2) unstable; urgency=low + + * It's in repository now, closing ITP (Closes: #491986) + * debian/watch + - remove unnecessary uversionmangle pattern + + -- Hideki Yamane (Debian-JP) Wed, 10 Mar 2010 16:53:04 +0900 + +mecab-naist-jdic (0.6.2-20100208-1) unstable; urgency=low + + * New upstream release + + -- Hideki Yamane (Debian-JP) Sun, 07 Feb 2010 23:22:42 +0900 + +mecab-naist-jdic (0.6.2-20100208~pre2-1) unstable; urgency=low + + * New upstream release + * debian/watch: + - fix it to work + + -- Hideki Yamane (Debian-JP) Wed, 03 Feb 2010 02:03:31 +0900 + +mecab-naist-jdic (0.6.2-20100208~pre1-1) unstable; urgency=low + + * New upstream release + * debian/control: + - set "Standards-Version: 3.8.4" with no change. + + -- Hideki Yamane (Debian-JP) Sat, 30 Jan 2010 23:28:18 +0900 + +mecab-naist-jdic (0.6.1-20090630-1) unstable; urgency=low + + * Initial release + + -- Hideki Yamane (Debian-JP) Sat, 07 Nov 2009 18:07:49 +0900 --- mecab-naist-jdic-0.6.3-20100801.orig/debian/watch +++ mecab-naist-jdic-0.6.3-20100801/debian/watch @@ -0,0 +1,7 @@ +version=3 + +opts="downloadurlmangle=s/sourceforge/iij.dl.sourceforge/;s/downloads\///;s/projects\///;s/gz\//gz/,\ +uversionmangle=s/-beta/~beta/;s/-rc/~rc/;s/-preview/~preview/;s/-pre/~pre/" \ + http://sourceforge.jp/projects/naist-jdic/files/ \ + /projects/naist-jdic/downloads/.*/mecab-naist-jdic-(.*)\.tar.gz/ debian uupdate + --- mecab-naist-jdic-0.6.3-20100801.orig/debian/rules +++ mecab-naist-jdic-0.6.3-20100801/debian/rules @@ -0,0 +1,88 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +PACKAGE = mecab-naist-jdic + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + + +#Architecture +build: build-arch build-indep + +build-arch: build-arch-stamp +build-arch-stamp: configure-stamp + touch $@ + +build-indep: build-indep-stamp +build-indep-stamp: configure-stamp + CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure \ + --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \ + --with-dicdir=/usr/share/mecab/dic/naist-jdic-eucjp + touch $@ + +clean: + dh_testdir + dh_testroot + -rm $(CURDIR)/config.log + -rm $(CURDIR)/config.status + -rm $(CURDIR)/*.dic + -rm $(CURDIR)/*.bin + rm -f build-arch-stamp build-indep-stamp configure-stamp + dh_clean + +install: install-indep install-arch +install-indep: + dh_testdir + dh_testroot + dh_clean -i + dh_installdirs -i + dh_install -i + $(MAKE) DESTDIR=$(CURDIR)/debian/$(PACKAGE)-eucjp install + rm $(CURDIR)/debian/$(PACKAGE)-eucjp/usr/share/mecab/dic/naist-jdic-eucjp/*.dic + rm -r $(CURDIR)/debian/$(PACKAGE)-eucjp/etc/mecab/dic + +install-arch: + dh_testdir + dh_testroot + dh_clean -s + dh_installdirs -s + dh_install -s + +# Must not depend on anything. This is to be called by +# binary-arch/binary-indep +# in another 'make' thread. + +binary-common: + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb -- -Z lzma + +# Build architecture independant packages using the common target. +binary-indep: build-indep install-indep + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +# Build architecture dependant packages using the common target. +binary-arch: build-arch install-arch +# $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure --- mecab-naist-jdic-0.6.3-20100801.orig/debian/mecab-naist-jdic.prerm +++ mecab-naist-jdic-0.6.3-20100801/debian/mecab-naist-jdic.prerm @@ -0,0 +1,57 @@ +#!/bin/sh +# prerm script for mecab-naist-jdic +# +# see: dh_installdeb(1) + +set -e + +destdir=/var/lib/mecab/dic/naist-jdic + +remove_mecabfiles() +{ + if [ -d $destdir ]; then + rm -f $destdir/* + fi +} + + + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove) + update-alternatives --remove mecab-dictionary ${destdir} + remove_mecabfiles + ;; + + upgrade|deconfigure) + remove_mecabfiles + ;; + + failed-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-naist-jdic-0.6.3-20100801.orig/debian/mecab-naist-jdic.preinst +++ mecab-naist-jdic-0.6.3-20100801/debian/mecab-naist-jdic.preinst @@ -0,0 +1,48 @@ +#!/bin/sh +# preinst script for mecab-naist-jdic +# +# see: dh_installdeb(1) + +set -e + +destdir="/var/lib/mecab/dic/naist-jdic" + +remove_symlinks() +{ + if [ -d $destdir ]; then + rm -f $destdir/* + fi +} + + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + remove_symlinks + ;; + + 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-naist-jdic-0.6.3-20100801.orig/debian/mecab-naist-jdic.postinst +++ mecab-naist-jdic-0.6.3-20100801/debian/mecab-naist-jdic.postinst @@ -0,0 +1,52 @@ +#!/bin/sh +# postinst script for mecab-naist-jdic +# +# see: dh_installdeb(1) + +set -e + +priority="100" + +srcdir="/usr/share/mecab/dic/naist-jdic-eucjp" +destdir="/var/lib/mecab/dic/naist-jdic" +encoding="UTF-8" + +gendictdata() +{ + echo "Now generating naist-jdic data for Mecab. This may take a while..." + + [ -d "${srcdir}" ] && [ -d "${destdir}" ] || exit 1 + /usr/lib/mecab/mecab-dict-index -d "${srcdir}" -o "${destdir}" \ + -f EUC-JP -t "${encoding}" + + sed -e s/EUC-JP/$encoding/ "${destdir}"-eucjp/dicrc >"${destdir}"/dicrc + + echo "Check ${destdir} directory." +} + +case "$1" in + configure) + + gendictdata + + update-alternatives \ + --install /var/lib/mecab/dic/debian mecab-dictionary "${destdir}" "${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-naist-jdic-0.6.3-20100801.orig/debian/mecab-naist-jdic.dirs +++ mecab-naist-jdic-0.6.3-20100801/debian/mecab-naist-jdic.dirs @@ -0,0 +1 @@ +var/lib/mecab/dic/naist-jdic --- mecab-naist-jdic-0.6.3-20100801.orig/debian/mecab-naist-jdic-eucjp.prerm +++ mecab-naist-jdic-0.6.3-20100801/debian/mecab-naist-jdic-eucjp.prerm @@ -0,0 +1,58 @@ +#!/bin/sh +# prerm script for mecab-naist-jdic-eucjp +# +# see: dh_installdeb(1) + +set -e + +srcdir=${dictdir}-eucjp +destdir=/var/lib/mecab/dic/naist-jdic-eucjp + +remove_mecabfiles() +{ + if [ -d $destdir ]; then + rm -f $destdir/* + fi +} + + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove) + update-alternatives --remove mecab-dictionary ${destdir} + remove_mecabfiles + + ;; + + upgrade|deconfigure) + remove_mecabfiles + ;; + + failed-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-naist-jdic-0.6.3-20100801.orig/debian/mecab-naist-jdic-eucjp.preinst +++ mecab-naist-jdic-0.6.3-20100801/debian/mecab-naist-jdic-eucjp.preinst @@ -0,0 +1,47 @@ +#!/bin/sh +# preinst script for mecab-naist-jdic-eucjp +# +# see: dh_installdeb(1) + +set -e + +destdir="/var/lib/mecab/dic/naist-jdic-eucjp" + +remove_symlinks() +{ + if [ -d $destdir ]; then + rm -f $destdir/* + fi +} + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + remove_symlinks + ;; + + 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-naist-jdic-0.6.3-20100801.orig/debian/mecab-naist-jdic-eucjp.postinst +++ mecab-naist-jdic-0.6.3-20100801/debian/mecab-naist-jdic-eucjp.postinst @@ -0,0 +1,51 @@ +#!/bin/sh +# postinst script for mecab-naist-jdic-eucjp +# +# see: dh_installdeb(1) + +set -e + +priority="90" + +srcdir="/usr/share/mecab/dic/naist-jdic-eucjp" +destdir="/var/lib/mecab/dic/naist-jdic-eucjp" +encoding="EUC-JP" + +gendictdata() +{ + echo "Now generating naist-jdic data for Mecab. This may take a while..." + + [ -d ${srcdir} ] && [ -d ${destdir} ] || exit 1 + /usr/lib/mecab/mecab-dict-index -d ${srcdir} -o ${destdir} \ + -f EUC-JP -t ${encoding} + + [ -s ${destdir}/dicrc ] || ln -s ${srcdir}/dicrc ${destdir} + + echo "Check ${destdir} directory." +} + +case "$1" in + configure) + + gendictdata + + update-alternatives \ + --install /var/lib/mecab/dic/debian mecab-dictionary ${destdir} ${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-naist-jdic-0.6.3-20100801.orig/debian/mecab-naist-jdic-eucjp.dirs +++ mecab-naist-jdic-0.6.3-20100801/debian/mecab-naist-jdic-eucjp.dirs @@ -0,0 +1,2 @@ +usr/share/mecab/dic/naist-jdic-eucjp +var/lib/mecab/dic/naist-jdic-eucjp --- mecab-naist-jdic-0.6.3-20100801.orig/debian/docs +++ mecab-naist-jdic-0.6.3-20100801/debian/docs @@ -0,0 +1 @@ +README --- mecab-naist-jdic-0.6.3-20100801.orig/debian/copyright +++ mecab-naist-jdic-0.6.3-20100801/debian/copyright @@ -0,0 +1,45 @@ +This package was debianized by Hideki Yamane (Debian-JP) + on Fri, 30 Jul 2009 12:17:48 +0900. + +It was downloaded from http://sourceforge.jp/projects/naist-jdic/ + +Upstream Authors: + + Masayuki Asahara + +Copyright: + + Copyright (c) 2009, Nara Institute of Science and Technology, Japan. + +License: + + 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 Nara Institute of Science and Technology + (NAIST) 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. + + +The Debian packaging is Copyright 2008-2009, Hideki Yamane (Debian-JP) + and is licensed under the same license as upstream. + --- mecab-naist-jdic-0.6.3-20100801.orig/debian/control +++ mecab-naist-jdic-0.6.3-20100801/debian/control @@ -0,0 +1,36 @@ +Source: mecab-naist-jdic +Section: misc +Priority: optional +Build-Depends: debhelper (>= 7.0.50), autotools-dev +Build-Depends-Indep: autoconf, automake, mecab-utils (>= 0.93), libmecab-dev +Maintainer: Sawa (ikoinoba) +XSBC-Original-Maintainer: Hideki Yamane (Debian-JP) +DM-Upload-Allowed: yes +Standards-Version: 3.8.4 +Homepage: http://sourceforge.jp/projects/naist-jdic/ + +Package: mecab-naist-jdic +Architecture: all +Depends: ${misc:Depends}, mecab-utils (>= 0.93), mecab-naist-jdic-eucjp (= ${source:Version}) +Description: free Japanese Dictionaries for mecab (replacement of mecab-ipadic) + NAIST Japanese Dictionary is a Dictionary for MeCab, Japanese morphological + analysis implementation. + . + This is based on mecab-ipadic, however it is released under BSD style license + now by NAIST (Nara Institute of Science and Technology, Japan), so it is free + and can replace mecab-ipadic-utf8. + . + This package generates UTF-8 data from mecab-naist-jdic-eucjp. + +Package: mecab-naist-jdic-eucjp +Architecture: all +Depends: ${misc:Depends}, mecab-utils (>= 0.93) +Description: free Japanese Dictionaries for mecab (replacement of mecab-ipadic) in EUC-JP + NAIST Japanese Dictionary is a Dictionary for MeCab, Japanese morphological + analysis implementation. + . + This is based on mecab-ipadic, however it is released under BSD style license + now by NAIST (Nara Institute of Science and Technology, Japan), so it is free + and can replace mecab-ipadic. + . + This package provides EUC-JP data, not UTF-8. --- mecab-naist-jdic-0.6.3-20100801.orig/debian/compat +++ mecab-naist-jdic-0.6.3-20100801/debian/compat @@ -0,0 +1 @@ +7