commit:     1eac0474db99a947a7dfd0796ee831db569197dd
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  7 21:33:38 2026 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed Jan  7 22:30:19 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eac0474

dev-lang/lfe: fix emacs auto-loading

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-lang/lfe/files/70lfe-gentoo-r1.el                  |  2 ++
 dev-lang/lfe/{lfe-2.2.0.ebuild => lfe-2.2.0-r1.ebuild} | 16 +++++++++++-----
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/dev-lang/lfe/files/70lfe-gentoo-r1.el 
b/dev-lang/lfe/files/70lfe-gentoo-r1.el
new file mode 100644
index 000000000000..b9d2481036f5
--- /dev/null
+++ b/dev-lang/lfe/files/70lfe-gentoo-r1.el
@@ -0,0 +1,2 @@
+(add-to-list 'load-path "@SITELISP@")
+(load "lfe-autoloads" nil t)

diff --git a/dev-lang/lfe/lfe-2.2.0.ebuild b/dev-lang/lfe/lfe-2.2.0-r1.ebuild
similarity index 80%
rename from dev-lang/lfe/lfe-2.2.0.ebuild
rename to dev-lang/lfe/lfe-2.2.0-r1.ebuild
index fc98de319c97..89482e33411e 100644
--- a/dev-lang/lfe/lfe-2.2.0.ebuild
+++ b/dev-lang/lfe/lfe-2.2.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -6,16 +6,18 @@ EAPI=8
 inherit elisp-common toolchain-funcs
 
 DESCRIPTION="Lisp-flavoured Erlang, a lisp syntax front-end to the Erlang 
compiler"
-HOMEPAGE="http://lfe.github.io/
+HOMEPAGE="https://lfe.io/
        https://github.com/rvirding/lfe/";
 
 if [[ ${PV} == *9999* ]] ; then
        inherit git-r3
+
        EGIT_BRANCH="develop"
-       EGIT_REPO_URI="https://github.com/rvirding/${PN}.git";
+       EGIT_REPO_URI="https://github.com/rvirding/${PN}";
 else
        SRC_URI="https://github.com/rvirding/${PN}/archive/${PV}.tar.gz
                -> ${P}.tar.gz"
+
        KEYWORDS="~amd64 ~x86"
 fi
 
@@ -31,12 +33,16 @@ BDEPEND="
        ${RDEPEND}
 "
 
-SITEFILE="70${PN}-gentoo.el"
+SITEFILE="70${PN}-gentoo-r1.el"
 
 src_compile() {
        emake HOSTCC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" compile
 
-       use emacs && emake emacs
+       if use emacs ; then
+               cd emacs || die
+               elisp-compile ./*.el
+               elisp-make-autoload-file
+       fi
 }
 
 src_install() {

Reply via email to