commit:     2e354a335d623d4c4c451d5365677ab35ccbc733
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  5 12:45:16 2026 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jan  5 15:54:31 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e354a33

app-xemacs/ebuild-mode: Depend on app-xemacs/tty-format

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-xemacs/ebuild-mode/ebuild-mode-1.80-r1.ebuild | 52 +++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/app-xemacs/ebuild-mode/ebuild-mode-1.80-r1.ebuild 
b/app-xemacs/ebuild-mode/ebuild-mode-1.80-r1.ebuild
new file mode 100644
index 000000000000..308c1c08728a
--- /dev/null
+++ b/app-xemacs/ebuild-mode/ebuild-mode-1.80-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit optfeature
+
+DESCRIPTION="Emacs modes for editing ebuilds and other Gentoo specific files"
+HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs";
+SRC_URI="https://dev.gentoo.org/~ulm/emacs/${P}.tar.xz";
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND=">=app-editors/xemacs-21.5.35
+       app-xemacs/sh-script
+       app-xemacs/tty-format"
+BDEPEND="${RDEPEND}"
+
+EMACS="${EPREFIX}/usr/bin/xemacs"
+EMACSFLAGS="-batch -q -no-site-file"
+
+src_compile() {
+       ${EMACS} ${EMACSFLAGS} \
+               -eval "(add-to-list 'load-path nil)" \
+               -f batch-byte-compile \
+               ebuild-mode.el gentoo-newsitem-mode.el || die
+
+       ${EMACS} ${EMACSFLAGS} \
+               -eval "(setq autoload-package-name \"${PN}\")" \
+               -eval "(setq generated-autoload-file 
\"${S}/auto-autoloads.el\")" \
+               -l autoload -f batch-update-autoloads \
+               ebuild-mode.el gentoo-newsitem-mode.el || die
+}
+
+src_test() {
+       emake check EMACS="${EMACS}" EMACSFLAGS="${EMACSFLAGS}"
+}
+
+src_install() {
+       insinto /usr/lib/xemacs/site-packages/lisp/${PN}
+       doins ebuild-mode.{el,elc} ebuild-mode-keywords.el \
+               gentoo-newsitem-mode.{el,elc}
+       doins auto-autoloads.el
+}
+
+pkg_postinst() {
+       optfeature "ebuild commands support" sys-apps/portage
+       optfeature "additional development tools" dev-util/pkgdev
+       optfeature "ebuild QA utilities" dev-util/pkgcheck
+}

Reply via email to