dev-lang/lua: use optfeature for app-emacs/lua-mode

The typo in 54c7ad6dde83e741d65b055aefa2ae4067928054 pretty
much justifies this (i.e. don't choose a complicated
solution when a simple one will do), as the previous
thing never worked.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-08-31 19:28:40 +01:00
parent bfb3746ac8
commit 3ed76cdb3d
3 changed files with 6 additions and 18 deletions

View File

@@ -3,7 +3,7 @@
EAPI=7
inherit portability toolchain-funcs
inherit optfeature portability toolchain-funcs
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
HOMEPAGE="https://www.lua.org/"
@@ -141,9 +141,5 @@ src_test() {
pkg_postinst() {
eselect lua set --if-unset "${PN}${SLOT}"
if has_version "app-editors/emacs"; then
if ! has_version "app-emacs/lua-mode"; then
einfo "Install app-emacs/lua-mode for lua support for emacs"
fi
fi
optfeature "Lua support for Emacs" app-emacs/lua-mode
}

View File

@@ -3,7 +3,7 @@
EAPI=7
inherit autotools portability toolchain-funcs
inherit autotools optfeature portability toolchain-funcs
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
HOMEPAGE="https://www.lua.org/"
@@ -183,9 +183,5 @@ src_test() {
pkg_postinst() {
eselect lua set --if-unset "${PN}${SLOT}"
if has_version "app-editors/emacs"; then
if ! has_version "app-emacs/lua-mode"; then
einfo "Install app-emacs/lua-mode for lua support for emacs"
fi
fi
optfeature "Lua support for Emacs" app-emacs/lua-mode
}

View File

@@ -3,7 +3,7 @@
EAPI=7
inherit autotools portability toolchain-funcs
inherit autotools optfeature portability toolchain-funcs
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
HOMEPAGE="https://www.lua.org/"
@@ -180,9 +180,5 @@ src_test() {
pkg_postinst() {
eselect lua set --if-unset "${PN}${SLOT}"
if has_version "app-editors/emacs"; then
if ! has_version "app-emacs/lua-mode"; then
einfo "Install app-emacs/lua-mode for lua support for emacs"
fi
fi
optfeature "Lua support for Emacs" app-emacs/lua-mode
}