app-emacs/ivy: bump to 0.15.0

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2025-02-28 14:21:10 +01:00
parent 9e156c1918
commit 85d3fd6437
3 changed files with 77 additions and 0 deletions

View File

@@ -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

View File

@@ -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")

View File

@@ -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
}