Commit: 1d76a4420a953658a729d3a5fb05a0f81797ae68 Parent: 236d68c5899f747a134cf0eee8a8cab589029dc8 Author: Randy Palamar Date: Tue, 8 Aug 2023 23:12:10 -0600 add app-editors/vis that only installs deps Diffstat:
A | app-editors/vis/vis-0.8-r99.ebuild | | | 51 | +++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 51 insertions(+), 0 deletions(-)
diff --git a/app-editors/vis/vis-0.8-r99.ebuild b/app-editors/vis/vis-0.8-r99.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-2 lua5-3 lua5-4 ) + +inherit lua-single optfeature + +KEYWORDS="~amd64 ~arm ~riscv ~x86" + +DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor (dependencies only)" +HOMEPAGE="https://github.com/martanne/vis" +SLOT="0" +IUSE="+ncurses +lua selinux static test tre" +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )" + +# - Known to also work with NetBSD curses +# lpeg: https://github.com/martanne/vis-test/issues/28 +DEPEND="static? ( + dev-libs/libtermkey[static-libs] + sys-apps/acl[static-libs] + ncurses? ( sys-libs/ncurses:0=[static-libs] ) + ) + !static? ( + dev-libs/libtermkey + sys-apps/acl + ncurses? ( sys-libs/ncurses:0= ) + ) + lua? ( ${LUA_DEPS} ) + tre? ( dev-libs/tre ) + test? ( + $(lua_gen_cond_dep 'dev-lua/lpeg[${LUA_USEDEP}]') + $(lua_gen_cond_dep 'dev-lua/busted[${LUA_USEDEP}]') + )" +RDEPEND="${DEPEND} + app-eselect/eselect-vi" + +update_symlinks() { + einfo "Calling eselect vi update --if-unset" + eselect vi update --if-unset +} + +pkg_postrm() { + update_symlinks +} + +pkg_postinst() { + update_symlinks + optfeature "syntax highlighting support" dev-lua/lpeg +}