summaryrefslogtreecommitdiff
path: root/editors/matlab-mode
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2003-02-14 01:32:43 +0000
committerdmcmahill <dmcmahill>2003-02-14 01:32:43 +0000
commit223b03c067329cd3fe4cfef26e502805c30624eb (patch)
treedff5b7ed03232f787f427ae738cfcc749019c88c /editors/matlab-mode
parent249a60050cb4bb7d0a5336778928fe56732055ac (diff)
downloadpkgsrc-223b03c067329cd3fe4cfef26e502805c30624eb.tar.gz
import matlab-mode-2.3.
This is a major mode for editing Matlab source code under GNU Emacs or XEmacs.
Diffstat (limited to 'editors/matlab-mode')
-rw-r--r--editors/matlab-mode/DESCR2
-rw-r--r--editors/matlab-mode/MESSAGE11
-rw-r--r--editors/matlab-mode/Makefile39
-rw-r--r--editors/matlab-mode/PLIST4
-rw-r--r--editors/matlab-mode/distinfo4
5 files changed, 60 insertions, 0 deletions
diff --git a/editors/matlab-mode/DESCR b/editors/matlab-mode/DESCR
new file mode 100644
index 00000000000..79b8b27fd98
--- /dev/null
+++ b/editors/matlab-mode/DESCR
@@ -0,0 +1,2 @@
+This is a major mode for editing Matlab source code under GNU Emacs or
+XEmacs.
diff --git a/editors/matlab-mode/MESSAGE b/editors/matlab-mode/MESSAGE
new file mode 100644
index 00000000000..9a6c814556a
--- /dev/null
+++ b/editors/matlab-mode/MESSAGE
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2003/02/14 01:32:43 dmcmahill Exp $
+
+You will need to add something like the following to your .emacs.el (or
+default.el) file to autoload Matlab mode for Emacs.
+
+(setq auto-mode-alist (cons '("\\.m\\'" . matlab-mode) auto-mode-alist))
+(autoload 'matlab-mode "matlab" "Enter MATLAB mode." t)
+(autoload 'matlab-shell "matlab" "Interactive MATLAB mode." t)
+
+===========================================================================
diff --git a/editors/matlab-mode/Makefile b/editors/matlab-mode/Makefile
new file mode 100644
index 00000000000..1043bcde5e7
--- /dev/null
+++ b/editors/matlab-mode/Makefile
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/02/14 01:32:43 dmcmahill Exp $
+#
+
+DISTNAME= matlab.el
+PKGNAME= matlab-mode-2.3
+CATEGORIES= editors math
+MASTER_SITES= http://www.mathworks.com/matlabcentral/files/104/
+EXTRACT_SUFX=
+
+MAINTAINER= dmcmahill@netbsd.org
+HOMEPAGE= http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=104&objectType=file
+COMMENT= Matlab mode for Emacs
+
+WRKSRC= ${WRKDIR}
+
+EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} ${WRKDIR}
+DIST_SUBDIR= ${PKGNAME}
+
+.include "../../mk/emacs.mk"
+
+.if ${EMACS_FLAVOR} == "emacs"
+EMACS= emacs
+.else
+EMACS= xemacs
+.endif
+
+SRCS= matlab.el
+
+do-build:
+ for f in ${SRCS}; do \
+ ${EMACS} --no-init-file --no-site-file -batch \
+ -f batch-byte-compile ${WRKSRC}/$$f; \
+ done
+
+do-install:
+ ${INSTALL_DATA_DIR} ${EMACS_LISPPREFIX}/${PKGBASE}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} ${EMACS_LISPPREFIX}/${PKGBASE}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/editors/matlab-mode/PLIST b/editors/matlab-mode/PLIST
new file mode 100644
index 00000000000..a1142ae0f26
--- /dev/null
+++ b/editors/matlab-mode/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/02/14 01:32:43 dmcmahill Exp $
+${EMACS_LISPPREFIX}/matlab-mode/matlab.el
+${EMACS_LISPPREFIX}/matlab-mode/matlab.elc
+@dirrm ${EMACS_LISPPREFIX}/matlab-mode
diff --git a/editors/matlab-mode/distinfo b/editors/matlab-mode/distinfo
new file mode 100644
index 00000000000..3ee4f931046
--- /dev/null
+++ b/editors/matlab-mode/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/02/14 01:32:43 dmcmahill Exp $
+
+SHA1 (matlab-mode-2.3/matlab.el) = f0bc5f62292798ccd7f6a92ca04ddab11e79cfe4
+Size (matlab-mode-2.3/matlab.el) = 219424 bytes