summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorwiz <wiz>2008-04-12 13:57:19 +0000
committerwiz <wiz>2008-04-12 13:57:19 +0000
commit4b066f1727cf581ee2f830fedc1cba5135fc372b (patch)
treeab11f5738d5363c29a011f4dce238ea5285a6453 /devel
parent3036b32015e7d41fbf600bfd4acf58c22edb35f6 (diff)
downloadpkgsrc-4b066f1727cf581ee2f830fedc1cba5135fc372b.tar.gz
Import js2-20080406 as devel/js2-mode.
This JavaScript editing mode supports: - the full JavaScript language through version 1.7 - accurate syntax highlighting using a recursive-descent parser - syntax-error and strict-mode warning reporting - "bouncing" line indentation to choose among alternate indentation points - smart line-wrapping within comments and strings - code folding: - show some or all function bodies as {...} - show some or all block comments as /*...*/ - context-sensitive menu bar and popup menus - typing helpers (e.g. inserting matching braces/parens) - many customization options
Diffstat (limited to 'devel')
-rw-r--r--devel/js2-mode/DESCR13
-rw-r--r--devel/js2-mode/MESSAGE10
-rw-r--r--devel/js2-mode/Makefile31
-rw-r--r--devel/js2-mode/PLIST3
-rw-r--r--devel/js2-mode/distinfo5
5 files changed, 62 insertions, 0 deletions
diff --git a/devel/js2-mode/DESCR b/devel/js2-mode/DESCR
new file mode 100644
index 00000000000..056c12d77ca
--- /dev/null
+++ b/devel/js2-mode/DESCR
@@ -0,0 +1,13 @@
+This JavaScript editing mode supports:
+
+ - the full JavaScript language through version 1.7
+ - accurate syntax highlighting using a recursive-descent parser
+ - syntax-error and strict-mode warning reporting
+ - "bouncing" line indentation to choose among alternate indentation points
+ - smart line-wrapping within comments and strings
+ - code folding:
+ - show some or all function bodies as {...}
+ - show some or all block comments as /*...*/
+ - context-sensitive menu bar and popup menus
+ - typing helpers (e.g. inserting matching braces/parens)
+ - many customization options
diff --git a/devel/js2-mode/MESSAGE b/devel/js2-mode/MESSAGE
new file mode 100644
index 00000000000..11f7456ef76
--- /dev/null
+++ b/devel/js2-mode/MESSAGE
@@ -0,0 +1,10 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2008/04/12 13:57:19 wiz Exp $
+
+You will need to add something like the following to your .emacs file to
+autoload the js2 mode for Emacs.
+
+ (autoload 'js2-mode "js2" nil t)
+ (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
+
+===========================================================================
diff --git a/devel/js2-mode/Makefile b/devel/js2-mode/Makefile
new file mode 100644
index 00000000000..e1fd16b25c4
--- /dev/null
+++ b/devel/js2-mode/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/04/12 13:57:19 wiz Exp $
+#
+
+DISTNAME= js2-20080406
+CATEGORIES= devel
+MASTER_SITES= http://js2-mode.googlecode.com/files/
+EXTRACT_SUFX= .el
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://code.google.com/p/js2-mode/
+COMMENT= Improved JavaScript mode for GNU Emacs
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}
+USE_LANGUAGES= # none
+MESSAGE_SUBST+= LISPDIR=${EMACS_LISPPREFIX:Q}
+
+# no xemacs at all; emacs21 doesn't support full functionality
+EMACS_VERSIONS_ACCEPTED= emacs22 emacs22nox
+
+do-build:
+ cd ${WRKSRC} && ${EMACS_BIN} -batch -f batch-byte-compile ${DISTNAME}.el
+
+do-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}
+ ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.el ${DESTDIR}${EMACS_LISPPREFIX}/js2.el
+ ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}.elc ${DESTDIR}${EMACS_LISPPREFIX}/js2.elc
+
+.include "../../mk/emacs.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/js2-mode/PLIST b/devel/js2-mode/PLIST
new file mode 100644
index 00000000000..a17a2c29dfe
--- /dev/null
+++ b/devel/js2-mode/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/04/12 13:57:19 wiz Exp $
+${EMACS_LISPPREFIX}/js2.el
+${EMACS_LISPPREFIX}/js2.elc
diff --git a/devel/js2-mode/distinfo b/devel/js2-mode/distinfo
new file mode 100644
index 00000000000..28779405045
--- /dev/null
+++ b/devel/js2-mode/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/04/12 13:57:19 wiz Exp $
+
+SHA1 (js2-20080406.el) = 80121faf4dac784fbbddb394fba1d54392fae6f1
+RMD160 (js2-20080406.el) = 4163dc72457cd562b614491fe4c9efffc0e7f3e9
+Size (js2-20080406.el) = 390415 bytes