app-emacs/yasnippet: bump to 0.14.3_p20250604

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2025-06-05 15:05:15 +02:00
parent f699cd3840
commit a42f809992
2 changed files with 67 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST yasnippet-0.14.2_p20250403.gh.tar.gz 581055 BLAKE2B 665ef39506106c19fd9307d6a6f67ef5d91e611939e07348ed987b81039309166d7fddee9eec21583410dfb32c508fda20401a7ba66270cbc6c952e7424e0462 SHA512 7f63740c5c8d58e30c8ed308125d33afab25b5cada4e40309507688011448eb9dbb02735323ad9356e7aab0e070c5ebb0cb27610203885fb3054ad4b03d66bac
DIST yasnippet-0.14.3_p20250604.gh.tar.gz 580954 BLAKE2B 6a04985504bf8df5c3553b33186f46b1f9718add233e7628df3e230777b6dcd08c39c0de2c84bb5b69ed6f809f052b2494edc0f919c14b45eb2983d603765da1 SHA512 d941cc591544d8289d243728369447f0c9fae555f896aa199638dced3ef113ca96fe888a05613ede71261131bbecdd6ae982a368a7ea012adb6beb2b153c5d7e

View File

@@ -0,0 +1,66 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit elisp readme.gentoo-r1
DESCRIPTION="Yet another snippet extension for Emacs"
HOMEPAGE="https://joaotavora.github.io/yasnippet/
https://github.com/joaotavora/yasnippet/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/joaotavora/${PN}"
else
[[ "${PV}" == *p20250604 ]] && COMMIT="c1e6ff23e9af16b856c88dfaab9d3ad7b746ad37"
SRC_URI="https://github.com/joaotavora/${PN}/archive/${COMMIT}.tar.gz
-> ${P}.gh.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
fi
LICENSE="GPL-3+"
SLOT="0"
IUSE="doc"
DOCS=( CONTRIBUTING.md NEWS README.mdown )
SITEFILE="50${PN}-gentoo-0.13.0.el"
DOC_CONTENTS="Add the following to your ~/.emacs to use YASnippet:
\n\t(require 'yasnippet)
\n\t(yas-global-mode 1)
\n\nYASnippet no longer bundles snippets directly. Install the package
app-emacs/yasnippet-snippets for a collection of snippets."
elisp-enable-tests ert "${S}" -L . -l "./${PN}-tests.el"
src_prepare() {
elisp_src_prepare
# Skip failing test.
local -a skip_tests=(
yas-org-native-tab-in-source-block-emacs-lisp
)
local skip_test=""
for skip_test in "${skip_tests[@]}"; do
sed -i "/${skip_test}/a (ert-skip nil)" "./${PN}-tests.el" || die
done
}
src_install() {
elisp-install "${PN}" "./${PN}.el"{,c} "./${PN}-debug.el"{,c}
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
if use doc ; then
docompress -x "/usr/share/doc/${PF}/org"
docinto org
dodoc -r ./doc/*
fi
einstalldocs
readme.gentoo_create_doc
}