app-xemacs/ebuild-mode: add 1.89

Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller
2026-10-23 18:55:32 +02:00
parent 0c657f3f77
commit 5b130ae767
2 changed files with 72 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
DIST ebuild-mode-1.85.tar.xz 53428 BLAKE2B afc036a88cd82d8c1a6a5cb307b72938a906c62a4cb8ac4dd15d3cbd812751d8bc21a527574a862e7a0211bf349546cb26623894f6e1fb26171f6167582275f7 SHA512 eb09e11e7ad24a51e0fe478079e479ef1fd6760e992e09743b99942fe698a757be854dc10f6f6bd3ffe81040ff67ce19bca271e1aca37989ba4f7368f4d79f35
DIST ebuild-mode-1.88.tar.xz 55788 BLAKE2B cae7b3b71d113c58a53dc5ddf6986c384dcdc14ac2abedcdddb3d337ad5570e6cff9fe3b4143d696ab088237ab6a6869fb56ae46c0bda13661698dc424b30b37 SHA512 66da1e0093325e9f2f95321d6aec90b349b27be5d9848ad05a30e07bcddbca829f76169316dfa42fb954d662be2a3e437f539eeac2b30e10a025628080948409
DIST ebuild-mode-1.89.tar.xz 56408 BLAKE2B 1f581d2578489e1515e85000d91a65c6251b79b73b71b9888863eab94785b67c24b18433a3fcd810e1db329bf94526823896226e2d461a3d575e451283be8166 SHA512 a70e5e076ba6ad17a2d21e90f5bde55d206cd346dda7b45dcc63a31ea50f8244697f272c9a78fa1d25767b1df3e044d907ada0ce8edf826ab2779a1e044e1c52
@@ -0,0 +1,71 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit optfeature
if [[ ${PV} = 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/ebuild-mode.git"
EGIT_BRANCH="master"
EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
S="${WORKDIR}/${PN}"
else
SRC_URI="https://distfiles.gentoo.org/pub/proj/emacs/${P}.tar.xz"
KEYWORDS="~amd64 ~hppa ~x86"
fi
DESCRIPTION="Emacs modes for editing ebuilds and other Gentoo specific files"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Emacs"
LICENSE="GPL-2+"
SLOT="0"
RDEPEND=">=app-editors/xemacs-21.5.35
app-xemacs/sh-script
app-xemacs/tty-format"
BDEPEND="${RDEPEND}
sys-apps/texinfo"
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
makeinfo --no-split ebuild-mode.texi || 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} ebuild-mode-kw-gen.el \
auto-autoloads.el
insinto /usr/lib/xemacs/site-packages/info
doins ebuild-mode.info
docinto xemacs # avoid file collisions with app-emacs/${PF}
dodoc README.org ChangeLog
}
pkg_postinst() {
optfeature "directory support" app-xemacs/dired
optfeature "ebuild commands support" sys-apps/portage
optfeature "additional development tools" dev-util/pkgdev
optfeature "ebuild QA utilities" dev-util/pkgcheck
}