blob: c2cc95752188f58138ba942e0a15d0cff983ce7e (
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
51
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit common-lisp-3 elisp-common eutils
DESCRIPTION="Common Lisp implementation of Google's Closure Templates."
HOMEPAGE="http://code.google.com/p/cl-closure-template/"
SRC_URI="http://cl-closure-template.googlecode.com/files/${P}.tar.bz2"
LICENSE="LLGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="doc emacs"
RDEPEND="dev-lisp/asdf-system-connections
dev-lisp/babel
dev-lisp/parenscript
dev-lisp/split-sequence
dev-lisp/wiki-parser
dev-lisp/lift
emacs? ( virtual/emacs )"
CLSYSTEMS="closure-template"
SITEFILE="50${PN}-gentoo.el"
src_install() {
common-lisp-install-sources -t all src t
common-lisp-install-asdf ${CLSYSTEMS}
if use doc; then
insinto /usr/share/doc/${PF}/examples
doins -r example/* || die "Cannot install examples"
fi
if use emacs; then
elisp-install ${PN} closure-template-html-mode.el || die "Cannot install elisp sources"
elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die "Cannot install elisp site file"
fi
dodoc README.markdown
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
|