-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys-devel/llvm-common: add USE=emacs for llvm modes in utils/emacs
Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
- Loading branch information
Showing
9 changed files
with
280 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,54 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit llvm.org | ||
inherit elisp-common llvm.org | ||
|
||
DESCRIPTION="Common files shared between multiple slots of LLVM" | ||
HOMEPAGE="https://llvm.org/" | ||
|
||
LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" | ||
SLOT="0" | ||
KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv sparc x86 ~amd64-linux ~ppc-macos ~x64-macos" | ||
IUSE="emacs" | ||
|
||
RDEPEND=" | ||
!sys-devel/llvm:0 | ||
" | ||
BDEPEND=" | ||
emacs? ( >=app-editors/emacs-23.1:* ) | ||
" | ||
|
||
LLVM_COMPONENTS=( llvm/utils/vim ) | ||
LLVM_COMPONENTS=( llvm/utils ) | ||
llvm.org_set_globals | ||
|
||
SITEFILE="50llvm-gentoo.el" | ||
BYTECOMPFLAGS="-L emacs" | ||
|
||
src_compile() { | ||
default | ||
|
||
use emacs && elisp-compile emacs/*.el | ||
} | ||
|
||
src_install() { | ||
insinto /usr/share/vim/vimfiles | ||
doins -r */ | ||
doins -r vim/*/ | ||
# some users may find it useful | ||
newdoc README README.vim | ||
dodoc vimrc | ||
newdoc vim/README README.vim | ||
dodoc vim/vimrc | ||
|
||
if use emacs ; then | ||
elisp-install llvm emacs/*.{el,elc} | ||
elisp-make-site-file "${SITEFILE}" llvm | ||
fi | ||
} | ||
|
||
pkg_postinst() { | ||
use emacs && elisp-site-regen | ||
} | ||
|
||
pkg_postrm() { | ||
use emacs && elisp-site-regen | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.