From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: llvm-core/clang-common/
Date: Fri, 03 Oct 2025 11:39:49 +0000 (UTC) [thread overview]
Message-ID: <1759491552.260bf947a8e105471d97f9c921540bdee968d8a0.mgorny@gentoo> (raw)
commit: 260bf947a8e105471d97f9c921540bdee968d8a0
Author: Alfred Persson Forsberg <cat <AT> catcream <DOT> org>
AuthorDate: Tue Sep 23 21:00:47 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Oct 3 11:39:12 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=260bf947
llvm-core/clang-common: install clang-format.el with IUSE=emacs
Signed-off-by: Alfred Persson Forsberg <cat <AT> catcream.org>
Part-of: https://github.com/gentoo/gentoo/pull/43898
Closes: https://github.com/gentoo/gentoo/pull/43898
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
...21.1.2.ebuild => clang-common-20.1.8-r1.ebuild} | 30 +++++++++++++++++++---
llvm-core/clang-common/clang-common-21.1.2.ebuild | 30 +++++++++++++++++++---
.../clang-common/clang-common-22.0.0.9999.ebuild | 30 +++++++++++++++++++---
.../clang-common-22.0.0_pre20251001.ebuild | 30 +++++++++++++++++++---
4 files changed, 108 insertions(+), 12 deletions(-)
diff --git a/llvm-core/clang-common/clang-common-21.1.2.ebuild b/llvm-core/clang-common/clang-common-20.1.8-r1.ebuild
similarity index 93%
copy from llvm-core/clang-common/clang-common-21.1.2.ebuild
copy to llvm-core/clang-common/clang-common-20.1.8-r1.ebuild
index 6ff3220636e5..668afb0e71de 100644
--- a/llvm-core/clang-common/clang-common-21.1.2.ebuild
+++ b/llvm-core/clang-common/clang-common-20.1.8-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit bash-completion-r1 llvm.org multilib
+inherit bash-completion-r1 elisp-common llvm.org multilib
DESCRIPTION="Common files shared between multiple slots of clang"
HOMEPAGE="https://llvm.org/"
@@ -13,7 +13,7 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~arm64-macos ~ppc-macos ~x64-macos"
IUSE="
default-compiler-rt default-libcxx default-lld
- bootstrap-prefix cet hardened llvm-libunwind
+ bootstrap-prefix cet emacs hardened llvm-libunwind
"
PDEPEND="
@@ -31,15 +31,21 @@ PDEPEND="
# enforce flags on clang-runtime as well to aid transition
PDEPEND+="
llvm-runtimes/clang-runtime[default-compiler-rt(-)?,default-libcxx(-)?,default-lld(-)?,llvm-libunwind(-)?]
+ emacs? ( >=app-editors/emacs-26.3:* )
"
IDEPEND="
!default-compiler-rt? ( sys-devel/gcc-config )
!default-libcxx? ( sys-devel/gcc-config )
"
+BDEPEND="
+ emacs? ( >=app-editors/emacs-26.3:* )
+"
-LLVM_COMPONENTS=( clang/utils )
+LLVM_COMPONENTS=( clang/utils clang/tools/clang-format )
llvm.org_set_globals
+SITEFILE="50clang-gentoo.el"
+
pkg_pretend() {
[[ ${CLANG_IGNORE_DEFAULT_RUNTIMES} ]] && return
@@ -143,6 +149,11 @@ doclang_cfg() {
esac
}
+src_compile() {
+ default
+ use emacs && elisp-compile ../tools/clang-format/clang-format.el
+}
+
src_install() {
newbashcomp bash-autocomplete.sh clang
@@ -300,6 +311,11 @@ src_install() {
-isysroot ${EPREFIX}/MacOSX.sdk
EOF
fi
+
+ if use emacs ; then
+ elisp-install clang ../tools/clang-format/clang-format.{el,elc}
+ elisp-make-site-file "${SITEFILE}" clang
+ fi
}
pkg_preinst() {
@@ -313,3 +329,11 @@ pkg_preinst() {
fi
fi
}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/llvm-core/clang-common/clang-common-21.1.2.ebuild b/llvm-core/clang-common/clang-common-21.1.2.ebuild
index 6ff3220636e5..668afb0e71de 100644
--- a/llvm-core/clang-common/clang-common-21.1.2.ebuild
+++ b/llvm-core/clang-common/clang-common-21.1.2.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit bash-completion-r1 llvm.org multilib
+inherit bash-completion-r1 elisp-common llvm.org multilib
DESCRIPTION="Common files shared between multiple slots of clang"
HOMEPAGE="https://llvm.org/"
@@ -13,7 +13,7 @@ SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~arm64-macos ~ppc-macos ~x64-macos"
IUSE="
default-compiler-rt default-libcxx default-lld
- bootstrap-prefix cet hardened llvm-libunwind
+ bootstrap-prefix cet emacs hardened llvm-libunwind
"
PDEPEND="
@@ -31,15 +31,21 @@ PDEPEND="
# enforce flags on clang-runtime as well to aid transition
PDEPEND+="
llvm-runtimes/clang-runtime[default-compiler-rt(-)?,default-libcxx(-)?,default-lld(-)?,llvm-libunwind(-)?]
+ emacs? ( >=app-editors/emacs-26.3:* )
"
IDEPEND="
!default-compiler-rt? ( sys-devel/gcc-config )
!default-libcxx? ( sys-devel/gcc-config )
"
+BDEPEND="
+ emacs? ( >=app-editors/emacs-26.3:* )
+"
-LLVM_COMPONENTS=( clang/utils )
+LLVM_COMPONENTS=( clang/utils clang/tools/clang-format )
llvm.org_set_globals
+SITEFILE="50clang-gentoo.el"
+
pkg_pretend() {
[[ ${CLANG_IGNORE_DEFAULT_RUNTIMES} ]] && return
@@ -143,6 +149,11 @@ doclang_cfg() {
esac
}
+src_compile() {
+ default
+ use emacs && elisp-compile ../tools/clang-format/clang-format.el
+}
+
src_install() {
newbashcomp bash-autocomplete.sh clang
@@ -300,6 +311,11 @@ src_install() {
-isysroot ${EPREFIX}/MacOSX.sdk
EOF
fi
+
+ if use emacs ; then
+ elisp-install clang ../tools/clang-format/clang-format.{el,elc}
+ elisp-make-site-file "${SITEFILE}" clang
+ fi
}
pkg_preinst() {
@@ -313,3 +329,11 @@ pkg_preinst() {
fi
fi
}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/llvm-core/clang-common/clang-common-22.0.0.9999.ebuild b/llvm-core/clang-common/clang-common-22.0.0.9999.ebuild
index 4f0d35918328..163c1c4f6814 100644
--- a/llvm-core/clang-common/clang-common-22.0.0.9999.ebuild
+++ b/llvm-core/clang-common/clang-common-22.0.0.9999.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit bash-completion-r1 llvm.org multilib
+inherit bash-completion-r1 elisp-common llvm.org multilib
DESCRIPTION="Common files shared between multiple slots of clang"
HOMEPAGE="https://llvm.org/"
@@ -12,7 +12,7 @@ LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
SLOT="0"
IUSE="
default-compiler-rt default-libcxx default-lld
- bootstrap-prefix cet hardened llvm-libunwind
+ bootstrap-prefix cet emacs hardened llvm-libunwind
"
PDEPEND="
@@ -30,15 +30,21 @@ PDEPEND="
# enforce flags on clang-runtime as well to aid transition
PDEPEND+="
llvm-runtimes/clang-runtime[default-compiler-rt(-)?,default-libcxx(-)?,default-lld(-)?,llvm-libunwind(-)?]
+ emacs? ( >=app-editors/emacs-26.3:* )
"
IDEPEND="
!default-compiler-rt? ( sys-devel/gcc-config )
!default-libcxx? ( sys-devel/gcc-config )
"
+BDEPEND="
+ emacs? ( >=app-editors/emacs-26.3:* )
+"
-LLVM_COMPONENTS=( clang/utils )
+LLVM_COMPONENTS=( clang/utils clang/tools/clang-format )
llvm.org_set_globals
+SITEFILE="50clang-gentoo.el"
+
pkg_pretend() {
[[ ${CLANG_IGNORE_DEFAULT_RUNTIMES} ]] && return
@@ -142,6 +148,11 @@ doclang_cfg() {
esac
}
+src_compile() {
+ default
+ use emacs && elisp-compile ../tools/clang-format/clang-format.el
+}
+
src_install() {
newbashcomp bash-autocomplete.sh clang
@@ -299,6 +310,11 @@ src_install() {
-isysroot ${EPREFIX}/MacOSX.sdk
EOF
fi
+
+ if use emacs ; then
+ elisp-install clang ../tools/clang-format/clang-format.{el,elc}
+ elisp-make-site-file "${SITEFILE}" clang
+ fi
}
pkg_preinst() {
@@ -312,3 +328,11 @@ pkg_preinst() {
fi
fi
}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/llvm-core/clang-common/clang-common-22.0.0_pre20251001.ebuild b/llvm-core/clang-common/clang-common-22.0.0_pre20251001.ebuild
index 4f0d35918328..163c1c4f6814 100644
--- a/llvm-core/clang-common/clang-common-22.0.0_pre20251001.ebuild
+++ b/llvm-core/clang-common/clang-common-22.0.0_pre20251001.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit bash-completion-r1 llvm.org multilib
+inherit bash-completion-r1 elisp-common llvm.org multilib
DESCRIPTION="Common files shared between multiple slots of clang"
HOMEPAGE="https://llvm.org/"
@@ -12,7 +12,7 @@ LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
SLOT="0"
IUSE="
default-compiler-rt default-libcxx default-lld
- bootstrap-prefix cet hardened llvm-libunwind
+ bootstrap-prefix cet emacs hardened llvm-libunwind
"
PDEPEND="
@@ -30,15 +30,21 @@ PDEPEND="
# enforce flags on clang-runtime as well to aid transition
PDEPEND+="
llvm-runtimes/clang-runtime[default-compiler-rt(-)?,default-libcxx(-)?,default-lld(-)?,llvm-libunwind(-)?]
+ emacs? ( >=app-editors/emacs-26.3:* )
"
IDEPEND="
!default-compiler-rt? ( sys-devel/gcc-config )
!default-libcxx? ( sys-devel/gcc-config )
"
+BDEPEND="
+ emacs? ( >=app-editors/emacs-26.3:* )
+"
-LLVM_COMPONENTS=( clang/utils )
+LLVM_COMPONENTS=( clang/utils clang/tools/clang-format )
llvm.org_set_globals
+SITEFILE="50clang-gentoo.el"
+
pkg_pretend() {
[[ ${CLANG_IGNORE_DEFAULT_RUNTIMES} ]] && return
@@ -142,6 +148,11 @@ doclang_cfg() {
esac
}
+src_compile() {
+ default
+ use emacs && elisp-compile ../tools/clang-format/clang-format.el
+}
+
src_install() {
newbashcomp bash-autocomplete.sh clang
@@ -299,6 +310,11 @@ src_install() {
-isysroot ${EPREFIX}/MacOSX.sdk
EOF
fi
+
+ if use emacs ; then
+ elisp-install clang ../tools/clang-format/clang-format.{el,elc}
+ elisp-make-site-file "${SITEFILE}" clang
+ fi
}
pkg_preinst() {
@@ -312,3 +328,11 @@ pkg_preinst() {
fi
fi
}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
next reply other threads:[~2025-10-03 11:39 UTC|newest]
Thread overview: 97+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-03 11:39 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-08 17:28 [gentoo-commits] repo/gentoo:master commit in: llvm-core/clang-common/ Michał Górny
2025-10-04 9:16 Michał Górny
2025-10-03 11:43 Michał Górny
2025-10-01 6:35 Michał Górny
2025-09-24 16:18 Michał Górny
2025-09-24 2:27 Michał Górny
2025-09-21 2:44 Michał Górny
2025-09-10 11:47 Michał Górny
2025-09-07 19:47 Michał Górny
2025-08-31 13:28 Michał Górny
2025-08-27 12:28 Michał Górny
2025-08-26 19:38 Michał Górny
2025-08-24 19:02 Arthur Zamarin
2025-08-24 18:51 Arthur Zamarin
2025-08-24 18:51 Arthur Zamarin
2025-08-21 8:22 Michał Górny
2025-08-21 8:18 Michał Górny
2025-08-16 13:51 Michał Górny
2025-08-12 17:09 Michał Górny
2025-08-09 9:47 Michał Górny
2025-08-02 10:29 Michał Górny
2025-07-29 19:04 Michał Górny
2025-07-26 19:53 Michał Górny
2025-07-22 9:20 Michał Górny
2025-07-20 14:15 Michał Górny
2025-07-20 8:24 Sam James
2025-07-19 6:50 Michał Górny
2025-07-13 20:03 Michał Górny
2025-07-09 18:49 Michał Górny
2025-06-28 15:03 Michał Górny
2025-06-28 14:55 Michał Górny
2025-06-14 14:24 Sam James
2025-06-14 11:02 Arthur Zamarin
2025-06-14 7:15 Michał Górny
2025-06-07 18:05 Michał Górny
2025-05-28 11:54 Michał Górny
2025-05-28 10:50 Michał Górny
2025-05-24 11:56 Michał Górny
2025-05-17 12:59 Michał Górny
2025-05-17 5:31 Michał Górny
2025-05-16 9:31 Michał Górny
2025-05-10 13:03 Michał Górny
2025-05-03 19:42 Michał Górny
2025-05-03 10:07 Michał Górny
2025-04-26 15:59 Michał Górny
2025-04-20 11:50 Michał Górny
2025-04-19 6:29 Michał Górny
2025-04-16 18:34 Michał Górny
2025-04-15 10:15 Michał Górny
2025-04-12 10:21 Michał Górny
2025-04-12 10:19 Arthur Zamarin
2025-04-12 8:59 Michał Górny
2025-04-12 4:57 Michał Górny
2025-04-05 12:24 Michał Górny
2025-04-03 11:29 Michał Górny
2025-03-29 10:27 Michał Górny
2025-03-23 13:46 Arthur Zamarin
2025-03-23 13:46 Arthur Zamarin
2025-03-22 10:43 Michał Górny
2025-03-20 16:50 Michał Górny
2025-03-17 20:13 Michał Górny
2025-03-16 17:41 Michał Górny
2025-03-11 14:56 Michał Górny
2025-03-05 13:30 Michał Górny
2025-03-05 13:24 Michał Górny
2025-03-05 13:05 Michał Górny
2025-03-05 10:13 Michał Górny
2025-03-05 6:25 Michał Górny
2025-03-01 12:58 Michał Górny
2025-03-01 8:34 Michał Górny
2025-02-26 18:55 Michał Górny
2025-02-25 14:03 Michał Górny
2025-02-22 15:19 Michał Górny
2025-02-15 7:19 Michał Górny
2025-02-13 7:53 Michał Górny
2025-02-11 11:29 Michał Górny
2025-02-08 11:51 Michał Górny
2025-02-07 20:08 Arthur Zamarin
2025-02-02 18:25 Michał Górny
2025-02-01 13:15 Michał Górny
2025-02-01 8:05 Michał Górny
2025-01-31 21:51 Michał Górny
2025-01-29 21:28 Sam James
2025-01-29 21:25 Sam James
2025-01-25 13:33 Michał Górny
2025-01-22 19:15 Michał Górny
2025-01-18 15:09 Michał Górny
2025-01-18 8:21 Michał Górny
2025-01-15 4:24 Michał Górny
2025-01-11 18:12 Michał Górny
2025-01-04 15:28 Michał Górny
2024-12-28 19:35 Michał Górny
2024-12-27 21:25 Michał Górny
2024-12-21 10:28 Michał Górny
2024-12-17 21:37 Michał Górny
2024-12-16 5:57 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1759491552.260bf947a8e105471d97f9c921540bdee968d8a0.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox