mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
app-emacs/compat: bump to 31.0.0.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST compat-30.1.0.1.tar.gz 143977 BLAKE2B 9142e0cbb1e0fc4c0f76787b5daa67977bb3dc644c6634679dd00c3428fc3f4a3f98d4b59fe6f5bbaa2747507b2ec4c84f98a0f0372dd8bc5e52151d22cd0ca4 SHA512 ae68489643c49bf669d06efb339f1bd402a8e50677c4eaa474d0c9c3721cd2bbd41c9479f82ae87c37cdcdcf95c98ae6791656c1a3d36b8a9edbe4c9a1acd507
|
||||
DIST compat-31.0.0.0.gh.tar.gz 142944 BLAKE2B 38229f5a4540e35894d8fc461fdc5047bad1a3e6439188d5ef409b8985d37248984fbbd03e865ea4ba0e6588ce728e917d9ab40ab356dd7de428300bf0de4d36 SHA512 00b727c61c5c015826220eb123355f3ccb29e62f52ecd69a7e579e586d71efaa4cd25c4c2227c5c9cca7fa9d9d63bb07054a702608c74a48c5b3ffc498a20358
|
||||
DIST compat-31.0.0.1.gh.tar.gz 142694 BLAKE2B bf81c061f32aa7e9c3be4564e801f3e0ee529a85aa70fb78a3752684407a3c1b740a0347363b9eb2935fb2c4646a6ff2ffdb76856eebc511c68b290a8135641d SHA512 80ea93e8885d0189d4c40e5408c2ac45da7fc22822b45d73eede72eb22a4e2bd1f7e70f6ef2f0138ae065b8172cc4d8a5f549223a59cca9c5ffc3ee32126a11b
|
||||
|
||||
67
app-emacs/compat/compat-31.0.0.1.ebuild
Normal file
67
app-emacs/compat/compat-31.0.0.1.ebuild
Normal file
@@ -0,0 +1,67 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=9
|
||||
|
||||
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}"
|
||||
else
|
||||
SRC_URI="https://github.com/emacs-compat/${PN}/archive/${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
|
||||
BDEPEND="
|
||||
sys-apps/texinfo
|
||||
"
|
||||
|
||||
ELISP_TEXINFO="${PN}.texi"
|
||||
|
||||
src_prepare() {
|
||||
elisp_src_prepare
|
||||
|
||||
# Skip failing tests.
|
||||
local -a skip_tests=(
|
||||
compat-read-answer
|
||||
compat-read-multiple-choice
|
||||
)
|
||||
local skip_test=""
|
||||
for skip_test in "${skip_tests[@]}"; do
|
||||
sed -i "/${skip_test}/a (ert-skip nil)" ./compat-tests.el || die
|
||||
done
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm ./compat-tests.el || die
|
||||
|
||||
elisp_src_install
|
||||
}
|
||||
Reference in New Issue
Block a user