summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2014-04-20 19:05:08 +0000
committerwiz <wiz@pkgsrc.org>2014-04-20 19:05:08 +0000
commit3eff40eb92dbca01b942d7ce9c94a91af708cdd8 (patch)
treea8ae7607c3a501ee8aa752d9dfc8f738d16c949a /devel
parent3e7062587feaaf61a6c92782fb9eaf36b7553f7a (diff)
downloadpkgsrc-3eff40eb92dbca01b942d7ce9c94a91af708cdd8.tar.gz
Import rainbow-delimiters-1.3.5 as devel/rainbow-delimiters-el.
RainbowDelimiters is a "rainbow parentheses"-like mode for emacs which highlights parens, brackets, and braces according to their depth. Each successive level is highlighted a different color. This makes it easy to spot matching delimiters, orient yourself in the code, and tell which statements are at the same depth.
Diffstat (limited to 'devel')
-rw-r--r--devel/rainbow-delimiters-el/DESCR5
-rw-r--r--devel/rainbow-delimiters-el/MESSAGE21
-rw-r--r--devel/rainbow-delimiters-el/Makefile26
-rw-r--r--devel/rainbow-delimiters-el/PLIST3
-rw-r--r--devel/rainbow-delimiters-el/distinfo5
5 files changed, 60 insertions, 0 deletions
diff --git a/devel/rainbow-delimiters-el/DESCR b/devel/rainbow-delimiters-el/DESCR
new file mode 100644
index 00000000000..3c56b3e83d3
--- /dev/null
+++ b/devel/rainbow-delimiters-el/DESCR
@@ -0,0 +1,5 @@
+RainbowDelimiters is a "rainbow parentheses"-like mode for emacs
+which highlights parens, brackets, and braces according to their
+depth. Each successive level is highlighted a different color. This
+makes it easy to spot matching delimiters, orient yourself in the
+code, and tell which statements are at the same depth.
diff --git a/devel/rainbow-delimiters-el/MESSAGE b/devel/rainbow-delimiters-el/MESSAGE
new file mode 100644
index 00000000000..3ad33813555
--- /dev/null
+++ b/devel/rainbow-delimiters-el/MESSAGE
@@ -0,0 +1,21 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2014/04/20 19:05:08 wiz Exp $
+
+You will need to add something like the following to your .emacs file to
+autoload the mode for Emacs.
+
+ (require 'rainbow-delimiters)
+
+To use only with specific modes, add lines like the following:
+
+ (add-hook 'clojure-mode-hook 'rainbow-delimiters-mode)
+
+To enable in all programming-related modes (Emacs 24+):
+
+ (add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
+
+To use Emacs-wide, add this line:
+
+ (global-rainbow-delimiters-mode)
+
+===========================================================================
diff --git a/devel/rainbow-delimiters-el/Makefile b/devel/rainbow-delimiters-el/Makefile
new file mode 100644
index 00000000000..cb0a22677b9
--- /dev/null
+++ b/devel/rainbow-delimiters-el/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2014/04/20 19:05:08 wiz Exp $
+
+DISTNAME= rainbow-delimiters
+PKGNAME= rainbow-delimiters-1.3.5
+CATEGORIES= devel
+MASTER_SITES= http://github.com/jlr/rainbow-delimiters/raw/master/
+EXTRACT_SUFX= .el
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.emacswiki.org/emacs/RainbowDelimiters
+COMMENT= Emacs mode for colorful parentheses highlighting
+
+DIST_SUBDIR= ${PKGNAME_NOREV}
+WRKSRC= ${WRKDIR}
+USE_LANGUAGES= # none
+MESSAGE_SUBST+= LISPDIR=${EMACS_LISPPREFIX:Q}
+INSTALLATION_DIRS= ${EMACS_LISPPREFIX}
+
+do-build:
+ cd ${WRKSRC} && ${EMACS_BIN} -batch -f batch-byte-compile rainbow-delimiters.el
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/rainbow-delimiters.* ${DESTDIR}${EMACS_LISPPREFIX}
+
+.include "../../editors/emacs/modules.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/rainbow-delimiters-el/PLIST b/devel/rainbow-delimiters-el/PLIST
new file mode 100644
index 00000000000..940d47d56ad
--- /dev/null
+++ b/devel/rainbow-delimiters-el/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2014/04/20 19:05:08 wiz Exp $
+${EMACS_LISPPREFIX}/rainbow-delimiters.el
+${EMACS_LISPPREFIX}/rainbow-delimiters.elc
diff --git a/devel/rainbow-delimiters-el/distinfo b/devel/rainbow-delimiters-el/distinfo
new file mode 100644
index 00000000000..5fd6a7370b4
--- /dev/null
+++ b/devel/rainbow-delimiters-el/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/04/20 19:05:08 wiz Exp $
+
+SHA1 (rainbow-delimiters-1.3.5/rainbow-delimiters.el) = 1ced336ffa0a0701f5d81e8e29914de6a67ab96a
+RMD160 (rainbow-delimiters-1.3.5/rainbow-delimiters.el) = e20255b9d17aaede2609c4d7f85eb2f52c0d969f
+Size (rainbow-delimiters-1.3.5/rainbow-delimiters.el) = 24930 bytes