diff -Naur anthy-9100e.orig/fink/anthy-el-install anthy-9100e/fink/anthy-el-install --- anthy-9100e.orig/fink/anthy-el-install 1970-01-01 09:00:00.000000000 +0900 +++ anthy-9100e/fink/anthy-el-install 2008-03-24 06:16:28.000000000 +0900 @@ -0,0 +1,45 @@ +#! /bin/sh -e +# @PREFIX@/lib/emacsen-common/packages/install/anthy + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=anthy + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +#FLAVORTEST=`echo $FLAVOR | cut -c-6` +#if [ ${FLAVORTEST} = xemacs ] ; then +# SITEFLAG="-no-site-file" +#else +# SITEFLAG="--no-site-file" +#fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=@PREFIX@/share/emacs/site-lisp/${PACKAGE} +ELCDIR=@PREFIX@/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +#if test -x @PREFIX@/sbin/install-info-altdir; then +# echo install/${PACKAGE}: install Info links for ${FLAVOR} +# install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} @PREFIX@/info/${PACKAGE}.info.gz +#fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} > ${ELCDIR}/CompilationLog 2>&1 +rm -f *.el path.el + +exit 0 diff -Naur anthy-9100e.orig/fink/anthy-el-remove anthy-9100e/fink/anthy-el-remove --- anthy-9100e.orig/fink/anthy-el-remove 1970-01-01 09:00:00.000000000 +0900 +++ anthy-9100e/fink/anthy-el-remove 2008-03-24 06:19:36.000000000 +0900 @@ -0,0 +1,15 @@ +#!/bin/sh -e +# @PREFIX@/lib/emacsen-common/packages/remove/anthy + +FLAVOR=$1 +PACKAGE=anthy + +if [ ${FLAVOR} != emacs ]; then +# if test -x @PREFIX@/sbin/install-info-altdir; then +# echo remove/${PACKAGE}: removing Info links for ${FLAVOR} +# install-info-altdir --quiet --remove --dirname=${FLAVOR} @PREFIX@/info/anthy.info.gz +# fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf @PREFIX@/share/${FLAVOR}/site-lisp/${PACKAGE} +fi diff -Naur anthy-9100e.orig/fink/anthy-el-startup anthy-9100e/fink/anthy-el-startup --- anthy-9100e.orig/fink/anthy-el-startup 1970-01-01 09:00:00.000000000 +0900 +++ anthy-9100e/fink/anthy-el-startup 2008-03-24 06:15:15.000000000 +0900 @@ -0,0 +1,21 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Fink anthy package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The anthy package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(setq load-path (cons (concat "@PREFIX@/share/" + (symbol-name fink-emacs-flavor) + "/site-lisp/anthy") load-path)) + +(autoload 'anthy-leim-activate "anthy" nil t) +(register-input-method "japanese-anthy" "Japanese" + 'anthy-leim-activate "[anthy]" + "Anthy Kana Kanji conversion system")