commit:     16d9ba664f44e562852a5fa4542aa1261f742c2d
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 16 07:59:47 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed Apr 16 08:16:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16d9ba66

app-emacs/yasnippet: bump to 0.14.2_p20250403

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

 app-emacs/yasnippet/Manifest                       |  1 +
 .../yasnippet/yasnippet-0.14.2_p20250403.ebuild    | 63 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/app-emacs/yasnippet/Manifest b/app-emacs/yasnippet/Manifest
index 3a4c0c74499e..357bc8806e14 100644
--- a/app-emacs/yasnippet/Manifest
+++ b/app-emacs/yasnippet/Manifest
@@ -1 +1,2 @@
 DIST yasnippet-0.14.1_p20240406.tar.gz 581059 BLAKE2B 
44ae910a495ba7c507ef1316cc358116ed984af69314316ae7a78c41ae6f84c4406e0959848f229c9546240c98d01e99d1accb5e9b6b8aeed3a7191f9ab918d4
 SHA512 
6aca3aef7b4a4b6cc03a7926fa6203758b1124c92e906d3eb355f2ee8bee95e4ca2a8a8929b4e7837f8999b23e66dc68429bb4117dde90d92f21ddd76cbb1c70
+DIST yasnippet-0.14.2_p20250403.gh.tar.gz 581055 BLAKE2B 
665ef39506106c19fd9307d6a6f67ef5d91e611939e07348ed987b81039309166d7fddee9eec21583410dfb32c508fda20401a7ba66270cbc6c952e7424e0462
 SHA512 
7f63740c5c8d58e30c8ed308125d33afab25b5cada4e40309507688011448eb9dbb02735323ad9356e7aab0e070c5ebb0cb27610203885fb3054ad4b03d66bac

diff --git a/app-emacs/yasnippet/yasnippet-0.14.2_p20250403.ebuild 
b/app-emacs/yasnippet/yasnippet-0.14.2_p20250403.ebuild
new file mode 100644
index 000000000000..0a55651dca7d
--- /dev/null
+++ b/app-emacs/yasnippet/yasnippet-0.14.2_p20250403.ebuild
@@ -0,0 +1,63 @@
+# 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}" == *p20250403 ]] && 
COMMIT="2384fe1655c60e803521ba59a34c0a7e48a25d06"
+
+       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"
+
+SITEFILE="50${PN}-gentoo-0.13.0.el"
+
+elisp-enable-tests ert -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
+               dodoc -r ./doc/*
+       fi
+
+       dodoc CONTRIBUTING.md NEWS README.mdown
+
+       local 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."
+       readme.gentoo_create_doc
+}

Reply via email to