auctex stable port information

Package: auctex
Version: 11.85
Revision: 3
Description: Integrated environment for TeX/LaTeX document writing
License: GPL
Maintainer: Todai Fink Team
Depends: emacsen, make, tetex3-base | system-tetex, preview-latex (= %v-%r)
Recommends: xpdf
Suggests: lacheck
Source: mirror:gnu:%n/%n-%v.tar.gz
Source-MD5: 597c2adbee11877fe1f9b57baf0ba165
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1
ConfigureParams: --with-texmf-dir=%p/etc/texmf.local auctexdir=..
CompileScript: <<
cd preview && ./configure %c
cd preview/latex && make
rm preview/auto.el
<<
InstallScript: <<
########## For auctex ##########
install -m 755 -d %i/share/emacs/site-lisp/%n
install -m 755 configure install-sh %i/share/emacs/site-lisp/%n
install -m 644 ChangeLog %i/share/emacs/site-lisp/%n
install -m 644 *.ac *.el *.in *.m4 %i/share/emacs/site-lisp/%n

install -m 755 -d %i/share/emacs/site-lisp/%n/doc
install -m 644 doc/Makefile.in %i/share/emacs/site-lisp/%n/doc

install -m 755 -d %i/share/emacs/site-lisp/%n/images
install -m 644 images/* %i/share/emacs/site-lisp/%n/images
install -m 644 preview/images/* %i/share/emacs/site-lisp/%n/images

install -m 755 -d %i/share/emacs/site-lisp/%n/preview/latex
install -m 755 preview/configure %i/share/emacs/site-lisp/%n/preview
install -m 644 preview/*.ac %i/share/emacs/site-lisp/%n/preview
install -m 644 preview/*.el %i/share/emacs/site-lisp/%n/preview
install -m 644 preview/*.in %i/share/emacs/site-lisp/%n/preview
install -m 644 preview/latex/*.in %i/share/emacs/site-lisp/%n/preview/latex
install -m 644 preview/latex/*.dtx %i/share/emacs/site-lisp/%n/preview/latex

install -m 755 -d %i/share/emacs/site-lisp/%n/style
install -m 644 style/{*.el,.nosearch} %i/share/emacs/site-lisp/%n/style

install -m 755 -d %i/share/info
install -m 644 doc/%n.info %i/share/info

install -m 755 -d %i/share/doc/%n/src
install -m 644 doc/*.texi %i/share/doc/%n/src

install -m 755 -d %i/var/lib/%n

install -m 755 -d %i/etc/emacs/site-start.d
install -m 644 fink/%n-startup %i/etc/emacs/site-start.d/50%n.el

install -m 755 -d %i/lib/emacsen-common/packages/{install,remove}
install -m 755 fink/%n-install %i/lib/emacsen-common/packages/install/%n
install -m 755 fink/%n-remove %i/lib/emacsen-common/packages/remove/%n

########## For preview-latex ##########
cd preview/latex && make install DESTDIR=%d TEXHASH=/bin/echo
install -m 644 doc/preview-latex.info %i/share/info
<<
DocFiles: CHANGES COPYING ChangeLog FAQ INSTALL README RELEASE TODO doc/tex-ref.pdf
InfoDocs: %n.info
ConfFiles: %p/etc/emacs/site-start.d/50%n.el
SplitOff: <<
Package: preview-latex
Description: LaTeX style files for editor embedded preview of some environments
Files: etc/texmf.local share/info/%n.info
DocFiles: COPYING preview/latex/{README,preview.pdf}
InfoDocs: %n.info
PostInstScript: [ -x %p/bin/mktexlsr ] && %p/bin/mktexlsr %p/etc/texmf.local
PostRmScript: [ -x %p/bin/mktexlsr ] && %p/bin/mktexlsr %p/etc/texmf.local
Homepage: http://www.gnu.org/software/auctex/preview-latex.html
DescDetail: <<
These style files are allow previewing LaTeX environments such as math or
figures in editors which support it.
<<
<<
PostInstScript: <<
if [ "$1" = "configure" ] && [ -x %p/lib/emacsen-common/emacs-package-install ]
then
%p/lib/emacsen-common/emacs-package-install %n
fi
<<
PreRmScript: <<
if [ -x %p/lib/emacsen-common/emacs-package-remove ] ; then
%p/lib/emacsen-common/emacs-package-remove %n
fi
<<
DescDetail: <<
AUC TeX is a comprehensive customizable integrated environment for
writing input files for (La)TeX using GNU Emacs.

It can indent your text as you write it, let you run TeX/LaTeX and
other LaTeX-related tools (such as a output filter or post processor)
from within Emacs, and includes a wide range of Emacs macros to allow
both easy insertions of LaTeX commands, and easy compilation,
previewing, and printing of your TeX documents.

AUC TeX also lets you browse through compiling errors TeX reports,
while it moves the cursor directly to the reported error and displays
documentation for that particular error. This will even work when the
document is spread over several files.
<<
Homepage: http://www.gnu.org/software/auctex/

auctex stable port .patch

diff -Naur auctex-11.83.orig/doc/preview-latex.info auctex-11.83/doc/preview-latex.info
--- auctex-11.83.orig/doc/preview-latex.info 2006-06-08 05:52:47.000000000 +0900
+++ auctex-11.83/doc/preview-latex.info 2006-10-02 06:28:43.000000000 +0900
@@ -648,7 +648,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'
+(typically in a file called `@PREFIX@/share/texmf-dist/dvips/tetex/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
diff -Naur auctex-11.83.orig/doc/preview-problems.texi auctex-11.83/doc/preview-problems.texi
--- auctex-11.83.orig/doc/preview-problems.texi 2005-06-08 16:23:40.000000000 +0900
+++ auctex-11.83/doc/preview-problems.texi 2006-10-02 06:36:21.000000000 +0900
@@ -104,7 +104,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{@PREFIX@/share/texmf-dist/dvips/tetex/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 -Naur auctex-11.83.orig/fink/auctex-install auctex-11.83/fink/auctex-install
--- auctex-11.83.orig/fink/auctex-install 1970-01-01 09:00:00.000000000 +0900
+++ auctex-11.83/fink/auctex-install 2006-10-02 09:19:57.000000000 +0900
@@ -0,0 +1,76 @@
+#! /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: @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog)... \c"
+ cd @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} @PREFIX@/share/${FLAVOR}/site-lisp/auctex/
+ ./configure --disable-build-dir-test GS=gs \
+ --prefix=@PREFIX@/ \
+ --with-emacs=${FLAVOR} \
+ --with-lispdir=@PREFIX@/share/${FLAVOR}/site-lisp/ \
+ --with-texmf-dir=@PREFIX@/etc/texmf.local/ \
+ --with-auto-dir=@PREFIX@/var/lib/auctex/${FLAVOR}/ \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ make lisp \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ make INSTALL="${INSTALL}" MKINSTALLDIRS="${INSTDIR}" \
+ install-lisp install-startup \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ ln -sf @PREFIX@/share/emacs/site-lisp/auctex//images @PREFIX@/share/${FLAVOR}/site-lisp/auctex//
+ pushd preview \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ make INSTALL="${INSTALL}" MKINSTALLDIRS="${INSTDIR}" \
+ install-el install-nosearch install-startup \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ popd >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ make maintainer-clean \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ find @PREFIX@/share/${FLAVOR}/site-lisp/auctex/ \
+ -type f -name \*.el -print0 | xargs -0 rm -f ,dummy, \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ gzip -9fq @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 -Naur auctex-11.83.orig/fink/auctex-remove auctex-11.83/fink/auctex-remove
--- auctex-11.83.orig/fink/auctex-remove 1970-01-01 09:00:00.000000000 +0900
+++ auctex-11.83/fink/auctex-remove 2006-10-02 08:09:25.000000000 +0900
@@ -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 @PREFIX@/share/${FLAVOR}/site-lisp/auctex//../{auctex,tex-site}.el
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//../preview-latex.el
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog{,.gz}
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//images
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//*.elc
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//.nosearch
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style//*.elc
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style//.nosearch
+ test -d @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style/ && \
+ rm -rf \
+ @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style/
+ test -d @PREFIX@/share/${FLAVOR}/site-lisp/auctex/ && \
+ rm -rf \
+ @PREFIX@/share/${FLAVOR}/site-lisp/auctex/
+ echo >&2 "done."
+ return 0
+}
+
+undo_auto () {
+ rm -rf @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 -Naur auctex-11.83.orig/fink/auctex-startup auctex-11.83/fink/auctex-startup
--- auctex-11.83.orig/fink/auctex-startup 1970-01-01 09:00:00.000000000 +0900
+++ auctex-11.83/fink/auctex-startup 2006-10-02 12:36:24.000000000 +0900
@@ -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 "@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 "@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 -Naur auctex-11.83.orig/tex-jp.el auctex-11.83/tex-jp.el
--- auctex-11.83.orig/tex-jp.el 2006-06-08 05:26:51.000000000 +0900
+++ auctex-11.83/tex-jp.el 2006-10-02 09:33:27.000000000 +0900
@@ -99,11 +99,11 @@

(mapcar (lambda (dir) (add-to-list 'TeX-macro-global dir t))
(TeX-macro-global-internal "platex" '("/ptex/" "/jbibtex/bst/")
- '("/usr/share/texmf/ptex/" "/usr/share/texmf/jbibtex/bst/")))
+ '("@PREFIX@/share/texmf/ptex/" "@PREFIX@/share/texmf/jbibtex/bst/")))

(mapcar (lambda (dir) (add-to-list 'TeX-macro-global dir t))
(TeX-macro-global-internal "jlatex" '("/jtex/" "/jbibtex/bst/")
- '("/usr/share/texmf/jtex/" "/usr/share/texmf/jbibtex/bst/")))
+ '("@PREFIX@/share/texmf/jtex/" "@PREFIX@/share/texmf/jbibtex/bst/")))

;; Menus

@@ -157,7 +157,7 @@
:type 'string)
(make-variable-buffer-local 'japanese-TeX-command-default)

-(defcustom japanese-LaTeX-command-default "LaTeX"
+(defcustom japanese-LaTeX-command-default "pLaTeX"
"*The default command for `TeX-command' in the japanese-LaTeX mode."
:group 'AUCTeX-jp
:type 'string)
diff -Naur auctex-11.83.orig/tex.el auctex-11.83/tex.el
--- auctex-11.83.orig/tex.el 2006-06-07 17:59:26.000000000 +0900
+++ auctex-11.83/tex.el 2006-10-02 06:24:56.000000000 +0900
@@ -1614,7 +1614,7 @@
(defun TeX-macro-global ()
"Return directories containing the site's TeX macro and style files."
(TeX-macro-global-internal "latex" '("/tex/" "/bibtex/bst/")
- '("/usr/share/texmf/tex/" "/usr/share/texmf/bibtex/bst/")))
+ '("@PREFIX@/share/texmf/tex/" "@PREFIX@/share/texmf/bibtex/bst/")))

(defun TeX-macro-global-internal (latex search default)
"Return directories containing the site's TeX macro and style files.

auctex _unstable_ port information

Package: auctex
Version: 11.85
Revision: 3
Description: Integrated environment for TeX/LaTeX document writing
License: GPL
Maintainer: Todai Fink Team
Depends: emacsen, make, tetex3-base | system-tetex, preview-latex (= %v-%r)
Recommends: xpdf
Suggests: lacheck
Source: mirror:gnu:%n/%n-%v.tar.gz
Source-MD5: 597c2adbee11877fe1f9b57baf0ba165
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1
ConfigureParams: --with-texmf-dir=%p/etc/texmf.local auctexdir=..
CompileScript: <<
cd preview && ./configure %c
cd preview/latex && make
rm preview/auto.el
<<
InstallScript: <<
########## For auctex ##########
install -m 755 -d %i/share/emacs/site-lisp/%n
install -m 755 configure install-sh %i/share/emacs/site-lisp/%n
install -m 644 ChangeLog %i/share/emacs/site-lisp/%n
install -m 644 *.ac *.el *.in *.m4 %i/share/emacs/site-lisp/%n

install -m 755 -d %i/share/emacs/site-lisp/%n/doc
install -m 644 doc/Makefile.in %i/share/emacs/site-lisp/%n/doc

install -m 755 -d %i/share/emacs/site-lisp/%n/images
install -m 644 images/* %i/share/emacs/site-lisp/%n/images
install -m 644 preview/images/* %i/share/emacs/site-lisp/%n/images

install -m 755 -d %i/share/emacs/site-lisp/%n/preview/latex
install -m 755 preview/configure %i/share/emacs/site-lisp/%n/preview
install -m 644 preview/*.ac %i/share/emacs/site-lisp/%n/preview
install -m 644 preview/*.el %i/share/emacs/site-lisp/%n/preview
install -m 644 preview/*.in %i/share/emacs/site-lisp/%n/preview
install -m 644 preview/latex/*.in %i/share/emacs/site-lisp/%n/preview/latex
install -m 644 preview/latex/*.dtx %i/share/emacs/site-lisp/%n/preview/latex

install -m 755 -d %i/share/emacs/site-lisp/%n/style
install -m 644 style/{*.el,.nosearch} %i/share/emacs/site-lisp/%n/style

install -m 755 -d %i/share/info
install -m 644 doc/%n.info %i/share/info

install -m 755 -d %i/share/doc/%n/src
install -m 644 doc/*.texi %i/share/doc/%n/src

install -m 755 -d %i/var/lib/%n

install -m 755 -d %i/etc/emacs/site-start.d
install -m 644 fink/%n-startup %i/etc/emacs/site-start.d/50%n.el

install -m 755 -d %i/lib/emacsen-common/packages/{install,remove}
install -m 755 fink/%n-install %i/lib/emacsen-common/packages/install/%n
install -m 755 fink/%n-remove %i/lib/emacsen-common/packages/remove/%n

########## For preview-latex ##########
cd preview/latex && make install DESTDIR=%d TEXHASH=/bin/echo
install -m 644 doc/preview-latex.info %i/share/info
<<
DocFiles: CHANGES COPYING ChangeLog FAQ INSTALL README RELEASE TODO doc/tex-ref.pdf
InfoDocs: %n.info
ConfFiles: %p/etc/emacs/site-start.d/50%n.el
SplitOff: <<
Package: preview-latex
Description: LaTeX style files for editor embedded preview of some environments
Files: etc/texmf.local share/info/%n.info
DocFiles: COPYING preview/latex/{README,preview.pdf}
InfoDocs: %n.info
PostInstScript: [ -x %p/bin/mktexlsr ] && %p/bin/mktexlsr %p/etc/texmf.local
PostRmScript: [ -x %p/bin/mktexlsr ] && %p/bin/mktexlsr %p/etc/texmf.local
Homepage: http://www.gnu.org/software/auctex/preview-latex.html
DescDetail: <<
These style files are allow previewing LaTeX environments such as math or
figures in editors which support it.
<<
<<
PostInstScript: <<
if [ "$1" = "configure" ] && [ -x %p/lib/emacsen-common/emacs-package-install ]
then
%p/lib/emacsen-common/emacs-package-install %n
fi
<<
PreRmScript: <<
if [ -x %p/lib/emacsen-common/emacs-package-remove ] ; then
%p/lib/emacsen-common/emacs-package-remove %n
fi
<<
DescDetail: <<
AUC TeX is a comprehensive customizable integrated environment for
writing input files for (La)TeX using GNU Emacs.

It can indent your text as you write it, let you run TeX/LaTeX and
other LaTeX-related tools (such as a output filter or post processor)
from within Emacs, and includes a wide range of Emacs macros to allow
both easy insertions of LaTeX commands, and easy compilation,
previewing, and printing of your TeX documents.

AUC TeX also lets you browse through compiling errors TeX reports,
while it moves the cursor directly to the reported error and displays
documentation for that particular error. This will even work when the
document is spread over several files.
<<
Homepage: http://www.gnu.org/software/auctex/

auctex _unstable_ port .patch

diff -Naur auctex-11.83.orig/doc/preview-latex.info auctex-11.83/doc/preview-latex.info
--- auctex-11.83.orig/doc/preview-latex.info 2006-06-08 05:52:47.000000000 +0900
+++ auctex-11.83/doc/preview-latex.info 2006-10-02 06:28:43.000000000 +0900
@@ -648,7 +648,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'
+(typically in a file called `@PREFIX@/share/texmf-dist/dvips/tetex/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
diff -Naur auctex-11.83.orig/doc/preview-problems.texi auctex-11.83/doc/preview-problems.texi
--- auctex-11.83.orig/doc/preview-problems.texi 2005-06-08 16:23:40.000000000 +0900
+++ auctex-11.83/doc/preview-problems.texi 2006-10-02 06:36:21.000000000 +0900
@@ -104,7 +104,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{@PREFIX@/share/texmf-dist/dvips/tetex/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 -Naur auctex-11.83.orig/fink/auctex-install auctex-11.83/fink/auctex-install
--- auctex-11.83.orig/fink/auctex-install 1970-01-01 09:00:00.000000000 +0900
+++ auctex-11.83/fink/auctex-install 2006-10-02 09:19:57.000000000 +0900
@@ -0,0 +1,76 @@
+#! /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: @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog)... \c"
+ cd @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} @PREFIX@/share/${FLAVOR}/site-lisp/auctex/
+ ./configure --disable-build-dir-test GS=gs \
+ --prefix=@PREFIX@/ \
+ --with-emacs=${FLAVOR} \
+ --with-lispdir=@PREFIX@/share/${FLAVOR}/site-lisp/ \
+ --with-texmf-dir=@PREFIX@/etc/texmf.local/ \
+ --with-auto-dir=@PREFIX@/var/lib/auctex/${FLAVOR}/ \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ make lisp \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ make INSTALL="${INSTALL}" MKINSTALLDIRS="${INSTDIR}" \
+ install-lisp install-startup \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ ln -sf @PREFIX@/share/emacs/site-lisp/auctex//images @PREFIX@/share/${FLAVOR}/site-lisp/auctex//
+ pushd preview \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ make INSTALL="${INSTALL}" MKINSTALLDIRS="${INSTDIR}" \
+ install-el install-nosearch install-startup \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ popd >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ make maintainer-clean \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ find @PREFIX@/share/${FLAVOR}/site-lisp/auctex/ \
+ -type f -name \*.el -print0 | xargs -0 rm -f ,dummy, \
+ >> @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog 2>&1
+ gzip -9fq @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 -Naur auctex-11.83.orig/fink/auctex-remove auctex-11.83/fink/auctex-remove
--- auctex-11.83.orig/fink/auctex-remove 1970-01-01 09:00:00.000000000 +0900
+++ auctex-11.83/fink/auctex-remove 2006-10-02 08:09:25.000000000 +0900
@@ -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 @PREFIX@/share/${FLAVOR}/site-lisp/auctex//../{auctex,tex-site}.el
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//../preview-latex.el
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//CompilationLog{,.gz}
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//images
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//*.elc
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//.nosearch
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style//*.elc
+ rm -f @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style//.nosearch
+ test -d @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style/ && \
+ rm -rf \
+ @PREFIX@/share/${FLAVOR}/site-lisp/auctex//style/
+ test -d @PREFIX@/share/${FLAVOR}/site-lisp/auctex/ && \
+ rm -rf \
+ @PREFIX@/share/${FLAVOR}/site-lisp/auctex/
+ echo >&2 "done."
+ return 0
+}
+
+undo_auto () {
+ rm -rf @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 -Naur auctex-11.83.orig/fink/auctex-startup auctex-11.83/fink/auctex-startup
--- auctex-11.83.orig/fink/auctex-startup 1970-01-01 09:00:00.000000000 +0900
+++ auctex-11.83/fink/auctex-startup 2006-10-02 12:36:24.000000000 +0900
@@ -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 "@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 "@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 -Naur auctex-11.83.orig/tex-jp.el auctex-11.83/tex-jp.el
--- auctex-11.83.orig/tex-jp.el 2006-06-08 05:26:51.000000000 +0900
+++ auctex-11.83/tex-jp.el 2006-10-02 09:33:27.000000000 +0900
@@ -99,11 +99,11 @@

(mapcar (lambda (dir) (add-to-list 'TeX-macro-global dir t))
(TeX-macro-global-internal "platex" '("/ptex/" "/jbibtex/bst/")
- '("/usr/share/texmf/ptex/" "/usr/share/texmf/jbibtex/bst/")))
+ '("@PREFIX@/share/texmf/ptex/" "@PREFIX@/share/texmf/jbibtex/bst/")))

(mapcar (lambda (dir) (add-to-list 'TeX-macro-global dir t))
(TeX-macro-global-internal "jlatex" '("/jtex/" "/jbibtex/bst/")
- '("/usr/share/texmf/jtex/" "/usr/share/texmf/jbibtex/bst/")))
+ '("@PREFIX@/share/texmf/jtex/" "@PREFIX@/share/texmf/jbibtex/bst/")))

;; Menus

@@ -157,7 +157,7 @@
:type 'string)
(make-variable-buffer-local 'japanese-TeX-command-default)

-(defcustom japanese-LaTeX-command-default "LaTeX"
+(defcustom japanese-LaTeX-command-default "pLaTeX"
"*The default command for `TeX-command' in the japanese-LaTeX mode."
:group 'AUCTeX-jp
:type 'string)
diff -Naur auctex-11.83.orig/tex.el auctex-11.83/tex.el
--- auctex-11.83.orig/tex.el 2006-06-07 17:59:26.000000000 +0900
+++ auctex-11.83/tex.el 2006-10-02 06:24:56.000000000 +0900
@@ -1614,7 +1614,7 @@
(defun TeX-macro-global ()
"Return directories containing the site's TeX macro and style files."
(TeX-macro-global-internal "latex" '("/tex/" "/bibtex/bst/")
- '("/usr/share/texmf/tex/" "/usr/share/texmf/bibtex/bst/")))
+ '("@PREFIX@/share/texmf/tex/" "@PREFIX@/share/texmf/bibtex/bst/")))

(defun TeX-macro-global-internal (latex search default)
"Return directories containing the site's TeX macro and style files.