diff -Nurd ledger-mode-4.0.0.orig/fink/50ledger.el ledger-mode-4.0.0/fink/50ledger.el --- ledger-mode-4.0.0.orig/fink/50ledger.el 1969-12-31 19:00:00.000000000 -0500 +++ ledger-mode-4.0.0/fink/50ledger.el 2023-03-04 12:11:08.000000000 -0500 @@ -0,0 +1 @@ +(autoload 'ledger-mode "ledger-mode.el") diff -Nurd ledger-mode-4.0.0.orig/fink/emacsen-install ledger-mode-4.0.0/fink/emacsen-install --- ledger-mode-4.0.0.orig/fink/emacsen-install 1969-12-31 19:00:00.000000000 -0500 +++ ledger-mode-4.0.0/fink/emacsen-install 2023-03-04 12:11:08.000000000 -0500 @@ -0,0 +1,34 @@ +#!/bin/bash -e +# +# install file for the fink ledger-el emacs package. + +set -o posix + +FLAVOR=${1} + +echo >&2 "install/ledger-mode: Handling install of emacsen flavor ${FLAVOR}" + +if [ ${FLAVOR} == emacs20 ] +then + echo "install/ledger-mode: Skipping unsupported flavor ${FLAVOR}" + exit 0 +fi + +if [ ${FLAVOR} == emacs ] +then + # Nothing to do -- say nothing + exit 0 +fi + +echo >&2 -n "install/ledger-mode: Byte-compiling for ${FLAVOR}..." +mkdir -p @PREFIX@/share/${FLAVOR}/site-lisp/ledger-mode +ln -s -f @PREFIX@/share/emacs/site-lisp/ledger-mode/ledger.el @PREFIX@/share/${FLAVOR}/site-lisp/ledger-mode + +cd @PREFIX@/share/${FLAVOR}/site-lisp/ledger-mode; + +(${FLAVOR} --no-init-file -batch -f batch-byte-compile ledger.el 2>&1) | gzip -9qf > @PREFIX@/share/doc/ledger-el/CompilationLog-${FLAVOR}.gz + +echo >&2 "done." +echo >&2 "install/ledger-el: Compilation log saved in @PREFIX@/share/doc/ledger-el/CompilationLog-${FLAVOR}.gz." + +exit 0 diff -Nurd ledger-mode-4.0.0.orig/fink/emacsen-remove ledger-mode-4.0.0/fink/emacsen-remove --- ledger-mode-4.0.0.orig/fink/emacsen-remove 1969-12-31 19:00:00.000000000 -0500 +++ ledger-mode-4.0.0/fink/emacsen-remove 2023-03-04 12:11:08.000000000 -0500 @@ -0,0 +1,21 @@ +#!/bin/bash -e +# +# This is the Fink version of the ledger-el emacs package. +set -o posix + +FLAVOR=${1} + +echo "remove/ledger-mode: Handling removal for emacsen flavor ${FLAVOR}" + +if [ ${FLAVOR} == emacs20 ] +then + echo "remove/ledger-mode: Skipping unsupported flavor ${FLAVOR}" + exit 0 +fi + +echo >&2 -n "remove/ledger-mode: Purging compilation log and byte-compiled files for ${FLAVOR}..." +rm -f @PREFIX@/share/doc/ledger-el/CompilationLog-${FLAVOR}.gz +rm -Rf @PREFIX@/share/${FLAVOR}/site-lisp/ledger-mode +echo >&2 "done." + +exit 0