summaryrefslogtreecommitdiff
blob: 3d76217b628f7074fad4e66d58ab1ac907597c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

inherit elisp

DESCRIPTION="An improved JavaScript mode for GNU Emacs"
HOMEPAGE="http://code.google.com/p/js2-mode/"
# taken from http://${PN}.googlecode.com/files/js2-${PV}.el"
SRC_URI="http://dev.gentoo.org/~ulm/distfiles/js2-${PV}.el.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

SITEFILE="50${PN}-gentoo.el"

src_unpack() {
	unpack ${A}
	mv js2-${PV}.el ${PN}.el
}

pkg_postinst() {
	elisp-site-regen
	elog "If you want to activate js2-mode automatically for .js files,"
	elog "add the following command to your ~/.emacs file:"
	elog "(add-to-list 'auto-mode-alist '(\""'\\\\.js\\\\'"'\" . js2-mode))"
}