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 13, 2023
1 parent ab073a6 commit 82a4700
Show file tree
Hide file tree
Showing 6 changed files with 209 additions and 43 deletions.
42 changes: 36 additions & 6 deletions sys-devel/llvm-common/llvm-common-14.0.6.ebuild
Original file line number Diff line number Diff line change
@@ -1,28 +1,58 @@
# 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 )
"

LLVM_COMPONENTS=( llvm/utils/vim )
LLVM_COMPONENTS=( llvm/utils )
llvm.org_set_globals

SITEFILE="50${PN}-gentoo.el"

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-common emacs/llvm-mode.el
elisp-install llvm-common emacs/tablegen-mode.el

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

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

pkg_postrm() {
use emacs && elisp-site-regen
}
40 changes: 35 additions & 5 deletions sys-devel/llvm-common/llvm-common-15.0.7.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,56 @@

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

LLVM_COMPONENTS=( llvm/utils/vim )
LLVM_COMPONENTS=( llvm/utils )
llvm.org_set_globals

SITEFILE="50${PN}-gentoo.el"

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-common emacs/llvm-mode.el
elisp-install llvm-common emacs/tablegen-mode.el

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

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

pkg_postrm() {
use emacs && elisp-site-regen
}
40 changes: 35 additions & 5 deletions sys-devel/llvm-common/llvm-common-16.0.5.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,56 @@

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

LLVM_COMPONENTS=( llvm/utils/vim )
LLVM_COMPONENTS=( llvm/utils )
llvm.org_set_globals

SITEFILE="50${PN}-gentoo.el"

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-common emacs/llvm-mode.el
elisp-install llvm-common emacs/tablegen-mode.el

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

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

pkg_postrm() {
use emacs && elisp-site-regen
}
50 changes: 33 additions & 17 deletions sys-devel/llvm-common/llvm-common-16.0.6.ebuild
Original file line number Diff line number Diff line change
@@ -1,28 +1,44 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

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

RDEPEND="
!sys-devel/llvm:0
"
BDEPEND="
emacs? ( app-editors/emacs )
"

LLVM_COMPONENTS=( llvm/utils/vim )
LLVM_COMPONENTS=( llvm/utils )
llvm.org_set_globals

SITEFILE="50${PN}-gentoo.el"

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-common emacs/llvm-mode.el
elisp-install llvm-common emacs/tablegen-mode.el

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

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

pkg_postrm() {
use emacs && elisp-site-regen
}
40 changes: 35 additions & 5 deletions sys-devel/llvm-common/llvm-common-17.0.0.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,56 @@

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

LLVM_COMPONENTS=( llvm/utils/vim )
LLVM_COMPONENTS=( llvm/utils )
llvm.org_set_globals

SITEFILE="50${PN}-gentoo.el"

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-common emacs/llvm-mode.el
elisp-install llvm-common emacs/tablegen-mode.el

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

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

pkg_postrm() {
use emacs && elisp-site-regen
}
40 changes: 35 additions & 5 deletions sys-devel/llvm-common/llvm-common-17.0.0_pre20230705.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,56 @@

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

LLVM_COMPONENTS=( llvm/utils/vim )
LLVM_COMPONENTS=( llvm/utils )
llvm.org_set_globals

SITEFILE="50${PN}-gentoo.el"

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-common emacs/llvm-mode.el
elisp-install llvm-common emacs/tablegen-mode.el

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

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

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

0 comments on commit 82a4700

Please sign in to comment.