Skip to content

Commit

Permalink
sys-devel/llvm-common: add USE=emacs for llvm modes in utils/emacs
Browse files Browse the repository at this point in the history
Signed-off-by: Alfred Persson Forsberg <cat@catcream.org>
  • Loading branch information
alfredfo committed Jul 31, 2023
1 parent 148f21e commit ce9a21f
Show file tree
Hide file tree
Showing 7 changed files with 261 additions and 36 deletions.
43 changes: 37 additions & 6 deletions sys-devel/llvm-common/llvm-common-14.0.6.ebuild
@@ -1,28 +1,59 @@
# 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

if use emacs ; then
elisp-compile "${S}" emacs/llvm-mode.el
elisp-compile "${S}" emacs/tablegen-mode.el
fi
}

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/llvm-mode.el{,c}
elisp-install llvm emacs/tablegen-mode.el{,c}

elisp-make-site-file "${SITEFILE}"
fi
}

pkg_postinst() {
use emacs && elisp-site-regen
}

pkg_postrm() {
use emacs && elisp-site-regen
}
41 changes: 36 additions & 5 deletions sys-devel/llvm-common/llvm-common-15.0.7.ebuild
Expand Up @@ -3,26 +3,57 @@

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

if use emacs ; then
elisp-compile "${S}" emacs/llvm-mode.el
elisp-compile "${S}" emacs/tablegen-mode.el
fi
}

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/llvm-mode.el{,c}
elisp-install llvm emacs/tablegen-mode.el{,c}

elisp-make-site-file "${SITEFILE}"
fi
}

pkg_postinst() {
use emacs && elisp-site-regen
}

pkg_postrm() {
use emacs && elisp-site-regen
}
41 changes: 36 additions & 5 deletions sys-devel/llvm-common/llvm-common-16.0.6.ebuild
Expand Up @@ -3,26 +3,57 @@

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 ~loong ~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

if use emacs ; then
elisp-compile "${S}" emacs/llvm-mode.el
elisp-compile "${S}" emacs/tablegen-mode.el
fi
}

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/llvm-mode.el{,c}
elisp-install llvm emacs/tablegen-mode.el{,c}

elisp-make-site-file "${SITEFILE}"
fi
}

pkg_postinst() {
use emacs && elisp-site-regen
}

pkg_postrm() {
use emacs && elisp-site-regen
}
43 changes: 38 additions & 5 deletions sys-devel/llvm-common/llvm-common-17.0.0.9999.ebuild
Expand Up @@ -3,26 +3,59 @@

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=""
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

if use emacs ; then
elisp-compile "${S}" emacs/llvm-mode.el
elisp-compile "${S}" emacs/tablegen-mode.el
elisp-compile "${S}" emacs/llvm-mir-mode.el
fi
}

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/llvm-mode.el{,c}
elisp-install llvm emacs/tablegen-mode.el{,c}
elisp-install llvm emacs/llvm-mir-mode.el{,c}

elisp-make-site-file "${SITEFILE}"
fi
}

pkg_postinst() {
use emacs && elisp-site-regen
}

pkg_postrm() {
use emacs && elisp-site-regen
}
43 changes: 38 additions & 5 deletions sys-devel/llvm-common/llvm-common-17.0.0_pre20230722.ebuild
Expand Up @@ -3,26 +3,59 @@

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=""
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

if use emacs ; then
elisp-compile "${S}" emacs/llvm-mode.el
elisp-compile "${S}" emacs/tablegen-mode.el
elisp-compile "${S}" emacs/llvm-mir-mode.el
fi
}

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/llvm-mode.el{,c}
elisp-install llvm emacs/tablegen-mode.el{,c}
elisp-install llvm emacs/llvm-mir-mode.el{,c}

elisp-make-site-file "${SITEFILE}"
fi
}

pkg_postinst() {
use emacs && elisp-site-regen
}

pkg_postrm() {
use emacs && elisp-site-regen
}
43 changes: 38 additions & 5 deletions sys-devel/llvm-common/llvm-common-17.0.0_rc1.ebuild
Expand Up @@ -3,26 +3,59 @@

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=""
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

if use emacs ; then
elisp-compile "${S}" emacs/llvm-mode.el
elisp-compile "${S}" emacs/tablegen-mode.el
elisp-compile "${S}" emacs/llvm-mir-mode.el
fi
}

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/llvm-mode.el{,c}
elisp-install llvm emacs/tablegen-mode.el{,c}
elisp-install llvm emacs/llvm-mir-mode.el{,c}

elisp-make-site-file "${SITEFILE}"
fi
}

pkg_postinst() {
use emacs && elisp-site-regen
}

pkg_postrm() {
use emacs && elisp-site-regen
}

0 comments on commit ce9a21f

Please sign in to comment.