diff -Nurd gnuplot-4.4.4/fink/gnuplot-mode-install gnuplot-4.4.4.patched/fink/gnuplot-mode-install --- gnuplot-4.4.4/fink/gnuplot-mode-install 1969-12-31 19:00:00.000000000 -0500 +++ gnuplot-4.4.4.patched/fink/gnuplot-mode-install 2012-01-06 11:04:08.000000000 -0500 @@ -0,0 +1,39 @@ +#! /bin/sh -e +# @PREFIX@/lib/emacsen-common/packages/install/gnuplot-mode + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=gnuplot-mode + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +SITEFLAG="-no-site-file" # Do not load site files when byte-compiling +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 -m 0755 -d ${ELCDIR} + +cd ${ELDIR} +FILES=`echo *.el` + +cd ${ELCDIR} +for i in $FILES; do + ln -sf ${ELDIR}/$i . +done + +cat << EOF > path.el + (setq load-path (cons "." load-path) byte-compile-warnings nil) + (require 'font-lock) + (defun hilit-repaint-command (foo)) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f path.el + +exit 0 diff -Nurd gnuplot-4.4.4/fink/gnuplot-mode-remove gnuplot-4.4.4.patched/fink/gnuplot-mode-remove --- gnuplot-4.4.4/fink/gnuplot-mode-remove 1969-12-31 19:00:00.000000000 -0500 +++ gnuplot-4.4.4.patched/fink/gnuplot-mode-remove 2012-01-06 11:04:08.000000000 -0500 @@ -0,0 +1,15 @@ +#!/bin/sh -e +# @PREFIX@/lib/emacsen-common/packages/remove/gnuplot-mode + +FLAVOR=$1 +PACKAGE=gnuplot-mode + +if [ ${FLAVOR} != emacs ]; then +# if test -x /usr/sbin/install-info-altdir; then +# echo remove/${PACKAGE}: removing Info links for ${FLAVOR} +# install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/gnuplot-mode.info.gz +# fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf @PREFIX@/share/${FLAVOR}/site-lisp/${PACKAGE} +fi diff -Nurd gnuplot-4.4.4/fink/gnuplot-mode-startup gnuplot-4.4.4.patched/fink/gnuplot-mode-startup --- gnuplot-4.4.4/fink/gnuplot-mode-startup 1969-12-31 19:00:00.000000000 -0500 +++ gnuplot-4.4.4.patched/fink/gnuplot-mode-startup 2012-01-06 11:04:08.000000000 -0500 @@ -0,0 +1,33 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Fink gnuplot-mode package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The gnuplot-mode 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/gnuplot-mode") + load-path)) + +;; these lines enable the use of gnuplot mode + (autoload 'gnuplot-mode "gnuplot" "gnuplot major mode" t) + (autoload 'gnuplot-make-buffer "gnuplot" "open a buffer in gnuplot mode" t) + +;; this line automatically causes all files with the .gp extension to +;; be loaded into gnuplot mode + (setq auto-mode-alist (append '(("\\.gp\\'" . gnuplot-mode)) auto-mode-alist)) + +;; This line binds the function-9 key so that it opens a buffer into +;; gnuplot mode +;; (global-set-key [(f9)] 'gnuplot-make-buffer) +