commit: 85d3fd6437c683b8bf23c025f792d7b5fdcda59b Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Fri Feb 28 13:21:10 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Fri Feb 28 13:42:19 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85d3fd64
app-emacs/ivy: bump to 0.15.0 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> app-emacs/ivy/Manifest | 1 + app-emacs/ivy/files/ivy-0.15.0-ivy-test.patch | 11 +++++ app-emacs/ivy/ivy-0.15.0.ebuild | 65 +++++++++++++++++++++++++++ 3 files changed, 77 insertions(+) diff --git a/app-emacs/ivy/Manifest b/app-emacs/ivy/Manifest index 74a1b19737be..10d7fe7addbc 100644 --- a/app-emacs/ivy/Manifest +++ b/app-emacs/ivy/Manifest @@ -1 +1,2 @@ DIST swiper-0.14.2.tar.gz 250059 BLAKE2B 8a5437726c729398a689266d138f271f5f7329f9c58613c4e0cfabd16b99421035c4b522d0ea4c60c0369362cb076bcae05ff4155d33d186172fd0ac2258495d SHA512 e125a3747abc4e6ecc98f539cf5dde11851d6c8a58b8988e165300bce7822fc91257cae09c973bd43435fb08dc24af9a1bd4b3e51083b45654b1605d80973d74 +DIST swiper-0.15.0.gh.tar.gz 255140 BLAKE2B becd63e0c291eccaf6b9520b0b50201aecbc5245128285384780ad8124294c3f7103ae7197db766b69c2ee3f32b5039fea47bd1303fab90d15ef8c109388e533 SHA512 c37c7482aae8d595181dab11ae613c52ae917c909033e3534ac5c78d090d1f67e2f36917a76b0dd4cfc8a339ed76c2480a7ca26a033b8be69dc3a128a0ccf00f diff --git a/app-emacs/ivy/files/ivy-0.15.0-ivy-test.patch b/app-emacs/ivy/files/ivy-0.15.0-ivy-test.patch new file mode 100644 index 000000000000..cf5dd7a4911f --- /dev/null +++ b/app-emacs/ivy/files/ivy-0.15.0-ivy-test.patch @@ -0,0 +1,11 @@ +--- a/ivy-test.el ++++ b/ivy-test.el +@@ -53,7 +53,7 @@ Intended as :after-while advice for `require'." + + (setq ivy-last (make-ivy-state)) + +-(ert-deftest ivy--lazy-load-ffap--ffap-url-p () ++(defun ivy--lazy-load-ffap--ffap-url-p () + (should (not (memq 'ffap ivy-features))) + (should (not (fboundp 'ffap-url-p))) + (should (string= (ivy-ffap-url-p "https://foo.org") diff --git a/app-emacs/ivy/ivy-0.15.0.ebuild b/app-emacs/ivy/ivy-0.15.0.ebuild new file mode 100644 index 000000000000..fd167e457832 --- /dev/null +++ b/app-emacs/ivy/ivy-0.15.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp + +DESCRIPTION="Generic completion mechanism for Emacs" +HOMEPAGE="https://github.com/abo-abo/swiper/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/abo-abo/swiper" +else + SRC_URI="https://github.com/abo-abo/swiper/archive/${PV}.tar.gz + -> swiper-${PV}.gh.tar.gz" + S="${WORKDIR}/swiper-${PV}" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + sys-apps/texinfo + test? ( + app-emacs/avy + app-emacs/hydra + ) +" + +PATCHES=( "${FILESDIR}/ivy-0.15.0-ivy-test.patch" ) + +DOCS=( CONTRIBUTING.org README.md doc/{Changelog,ivy-help,ivy}.org ) +SITEFILE="50${PN}-gentoo.el" + +# Main Ivy sources. Swiper, Counsel and Ivy extensions have their own packages. +EL_SOURCES=( colir.el ivy{,-overlay,-faces}.el ) + +elisp-enable-tests ert . + +src_prepare() { + elisp_src_prepare + + # Wipe "elpa.el" to prevent initialization of the "package" library. + echo "" > elpa.el || die "failed to wipe \"elpa.el\"" +} + +src_compile() { + elisp-compile "${EL_SOURCES[@]}" + + emake -C doc ivy.info +} + +src_install() { + elisp-install "${PN}" "${EL_SOURCES[@]}" ./*.elc + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + + doinfo ./doc/ivy.info + einstalldocs +}