summaryrefslogtreecommitdiff
blob: 699fb0b6014d3dfdefe02270a03e28690701c417 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit elisp

DESCRIPTION="ELSE provides templates to generate code in several different languages"
HOMEPAGE="http://www.zipworld.com.au/~peterm/"
SRC_URI=""

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

IUSE=""

DEPEND="virtual/emacs"

SITEFILE=50else-mode-gentoo.el

S=${WORKDIR}

src_unpack() {
	cd ${S}
	cp ${FILESDIR}/{else-mode,setnu}.el .
}

src_compile() {
	elisp-compile *.el || die
}

src_install() {

	doinfo ${FILESDIR}/else.info

	mkdir ${D}/usr/share/${PN}
	insinto /usr/share/${PN}
	doins ${FILESDIR}/*.lse

	elisp-install ${PN} *.el *.elc
	elisp-site-file-install ${FILESDIR}/${SITEFILE}
}

pkg_postinst() {
	elisp-site-regen
}

pkg_postrm() {
	elisp-site-regen
}