mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
app-emacs/compat: drop old 30.1.0.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
parent
3b3635eba2
commit
a080e89166
@ -1,2 +1 @@
|
||||
DIST compat-30.1.0.0.tar.gz 143888 BLAKE2B 095e3a85278d5b212e54ad39d027333a03bb176fe599f49160e1286c322318c0d46b6a80f70f7b0a58426300c1fdc0b4bfaf2ad790ac8b716e87f525ad10257f SHA512 e95f159d69446d2ea0a21a3a993343de4b38f1f754a2fbc742ac53507baca45000476c6f3385d5b2ab107596ae501b8da3467a10db62465fa00e8c4ce620d4cc
|
||||
DIST compat-30.1.0.1.tar.gz 143977 BLAKE2B 9142e0cbb1e0fc4c0f76787b5daa67977bb3dc644c6634679dd00c3428fc3f4a3f98d4b59fe6f5bbaa2747507b2ec4c84f98a0f0372dd8bc5e52151d22cd0ca4 SHA512 ae68489643c49bf669d06efb339f1bd402a8e50677c4eaa474d0c9c3721cd2bbd41c9479f82ae87c37cdcdcf95c98ae6791656c1a3d36b8a9edbe4c9a1acd507
|
||||
|
||||
@ -1,67 +0,0 @@
|
||||
# Copyright 1999-2025 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_prepare() {
|
||||
elisp_src_prepare
|
||||
|
||||
# Skip failing test.
|
||||
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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user