diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-01-07 00:12:10 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-01-07 00:12:10 +0000 |
commit | 86bac35ed1b4f7018bc03aea5551f7664a2b9ff4 (patch) | |
tree | d5bd82287c897c86af756be3cc21ae7f247f56eb /app-emacs/compat/compat-29.1.0.1.ebuild | |
parent | 6c0d1528e3598898fd1026a3da35ffede0a1f14a (diff) |
gentoo auto-resync : 07:01:2023 - 00:12:09
Diffstat (limited to 'app-emacs/compat/compat-29.1.0.1.ebuild')
-rw-r--r-- | app-emacs/compat/compat-29.1.0.1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/app-emacs/compat/compat-29.1.0.1.ebuild b/app-emacs/compat/compat-29.1.0.1.ebuild new file mode 100644 index 000000000000..8bc70c870235 --- /dev/null +++ b/app-emacs/compat/compat-29.1.0.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=8a32564247ad3baee571252a2004c3d347962d01 +NEED_EMACS=24 + +inherit elisp + +DESCRIPTION="Compatibility libraries for Emacs" +HOMEPAGE="https://git.sr.ht/~pkal/compat/" +SRC_URI="https://git.sr.ht/~pkal/${PN}/archive/${H}.tar.gz + -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${H} + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~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 +} |