pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/js2-mode Import js2-20080406 as devel/js2-mode.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1fa8883279f9
branches:  trunk
changeset: 540967:1fa8883279f9
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Apr 12 13:57:19 2008 +0000

description:
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:

 devel/js2-mode/DESCR    |  13 +++++++++++++
 devel/js2-mode/MESSAGE  |  10 ++++++++++
 devel/js2-mode/Makefile |  31 +++++++++++++++++++++++++++++++
 devel/js2-mode/PLIST    |   3 +++
 devel/js2-mode/distinfo |   5 +++++
 5 files changed, 62 insertions(+), 0 deletions(-)

diffs (82 lines):

diff -r 5d40c94dde5c -r 1fa8883279f9 devel/js2-mode/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/js2-mode/DESCR      Sat Apr 12 13:57:19 2008 +0000
@@ -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 -r 5d40c94dde5c -r 1fa8883279f9 devel/js2-mode/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/js2-mode/MESSAGE    Sat Apr 12 13:57:19 2008 +0000
@@ -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 -r 5d40c94dde5c -r 1fa8883279f9 devel/js2-mode/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/js2-mode/Makefile   Sat Apr 12 13:57:19 2008 +0000
@@ -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@localhost
+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 -r 5d40c94dde5c -r 1fa8883279f9 devel/js2-mode/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/js2-mode/PLIST      Sat Apr 12 13:57:19 2008 +0000
@@ -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 -r 5d40c94dde5c -r 1fa8883279f9 devel/js2-mode/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/js2-mode/distinfo   Sat Apr 12 13:57:19 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index