summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-08-31 19:28:40 +0100
committerSam James <sam@gentoo.org>2022-08-31 19:29:13 +0100
commit3ed76cdb3dd2bd6171c4681a9efa478624ba0aab (patch)
treee9200fe244ba5f14a1c052979dc7bc1bcbee4ce4 /dev-lang
parentdev-lang/lua: fix emacs has_version (diff)
downloadgentoo-3ed76cdb3dd2bd6171c4681a9efa478624ba0aab.tar.gz
gentoo-3ed76cdb3dd2bd6171c4681a9efa478624ba0aab.tar.bz2
gentoo-3ed76cdb3dd2bd6171c4681a9efa478624ba0aab.zip
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>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/lua/lua-5.1.5-r109.ebuild8
-rw-r--r--dev-lang/lua/lua-5.3.6-r5.ebuild8
-rw-r--r--dev-lang/lua/lua-5.4.4-r2.ebuild8
3 files changed, 6 insertions, 18 deletions
diff --git a/dev-lang/lua/lua-5.1.5-r109.ebuild b/dev-lang/lua/lua-5.1.5-r109.ebuild
index 388c7d235653..2ea70e4d13bf 100644
--- a/dev-lang/lua/lua-5.1.5-r109.ebuild
+++ b/dev-lang/lua/lua-5.1.5-r109.ebuild
@@ -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
}
diff --git a/dev-lang/lua/lua-5.3.6-r5.ebuild b/dev-lang/lua/lua-5.3.6-r5.ebuild
index 205024f2f120..184897a102ea 100644
--- a/dev-lang/lua/lua-5.3.6-r5.ebuild
+++ b/dev-lang/lua/lua-5.3.6-r5.ebuild
@@ -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
}
diff --git a/dev-lang/lua/lua-5.4.4-r2.ebuild b/dev-lang/lua/lua-5.4.4-r2.ebuild
index 0ac972b9b8bc..1a424fc27bb1 100644
--- a/dev-lang/lua/lua-5.4.4-r2.ebuild
+++ b/dev-lang/lua/lua-5.4.4-r2.ebuild
@@ -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
}