blob: e16d1bbb535cf3744bb732635a185a5111cee533 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/ocaml-mode/ocaml-mode-3.08.1.ebuild,v 1.2 2005/01/01 13:55:42 eradicator 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.bz2"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
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-types.el")
(byte-compile-file "caml-hilit.el")
(byte-compile-file "caml-font.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
}
|