mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
dev-lang/lisaac: port to EAPI=7
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="4"
|
||||
inherit versionator elisp-common eutils toolchain-funcs
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Lisaac is an object prototype based language"
|
||||
inherit elisp-common toolchain-funcs
|
||||
|
||||
DESCRIPTION="An object prototype based language"
|
||||
HOMEPAGE="http://isaacproject.u-strasbg.fr/li.html"
|
||||
SRC_URI="http://isaacproject.u-strasbg.fr/download/${P}.tar.gz"
|
||||
|
||||
@@ -14,29 +15,29 @@ KEYWORDS="~amd64 ~x86"
|
||||
IUSE="vim-syntax emacs examples"
|
||||
|
||||
DEPEND="vim-syntax? ( app-editors/vim )
|
||||
emacs? ( >=app-editors/emacs-23.1 )"
|
||||
emacs? ( >=app-editors/emacs-23.1 )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
SITEFILE=50${PN}-gentoo.el
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-makefile.patch"
|
||||
rm lib/number/essai
|
||||
default
|
||||
eapply "${FILESDIR}/${P}-makefile.patch"
|
||||
rm lib/number/essai || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)"
|
||||
|
||||
if use emacs; then
|
||||
elisp-compile editor/emacs/lisaac-mode.el \
|
||||
|| die "compiling emacs component failed."
|
||||
fi
|
||||
use emacs elisp-compile editor/emacs/lisaac-mode.el
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" DOC="/usr/share/doc/${PF}" install
|
||||
|
||||
gzip -d "${D}"/usr/share/man/man1/{lisaac,shorter}.1.gz || die
|
||||
|
||||
if use vim-syntax; then
|
||||
insinto /usr/share/vim/vimfiles/syntax/
|
||||
doins editor/vim/syntax/lisaac.vim
|
||||
@@ -45,15 +46,13 @@ src_install() {
|
||||
fi
|
||||
|
||||
if use emacs; then
|
||||
elisp-install ${PN} editor/emacs/*.{el,elc} \
|
||||
|| die "installing emacs coponent failed."
|
||||
elisp-site-file-install "${FILESDIR}"/${SITEFILE} \
|
||||
|| die "installing emacs site file failed"
|
||||
elisp-install ${PN} editor/emacs/*.{el,elc}
|
||||
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
dodir /usr/share/${PN}/
|
||||
cp -r example "${ED}"/usr/share/${PN}/examples
|
||||
dodir /usr/share/${PN}
|
||||
cp -r example "${ED}"/usr/share/${PN}/examples || die
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user