Skip to content

Commit

Permalink
app-editors/vis: Add lua support
Browse files Browse the repository at this point in the history
Mostly based on prior work comitted into ::lua repository

Closes: https://bugs.gentoo.org/752540
Signed-off-by: Haelwenn (lanodan) Monnier <[email protected]>
Closes: gentoo#18120
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
lanodan authored and juippis committed Dec 3, 2020
1 parent 87bf3a9 commit d381ac0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
10 changes: 7 additions & 3 deletions app-editors/vis/vis-0.6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
EAPI=7

MY_PTV=0.4
LUA_COMPAT=( lua5-2 lua5-3 )

inherit lua-single eutils

DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor"
HOMEPAGE="https://github.com/martanne/vis"
Expand All @@ -12,14 +15,13 @@ SRC_URI="https://github.com/martanne/vis/releases/download/v${PV}/${P}.tar.gz
LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="+ncurses selinux test tre"
IUSE="+ncurses +lua selinux test tre"
RESTRICT="!test? ( test )"

# - Known to also work with NetBSD curses
# - ::lua package done for using >=dev-lang/lua-5.2
# which is needed for syntax highlighting and settings but masked in ::gentoo
DEPEND="dev-libs/libtermkey
ncurses? ( sys-libs/ncurses:0= )
lua? ( ${LUA_DEPS} )
tre? ( dev-libs/tre:= )"
RDEPEND="${DEPEND}
app-eselect/eselect-vi"
Expand All @@ -44,6 +46,7 @@ src_configure() {
./configure \
--prefix="${EPREFIX}"/usr \
--docdir="${EPREFIX}"/usr/share/doc/${PF} \
$(use_enable lua) \
$(use_enable ncurses curses) \
$(use_enable selinux) \
$(use_enable tre) || die
Expand All @@ -60,4 +63,5 @@ pkg_postrm() {

pkg_postinst() {
update_symlinks
optfeature "syntax highlighting support" dev-lua/lpeg
}
11 changes: 7 additions & 4 deletions app-editors/vis/vis-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7
inherit git-r3
LUA_COMPAT=( lua5-2 lua5-3 )

inherit lua-single git-r3 eutils

DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor"
HOMEPAGE="https://github.com/martanne/vis"
EGIT_REPO_URI="https://github.com/martanne/vis.git"
LICENSE="ISC"
SLOT="0"
KEYWORDS=""
IUSE="+ncurses selinux test tre"
IUSE="+ncurses +lua selinux test tre"
RESTRICT="!test? ( test )"

# - Known to also work with NetBSD curses
# - ::lua package done for using >=dev-lang/lua-5.2
# which is needed for syntax highlighting and settings but masked in ::gentoo
DEPEND="dev-libs/libtermkey
ncurses? ( sys-libs/ncurses:0= )
lua? ( ${LUA_DEPS} )
tre? ( dev-libs/tre:= )"
RDEPEND="${DEPEND}
app-eselect/eselect-vi"
Expand All @@ -34,6 +35,7 @@ src_configure() {
./configure \
--prefix="${EPREFIX}"/usr \
--docdir="${EPREFIX}"/usr/share/doc/${PF} \
$(use_enable lua) \
$(use_enable ncurses curses) \
$(use_enable selinux) \
$(use_enable tre) || die
Expand All @@ -50,4 +52,5 @@ pkg_postrm() {

pkg_postinst() {
update_symlinks
optfeature "syntax highlighting support" dev-lua/lpeg
}
4 changes: 4 additions & 0 deletions profiles/base/package.use.mask
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ kde-apps/kipi-plugins vkontakte
# waiting for lua to be slotted
media-gfx/exact-image lua

# Haelwenn (lanodan) Monnier <[email protected]> (2020-11-03)
# Requires >=dev-lang/lua-5.2, which is still masked.
app-editors/vis lua

# Marek Szuba <[email protected]> (2020-10-12)
# Requires slotted Lua, which is still masked.
media-gfx/darktable system-lua
Expand Down

0 comments on commit d381ac0

Please sign in to comment.