diff options
| author | Michał Górny <mgorny@gentoo.org> | 2024-12-11 12:28:46 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2024-12-11 12:53:23 +0100 |
| commit | 70ebd0f191056450222c7f5dd3f7caf098dfa849 (patch) | |
| tree | 6cdc6bdf4810f8862925e081c7257675b130a657 /llvm-core/llvm-common/llvm-common-15.0.7.ebuild | |
| parent | 6b5529ead21eb493aed90dbfbbcdc847453c2376 (diff) | |
| download | gentoo-70ebd0f191056450222c7f5dd3f7caf098dfa849.tar.gz gentoo-70ebd0f191056450222c7f5dd3f7caf098dfa849.tar.bz2 gentoo-70ebd0f191056450222c7f5dd3f7caf098dfa849.zip | |
Move {sys-devel → llvm-core}/llvm-common
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'llvm-core/llvm-common/llvm-common-15.0.7.ebuild')
| -rw-r--r-- | llvm-core/llvm-common/llvm-common-15.0.7.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/llvm-core/llvm-common/llvm-common-15.0.7.ebuild b/llvm-core/llvm-common/llvm-common-15.0.7.ebuild new file mode 100644 index 000000000000..4f115c8c9f98 --- /dev/null +++ b/llvm-core/llvm-common/llvm-common-15.0.7.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ) +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 vim/*/ + # some users may find it useful + 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 +} |
