1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit elisp-common toolchain-funcs
8 DESCRIPTION="An object prototype based language"
9 HOMEPAGE="http://isaacproject.u-strasbg.fr/li.html"
10 SRC_URI="http://isaacproject.u-strasbg.fr/download/${P}.tar.gz"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="vim-syntax emacs examples"
17 DEPEND="vim-syntax? ( app-editors/vim )
18 emacs? ( >=app-editors/emacs-23.1 )"
22 SITEFILE=50${PN}-gentoo.el
26 eapply "${FILESDIR}/${P}-makefile.patch"
27 rm lib/number/essai || die
31 emake CC="$(tc-getCC)"
33 use emacs elisp-compile editor/emacs/lisaac-mode.el
37 emake DESTDIR="${D}" DOC="/usr/share/doc/${PF}" install
39 gzip -d "${D}"/usr/share/man/man1/{lisaac,shorter}.1.gz || die
41 if use vim-syntax; then
42 insinto /usr/share/vim/vimfiles/syntax/
43 doins editor/vim/syntax/lisaac.vim
44 insinto /usr/share/vim/vimfiles/indent/
45 doins editor/vim/indent/lisaac.vim
49 elisp-install ${PN} editor/emacs/*.{el,elc}
50 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
54 dodir /usr/share/${PN}
55 cp -r example "${ED}"/usr/share/${PN}/examples || die
60 if use vim-syntax; then
61 elog "Add the following line to your vimrc if you want"
62 elog "to enable the lisaac support :"
64 elog "au BufNewFile,BufRead *.li setf lisaac"
67 use emacs && elisp-site-regen
71 use emacs && elisp-site-regen