summaryrefslogtreecommitdiff
blob: 6aa4c8671344ee8e7953d59dadc1cf03a0161757 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/lua-mode/lua-mode-1.26.ebuild,v 1.3 2004/06/24 22:17:17 agriffis Exp $

inherit elisp

DESCRIPTION="An Emacs major mode for editing Lua scripts"
HOMEPAGE="http://lua-users.org/wiki/LuaEditorSupport"
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
DEPEND="virtual/emacs"

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

src_unpack() {
	elisp_src_unpack
	# Fix it so that it can be byte compiled.  Apparently, it
	# wasn't tested with the byte compiler.
	local sed_expr='s/eval-when-compile/progn/g'
	cp "${S}/lua-mode.el" "${T}"
	sed -e "${sed_expr}" "${T}/lua-mode.el" > "${S}/lua-mode.el"
}