mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-emacs/emacs-jabber: Improve feature test in pkg_setup
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
@@ -26,19 +26,20 @@ SITEFILE="50${PN}-gentoo-0.11.0.el"
|
||||
pkg_setup() {
|
||||
elisp-check-emacs-version
|
||||
|
||||
local i feat=(
|
||||
local i missing feat=(
|
||||
dynamic-loading "(fboundp 'module-load)"
|
||||
sqlite "(sqlite-available-p)"
|
||||
)
|
||||
|
||||
for (( i=0; i<${#feat[@]}; i+=2 )); do
|
||||
if [[ $(${EMACS} ${EMACSFLAGS} --eval "(princ ${feat[i+1]})") != t ]]
|
||||
then
|
||||
eerror "${CATEGORY}/${PN} needs ${feat[i]} support in Emacs."
|
||||
eerror "Emerge app-editors/emacs with USE=\"${feat[i]}\"."
|
||||
die "Missing ${feat[i]} support"
|
||||
fi
|
||||
[[ $(${EMACS} ${EMACSFLAGS} --eval "(princ ${feat[i+1]})") = t ]] \
|
||||
|| missing+="${missing:+ }${feat[i]}"
|
||||
done
|
||||
if [[ -n ${missing} ]]; then
|
||||
eerror "${CATEGORY}/${PN} needs ${missing// / and } support in Emacs"
|
||||
eerror "Emerge app-editors/emacs with USE=\"${missing}\""
|
||||
die "Emacs misses at least one feature"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
|
||||
Reference in New Issue
Block a user