diff -ruN auctex-13.3-orig/Makefile.in auctex-13.3/Makefile.in --- auctex-13.3-orig/Makefile.in 2024-01-17 08:55:20.000000000 -0600 +++ auctex-13.3/Makefile.in 2024-01-18 04:51:10.000000000 -0600 @@ -417,7 +417,7 @@ rm -f $(CLEANFILES) $(DISTCLEANFILES) $(DYNVARSFILES) cd doc && $(MAKE) maintainer-clean cd latex && $(MAKE) distclean - cd tests && $(MAKE) clean + #cd tests && $(MAKE) clean extraclean: maintainer-clean rm -f *~ \#*\# diff -ruN auctex-13.3-orig/doc/auctex.info-1 auctex-13.3/doc/auctex.info-1 --- auctex-13.3-orig/doc/auctex.info-1 2024-01-17 08:57:45.000000000 -0600 +++ auctex-13.3/doc/auctex.info-1 2024-01-18 04:51:10.000000000 -0600 @@ -443,9 +443,9 @@ alternative search will be made in a prefix deduced from a suitable binary. - ‘/usr/local’ is the default PREFIX, intended to be suitable for a + ‘@FINK_PREFIX@’ is the default PREFIX, intended to be suitable for a site-wide installation. If you are packaging this as an operating - system component for distribution, the setting ‘/usr’ will probably + system component for distribution, the setting ‘@FINK_PREFIX@’ will probably be the right choice. See *note Advice for package providers:: for detail. diff -ruN auctex-13.3-orig/doc/install.texi auctex-13.3/doc/install.texi --- auctex-13.3-orig/doc/install.texi 2024-01-17 08:55:20.000000000 -0600 +++ auctex-13.3/doc/install.texi 2024-01-18 04:51:10.000000000 -0600 @@ -185,9 +185,9 @@ alternative search will be made in a prefix deduced from a suitable binary. -@file{/usr/local} is the default @var{prefix}, intended to be suitable +@file{@FINK_PREFIX@} is the default @var{prefix}, intended to be suitable for a site-wide installation. If you are packaging this as an -operating system component for distribution, the setting @file{/usr} +operating system component for distribution, the setting @file{@FINK_PREFIX@} will probably be the right choice. See @ref{Advice for package providers} for detail. diff -ruN auctex-13.3-orig/doc/preview-latex.info auctex-13.3/doc/preview-latex.info --- auctex-13.3-orig/doc/preview-latex.info 2024-01-17 08:57:43.000000000 -0600 +++ auctex-13.3/doc/preview-latex.info 2024-01-18 04:52:09.000000000 -0600 @@ -613,7 +613,7 @@ in order to customize this. One particular problem is that several printer setup files (typically -in a file called ‘/usr/share/texmf/dvips/config/config.pdf’ if you are +in a file called ‘@FINK_PREFIX@/share/texmf/dvips/config/config.pdf’ if you are using the ‘-Ppdf’ switch) contain the ‘G’ option for 'character shifting'. This option will result in ‘fi’ being rendered as ‘£’ (British Pounds sign) in several fonts, unless your version of Dvips has diff -ruN auctex-13.3-orig/doc/preview-problems.texi auctex-13.3/doc/preview-problems.texi --- auctex-13.3-orig/doc/preview-problems.texi 2024-01-17 08:55:20.000000000 -0600 +++ auctex-13.3/doc/preview-problems.texi 2024-01-18 04:51:10.000000000 -0600 @@ -58,7 +58,7 @@ in order to customize this. One particular problem is that several printer setup files (typically in -a file called @file{/usr/share/texmf/dvips/config/config.pdf} if you are +a file called @file{@FINK_PREFIX@/share/texmf/dvips/config/config.pdf} if you are using the @option{-Ppdf} switch) contain the @option{G} option for `character shifting'. This option will result in @samp{fi} being rendered as @samp{@pounds{}} (British Pounds sign) in several fonts, diff -ruN auctex-13.3-orig/fink/auctex-install auctex-13.3/fink/auctex-install --- auctex-13.3-orig/fink/auctex-install 1969-12-31 18:00:00.000000000 -0600 +++ auctex-13.3/fink/auctex-install 2024-01-18 04:51:10.000000000 -0600 @@ -0,0 +1,77 @@ +#! /bin/bash -e +# +# <% elisp %> Emacs install script for auctex +# +# Copyright (C) 1997, 98, 99, 2000, 01, 02, 03, 04, 05, 06 +# by Davide G. M. Salvetti. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to: The Free Software Foundation, Inc., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +set -o posix + +FLAVOR=${1} + +INSTALL="install -o root -g admin -m 644" +INSTDIR="${INSTALL} -m 755 -d" + +do_install () { + /bin/echo >&2 "install/auctex: Setting up for ${FLAVOR}... " \ + "(log file: @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog)... \c" + cd @FINK_PREFIX@/share/emacs/site-lisp/auctex/; umask 0022; +# touch --reference configure --date "-1 second" configure.ac +# touch --reference configure --date "-1 second" aclocal.m4 +# touch --reference configure --date "-1 second" preview/configure.ac + touch configure + ${INSTDIR} @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex/ + ./configure --disable-build-dir-test GS=gs \ + --prefix=@FINK_PREFIX@/ \ + --with-emacs=${FLAVOR} \ + --with-lispdir=@FINK_PREFIX@/share/${FLAVOR}/site-lisp/ \ + --with-texmf-dir=@FINK_PREFIX@/etc/texmf.local/ \ + --with-auto-dir=@FINK_PREFIX@/var/lib/auctex/${FLAVOR}/ \ + >> @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + make lisp \ + >> @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + make INSTALL="${INSTALL}" MKINSTALLDIRS="${INSTDIR}" \ + install-lisp install-startup \ + >> @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + ln -sf @FINK_PREFIX@/share/emacs/site-lisp/auctex//images @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex// + # pushd preview \ + #>> @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + echo "We're in " `pwd` >> @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + make INSTALL="${INSTALL}" MKINSTALLDIRS="${INSTDIR}" \ + install-el install-startup \ + >> @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + # popd >> @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + make maintainer-clean \ + >> @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + find @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex/ \ + -type f -name \*.el -print0 | xargs -0 rm -f ,dummy, \ + >> @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1 + gzip -9fq @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog + echo >&2 "done." + return 0 +} + +case "${FLAVOR}" in + (emacs) : ;; + (emacs2*) + do_install ;; + (*) echo >&2 "install/auctex:" \ + "Ignoring emacsen flavor: \"${FLAVOR}\"." + ;; +esac + +exit 0 diff -ruN auctex-13.3-orig/fink/auctex-remove auctex-13.3/fink/auctex-remove --- auctex-13.3-orig/fink/auctex-remove 1969-12-31 18:00:00.000000000 -0600 +++ auctex-13.3/fink/auctex-remove 2024-01-18 04:51:10.000000000 -0600 @@ -0,0 +1,62 @@ +#! /bin/bash -e +# +# <% elisp %> Emacs remove script for auctex +# +# Copyright (C) 1997, 98, 99, 2000, 01, 02, 03, 04, 05, 06 +# by Davide G. M. Salvetti. +# +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation; either version 2 of the License, or (at your +# option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to: The Free Software Foundation, Inc., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +set -o posix + +FLAVOR=${1} + +undo_install () { + /bin/echo >&2 "remove/auctex: Removing for ${FLAVOR}... \c" + rm -f @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//../{auctex,tex-site}.el + rm -f @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//../preview-latex.el + rm -f @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog{,.gz} + rm -f @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//images + rm -f @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//*.elc + rm -f @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//.nosearch + rm -f @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//style//*.elc + rm -f @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//style//.nosearch + test -d @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//style/ && \ + rm -rf \ + @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex//style/ + test -d @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex/ && \ + rm -rf \ + @FINK_PREFIX@/share/${FLAVOR}/site-lisp/auctex/ + echo >&2 "done." + return 0 +} + +undo_auto () { + rm -rf @FINK_PREFIX@/var/lib/auctex//${FLAVOR}/ + return 0 +} + +case "${FLAVOR}" in + (emacs) : ;; + (emacs2*) + undo_auto + undo_install + ;; + (*) echo >&2 "remove/auctex:" \ + "Ignoring emacsen flavor: \"${FLAVOR}\"." + ;; +esac + +exit 0 diff -ruN auctex-13.3-orig/fink/auctex-startup auctex-13.3/fink/auctex-startup --- auctex-13.3-orig/fink/auctex-startup 1969-12-31 18:00:00.000000000 -0600 +++ auctex-13.3/fink/auctex-startup 2024-01-18 04:51:10.000000000 -0600 @@ -0,0 +1,28 @@ +;;; This is a conffile: you can edit it if you like; however, +;;; please note that if you do not want AUCTeX to override the standard +;;; Emacs TeX mode, you may unload AUCTeX completely by evaluating the +;;; form "(unload-feature 'tex-site)" (i.e., put that string into your +;;; "~/.emacs" to disable AUCTeX completely). + +(let ((list '((lisp . "auctex") (source . "auctex")))) + (while list + (let ((elt (car list))) + (cond + ((equal 'lisp (car elt)) + (let ((dir (concat "@FINK_PREFIX@/share/" + (symbol-name fink-emacs-flavor) + "/site-lisp/" (cdr elt)))) + (when (file-directory-p dir) +; (if (fboundp 'fink-pkg-add-load-path-item) + (if (and nil (fboundp 'fink-pkg-add-load-path-item)) + (fink-pkg-add-load-path-item dir) + (add-to-list 'load-path dir 'append))))) + ((equal 'source (car elt)) + (let ((dir (concat "@FINK_PREFIX@/share/emacs/site-lisp/" (cdr elt)))) + (when (file-directory-p dir) + (add-to-list 'load-path dir 'append)))))) + (setq list (cdr list)))) + +(load "auctex.el") +(load "preview-latex.el") +(setq TeX-parse-self t) diff -ruN auctex-13.3-orig/tex-jp.el auctex-13.3/tex-jp.el --- auctex-13.3-orig/tex-jp.el 2024-01-17 08:55:20.000000000 -0600 +++ auctex-13.3/tex-jp.el 2024-01-18 04:51:10.000000000 -0600 @@ -213,13 +213,13 @@ (or (TeX-tree-expand '("$SYSTEXMF" "$TEXMFLOCAL" "$TEXMFMAIN" "$TEXMFDIST") "platex" '("/ptex/" "/pbibtex/bst/")) - '("/usr/share/texmf/ptex/" "/usr/share/texmf/pbibtex/bst/"))) + '("@FINK_PREFIX@/share/texmf/ptex/" "@FINK_PREFIX@/share/texmf/pbibtex/bst/"))) (mapc (lambda (dir) (add-to-list 'TeX-macro-global dir t)) (or (TeX-tree-expand '("$SYSTEXMF" "$TEXMFLOCAL" "$TEXMFMAIN" "$TEXMFDIST") "jlatex" '("/jtex/" "/jbibtex/bst/")) - '("/usr/share/texmf/jtex/" "/usr/share/texmf/jbibtex/bst/"))) + '("@FINK_PREFIX@/share/texmf/jtex/" "@FINK_PREFIX@/share/texmf/jbibtex/bst/"))) (defcustom japanese-TeX-error-messages t "If non-nil, explain LaTeX error messages in Japanese." diff -ruN auctex-13.3-orig/tex.el auctex-13.3/tex.el --- auctex-13.3-orig/tex.el 2024-01-17 08:55:20.000000000 -0600 +++ auctex-13.3/tex.el 2024-01-18 04:51:10.000000000 -0600 @@ -2663,7 +2663,7 @@ "Return directories containing the site's TeX macro and style files." (or (TeX-tree-expand '("$SYSTEXMF" "$TEXMFLOCAL" "$TEXMFMAIN" "$TEXMFDIST") "latex" '("/tex/" "/bibtex/bst/")) - '("/usr/share/texmf/tex/" "/usr/share/texmf/bibtex/bst/"))) + '("@FINK_PREFIX@/share/texmf/tex/" "@FINK_PREFIX@/share/texmf/bibtex/bst/"))) (defun TeX-macro-private () "Return directories containing the user's TeX macro and style files."