blob: 9b659a30a49d8e6d6d9a79cd140c28da70394b31 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/ocaml-mode/ocaml-mode-3.07.ebuild,v 1.2 2004/04/14 07:17:15 aliz Exp $
inherit elisp
IUSE=""
MY_P=${P/-mode/}
DESCRIPTION="Emacs mode for OCaml"
HOMEPAGE="http://www.ocaml.org/"
SRC_URI="http://caml.inria.fr/distrib/${MY_P}/${MY_P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
DEPEND="virtual/emacs"
S="${WORKDIR}/${MY_P}/emacs"
src_compile() {
COMPILECMD='(progn
(setq load-path (cons "." load-path))
(byte-compile-file "caml-xemacs.el")
(byte-compile-file "caml-emacs.el")
(byte-compile-file "caml.el")
(byte-compile-file "inf-caml.el")
(byte-compile-file "caml-help.el")
(byte-compile-file "camldebug.el"))'
emacs -batch -eval "${COMPILECMD}"
}
src_install() {
elisp-install ${PN} *.el *.elc
elisp-site-file-install ${FILESDIR}/50ocaml-mode-gentoo.el
}
pkg_postinst() {
elisp-site-regen
}
pkg_postrm() {
elisp-site-regen
}
|