--- mecab-naist-jdic-0.6.2-20100208.orig/Makefile +++ mecab-naist-jdic-0.6.2-20100208/Makefile @@ -0,0 +1,472 @@ +# Makefile.in generated by automake 1.10.2 from Makefile.am. +# Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in 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. + + + + +pkgdatadir = $(datadir)/mecab-naist-jdic +pkglibdir = $(libdir)/mecab-naist-jdic +pkgincludedir = $(includedir)/mecab-naist-jdic +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +subdir = . +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \ + ChangeLog INSTALL NEWS config.guess config.sub install-sh \ + missing mkinstalldirs +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(dicdir)" +dicDATA_INSTALL = $(INSTALL_DATA) +DATA = $(dic_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = ${SHELL} /home/henrich/src/japanese-morphological/mecab-naist-jdic-0.6.2-20100208/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/henrich/src/japanese-morphological/mecab-naist-jdic-0.6.2-20100208/missing --run tar +AUTOCONF = ${SHELL} /home/henrich/src/japanese-morphological/mecab-naist-jdic-0.6.2-20100208/missing --run autoconf +AUTOHEADER = ${SHELL} /home/henrich/src/japanese-morphological/mecab-naist-jdic-0.6.2-20100208/missing --run autoheader +AUTOMAKE = ${SHELL} /home/henrich/src/japanese-morphological/mecab-naist-jdic-0.6.2-20100208/missing --run automake-1.10 +AWK = gawk +CHARSET = euc-jp +CYGPATH_W = echo +DEFS = -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mecab-naist-jdic\" -DVERSION=\"0.6.2-20100208\" +ECHO_C = +ECHO_N = -n +ECHO_T = +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LIBOBJS = +LIBS = +LN_S = ln -s +LTLIBOBJS = +MAKEINFO = ${SHELL} /home/henrich/src/japanese-morphological/mecab-naist-jdic-0.6.2-20100208/missing --run makeinfo +MECAB_CONFIG = /usr/bin/mecab-config +MECAB_DICDIR = /usr/share/mecab/dic/naist-jdic-eucjp +MECAB_DICT_INDEX = /usr/lib/mecab/mecab-dict-index +MECAB_GENDATA = matrix.bin char.bin sys.dic unk.dic +MECAB_LEXICAL_DIC = naist-jdic.csv +MECAB_MECABRC = /etc/mecabrc +MECAB_PREDATA = char.def feature.def left-id.def matrix.def pos-id.def rewrite.def right-id.def unk.def dicrc +MKDIR_P = /bin/mkdir -p +PACKAGE = mecab-naist-jdic +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +SET_MAKE = +SHELL = /bin/sh +STRIP = +VERSION = 0.6.2-20100208 +abs_builddir = /home/henrich/src/japanese-morphological/mecab-naist-jdic-0.6.2-20100208 +abs_srcdir = /home/henrich/src/japanese-morphological/mecab-naist-jdic-0.6.2-20100208 +abs_top_builddir = /home/henrich/src/japanese-morphological/mecab-naist-jdic-0.6.2-20100208 +abs_top_srcdir = /home/henrich/src/japanese-morphological/mecab-naist-jdic-0.6.2-20100208 +am__leading_dot = . +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build_alias = i486-linux-gnu +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host_alias = i486-linux-gnu +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/henrich/src/japanese-morphological/mecab-naist-jdic-0.6.2-20100208/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +mandir = ${datarootdir}/man +mkdir_p = /bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_build_prefix = +top_builddir = . +top_srcdir = . +mecab_dict_index = /usr/lib/mecab/mecab-dict-index +dicdir = /usr/share/mecab/dic/naist-jdic-eucjp + +# SUBDIRS = doc script +dic_DATA = matrix.bin char.bin sys.dic unk.dic naist-jdic.csv char.def feature.def left-id.def matrix.def pos-id.def rewrite.def right-id.def unk.def dicrc +EXTRA_DIST = naist-jdic.csv char.def feature.def left-id.def matrix.def pos-id.def rewrite.def right-id.def unk.def dicrc RESULT +CLEANFILES = matrix.bin char.bin sys.dic unk.dic +all: all-am + +.SUFFIXES: +am--refresh: + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ + cd $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +install-dicDATA: $(dic_DATA) + @$(NORMAL_INSTALL) + test -z "$(dicdir)" || $(MKDIR_P) "$(DESTDIR)$(dicdir)" + @list='$(dic_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(dicDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(dicdir)/$$f'"; \ + $(dicDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(dicdir)/$$f"; \ + done + +uninstall-dicDATA: + @$(NORMAL_UNINSTALL) + @list='$(dic_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(dicdir)/$$f'"; \ + rm -f "$(DESTDIR)$(dicdir)/$$f"; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d $(distdir) || mkdir $(distdir) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && cd $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @cd $(distuninstallcheck_dir) \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(dicdir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-dicDATA + +install-dvi: install-dvi-am + +install-exec-am: + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) install-exec-hook + +install-html: install-html-am + +install-info: install-info-am + +install-man: + +install-pdf: install-pdf-am + +install-ps: install-ps-am + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-dicDATA + +.MAKE: install-am install-exec-am install-strip + +.PHONY: all all-am am--refresh check check-am clean clean-generic dist \ + dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \ + dist-zip distcheck distclean distclean-generic distcleancheck \ + distdir distuninstallcheck dvi dvi-am html html-am info \ + info-am install install-am install-data install-data-am \ + install-dicDATA install-dvi install-dvi-am install-exec \ + install-exec-am install-exec-hook install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ + pdf-am ps ps-am uninstall uninstall-am uninstall-dicDATA + + +matrix.bin char.bin sys.dic unk.dic: + $(mecab_dict_index) -d . -o . -f EUC-JP -t euc-jp + @echo To enable dictionary, rewrite /etc/mecabrc as \"dicdir = /usr/share/mecab/dic/naist-jdic-eucjp\" + +rpm: dist + rpm -ta mecab-naist-jdic-0.6.2-20100208.tar.gz + +export-package: + ./upload.pl -p mecab -n mecab-naist-jdic -r 0.6.2-20100208 -f mecab-naist-jdic-0.6.2-20100208.tar.gz + +install-exec-hook: + if ! [ -d $(DESTDIR)/etc/mecab/dic/naist-jdic ]; \ + then mkdir -p $(DESTDIR)/etc/mecab/dic/naist-jdic; \ + fi + if ! [ -f $(DESTDIR)/etc/mecab/dic/naist-jdic/dicrc ]; \ + then $(LN_S) /usr/share/mecab/dic/naist-jdic-eucjp/dicrc $(DESTDIR)/etc/mecab/dic/naist-jdic/dicrc; \ + fi +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: --- mecab-naist-jdic-0.6.2-20100208.orig/debian/docs +++ mecab-naist-jdic-0.6.2-20100208/debian/docs @@ -0,0 +1 @@ +README --- mecab-naist-jdic-0.6.2-20100208.orig/debian/mecab-naist-jdic.dirs +++ mecab-naist-jdic-0.6.2-20100208/debian/mecab-naist-jdic.dirs @@ -0,0 +1 @@ +var/lib/mecab/dic/naist-jdic --- mecab-naist-jdic-0.6.2-20100208.orig/debian/mecab-naist-jdic-eucjp.dirs +++ mecab-naist-jdic-0.6.2-20100208/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.2-20100208.orig/debian/mecab-naist-jdic.preinst +++ mecab-naist-jdic-0.6.2-20100208/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.2-20100208.orig/debian/control +++ mecab-naist-jdic-0.6.2-20100208/debian/control @@ -0,0 +1,35 @@ +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: 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.2-20100208.orig/debian/copyright +++ mecab-naist-jdic-0.6.2-20100208/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.2-20100208.orig/debian/changelog +++ mecab-naist-jdic-0.6.2-20100208/debian/changelog @@ -0,0 +1,36 @@ +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.2-20100208.orig/debian/mecab-naist-jdic.postinst +++ mecab-naist-jdic-0.6.2-20100208/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.2-20100208.orig/debian/mecab-naist-jdic-eucjp.preinst +++ mecab-naist-jdic-0.6.2-20100208/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.2-20100208.orig/debian/watch +++ mecab-naist-jdic-0.6.2-20100208/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.2-20100208.orig/debian/mecab-naist-jdic-eucjp.postinst +++ mecab-naist-jdic-0.6.2-20100208/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.2-20100208.orig/debian/rules +++ mecab-naist-jdic-0.6.2-20100208/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 + +# 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.2-20100208.orig/debian/compat +++ mecab-naist-jdic-0.6.2-20100208/debian/compat @@ -0,0 +1 @@ +7 --- mecab-naist-jdic-0.6.2-20100208.orig/debian/mecab-naist-jdic.prerm +++ mecab-naist-jdic-0.6.2-20100208/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.2-20100208.orig/debian/mecab-naist-jdic-eucjp.prerm +++ mecab-naist-jdic-0.6.2-20100208/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 + +