diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-11-13 13:16:04 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-11-13 13:38:00 +0100 |
commit | 3f36bd4d40e605b647fdb807474c080a6a89b427 (patch) | |
tree | 3e238c1fc553bfb9c66a3b2266f530cc67b3d308 /app-emacs/compat/compat-29.1.4.4.ebuild | |
parent | app-emacs/cider: bump to 1.11.1 (diff) | |
download | gentoo-3f36bd4d40e605b647fdb807474c080a6a89b427.tar.gz gentoo-3f36bd4d40e605b647fdb807474c080a6a89b427.tar.bz2 gentoo-3f36bd4d40e605b647fdb807474c080a6a89b427.zip |
app-emacs/compat: bump to 29.1.4.4
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/compat/compat-29.1.4.4.ebuild')
-rw-r--r-- | app-emacs/compat/compat-29.1.4.4.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app-emacs/compat/compat-29.1.4.4.ebuild b/app-emacs/compat/compat-29.1.4.4.ebuild new file mode 100644 index 000000000000..4c6643fbd200 --- /dev/null +++ b/app-emacs/compat/compat-29.1.4.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp + +DESCRIPTION="Compatibility libraries for Emacs" +HOMEPAGE="https://github.com/emacs-compat/compat/ + https://git.sr.ht/~pkal/compat/" +SRC_URI="https://github.com/emacs-compat/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" + +BDEPEND="sys-apps/texinfo" + +ELISP_TEXINFO="${PN}.texi" + +src_compile() { + emake compile ${PN}.info +} + +src_test() { + local has_json="$("${EMACS}" ${EMACSFLAGS} --eval "(princ (fboundp 'json-parse-string))")" + if [[ "${has_json}" != t ]] ; then + local line + while read line ; do + ewarn "${line}" + done <<-EOF + Your current Emacs version does not support native JSON parsing, + which is required for running tests of ${CATEGORY}/${PN}. + Emerge >=app-editors/emacs-27 with USE="json" and use "eselect emacs" + to select that version. + EOF + else + emake test + fi +} |