diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-21 01:00:11 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-21 01:00:11 +0000 |
commit | ee93fbc2bb111cf895ae00cc1877c68f0eafaf2a (patch) | |
tree | f4cdf4b4814dfa35e701a066e3bc3c50f6afd7cf /app-emacs/compat/compat-29.1.4.5.ebuild | |
parent | dbd6eaafcce6a59fa9b3323124c38fa17aa88e26 (diff) |
gentoo auto-resync : 21:03:2024 - 01:00:11
Diffstat (limited to 'app-emacs/compat/compat-29.1.4.5.ebuild')
-rw-r--r-- | app-emacs/compat/compat-29.1.4.5.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app-emacs/compat/compat-29.1.4.5.ebuild b/app-emacs/compat/compat-29.1.4.5.ebuild new file mode 100644 index 000000000000..0de9f6e50e90 --- /dev/null +++ b/app-emacs/compat/compat-29.1.4.5.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 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/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/emacs-compat/${PN}.git" +else + SRC_URI="https://github.com/emacs-compat/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" + +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 +} |