Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/editors
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv22347

Added Files:
        tuareg-mode.info tuareg-mode.patch 
Log Message:
new from tracker 
http://sourceforge.net/tracker/index.php?func=detail&aid=1860744&group_id=17203&atid=414256

--- NEW FILE: tuareg-mode.info ---
Package: tuareg-mode
Description: ML mode for emacs
Version: 1.45.6
Revision: 1
Maintainer: Jesse Alama <[EMAIL PROTECTED]>
License: GPL
DocFiles: COPYING HISTORY LISEZMOI README
Source: http://www-rocq.inria.fr/~acohen/tuareg/mode/%n-%v.tar.gz
Source-MD5: 757406cf481d5eaa1a34099a12231f78
PatchScript: sed 's|@PREFIX@|%p|g' < %a/%n.patch | patch -p1
DescDetail: <<
This package contains emacs code to help editing Caml code, to hilight
important parts of the code, to run a Caml toplevel, and to run the
Caml debugger within GNU Emacs/XEmacs editors. It is designed for
Objective Caml but handles Camllight syntax as well.
<<
DescUsage: <<
By default, the fink package tuareg-mode sets up emacs to enable
tuareg-mode whenver an ML file is encountered, which by definition is
any file whose extension is ".ml", or ".ml" followed by another
non-whitespace character (e.g., ".mli", ".mly", ".mll", etc.).  To
enable tuareg-mode manually, issue the command `tuareg-mode'.

Some suggested customizations from the upstream authors:

(add-hook 'tuareg-mode-hook
  '(lambda ()
     (setq tuareg-lazy-= t) ; indent `=' like a standard keyword
     (setq tuareg-lazy-paren t) ; indent [({ like standard keywords
     (setq tuareg-in-indent 0) ; no indentation after `in' keywords
     (auto-fill-mode 1) ; turn on auto-fill minor mode
     ))
<<
CompileScript: <<
<<
InstallScript: <<
mkdir -p %i/share/emacs/site-lisp/tuareg
install -m 644 tuareg.el %i/share/emacs/site-lisp/tuareg
install -m 644 camldebug.el %i/share/emacs/site-lisp/tuareg

# Nothing to put here now, but the compilation logs will be put here later
mkdir -p %i/share/doc/tuareg-mode

mkdir -p %i/lib/emacsen-common/packages/install
mkdir -p %i/lib/emacsen-common/packages/remove
install -m 755 fink/emacsen-install %i/lib/emacsen-common/packages/install/%n
install -m 755 fink/emacsen-remove %i/lib/emacsen-common/packages/remove/%n

mkdir -p %i/etc/emacs/site-start.d
install -m 644 fink/50tuareg.el %i/etc/emacs/site-start.d
<<
PostInstScript: %p/lib/emacsen-common/emacs-package-install %n
PreRmScript: %p/lib/emacsen-common/emacs-package-remove %n

--- NEW FILE: tuareg-mode.patch ---
diff -Naur --exclude='*~' tuareg-mode-1.46.2/fink/50tuareg.el 
tuareg-mode-1.46.2.fink/fink/50tuareg.el
--- tuareg-mode-1.46.2/fink/50tuareg.el 1969-12-31 18:00:00.000000000 -0600
+++ tuareg-mode-1.46.2.fink/fink/50tuareg.el    2007-12-26 20:20:20.000000000 
-0600
@@ -0,0 +1,3 @@
+(autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
+(autoload 'camldebug "camldebug" "Run the Caml debugger" t)
+(setq auto-mode-alist (cons '("\\.ml\\w?" . tuareg-mode) auto-mode-alist))
diff -Naur --exclude='*~' tuareg-mode-1.46.2/fink/emacsen-install 
tuareg-mode-1.46.2.fink/fink/emacsen-install
--- tuareg-mode-1.46.2/fink/emacsen-install     1969-12-31 18:00:00.000000000 
-0600
+++ tuareg-mode-1.46.2.fink/fink/emacsen-install        2007-12-26 
20:42:51.000000000 -0600
@@ -0,0 +1,36 @@
+#!/bin/bash -e
+#
+# install file for the fink tuareg-mode emacs package.
+
+set -o posix
+
+FLAVOR=${1}
+
+echo >&2 "install/tuareg-mode: Handling install of emacsen flavor ${FLAVOR}"
+
+if [ ${FLAVOR} == emacs20 ]
+then
+    echo "install/tuareg-mode: Skipping unsupported flavor ${FLAVOR}"
+    exit 0
+fi
+
+if [ ${FLAVOR} == emacs ]
+then
+    # Nothing to do, say nothing
+    exit 0
+fi
+
+echo >&2 -n "install/tuareg-mode: Byte-compiling for ${FLAVOR}..."
+mkdir -p @PREFIX@/share/${FLAVOR}/site-lisp/tuareg
+for i in tuareg camldebug; do
+    ln -s -f @PREFIX@/share/emacs/site-lisp/tuareg/${i}.el 
@PREFIX@/share/${FLAVOR}/site-lisp/tuareg
+done
+
+cd @PREFIX@/share/${FLAVOR}/site-lisp/tuareg;
+
+(${FLAVOR} --no-init-file -batch --eval "(push \".\" load-path)" -f 
batch-byte-compile tuareg.el camldebug.el 2>&1) | gzip -9qf > 
@PREFIX@/share/doc/tuareg-mode/CompilationLog-${FLAVOR}.gz
+
+echo >&2 "done."
+echo >&2 "install/tuareg-mode: Compilation log saved in 
@PREFIX@/share/doc/tuareg-mode/CompilationLog-${FLAVOR}.gz."
+
+exit 0
diff -Naur --exclude='*~' tuareg-mode-1.46.2/fink/emacsen-remove 
tuareg-mode-1.46.2.fink/fink/emacsen-remove
--- tuareg-mode-1.46.2/fink/emacsen-remove      1969-12-31 18:00:00.000000000 
-0600
+++ tuareg-mode-1.46.2.fink/fink/emacsen-remove 2007-12-26 20:26:00.000000000 
-0600
@@ -0,0 +1,27 @@
+#!/bin/bash -e
+#
+# This is the Fink version of the tuareg-mode emacs package.
+set -o posix
+
+FLAVOR=${1}
+
+echo "remove/tuareg-mode: Handling removal for emacsen flavor ${FLAVOR}"
+
+if [ ${FLAVOR} == emacs20 ]
+then
+    echo "remove/tuareg-mode: Skipping unsupported flavor ${FLAVOR}"
+    exit 0
+fi
+
+if [ ${FLAVOR} == emacs ]
+then
+    # Nothing
+    exit 0
+fi
+
+echo >&2 -n "remove/tuareg-mode: Purging compilation log and byte-compiled 
files for ${FLAVOR}..."
+rm -f @PREFIX@/share/doc/tuareg-mode/CompilationLog-${FLAVOR}.gz
+rm -Rf @PREFIX@/share/${FLAVOR}/site-lisp/tuareg
+echo >&2 "done."
+    
+exit 0


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to