dev-lua/lua-wcwidth - 0.5 (guru)

Search

Install

Install this version:

emerge -a =dev-lua/lua-wcwidth-0.5

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-lua/lua-wcwidth-0.5

Or alternatively:

emerge --autounmask-write -a =dev-lua/lua-wcwidth-0.5

Package Information

Description:
Pure Lua implementation of the wcwidth() function
Homepage:
https://github.com/aperezdc/lua-wcwidth/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.5 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

LUA_COMPAT=( lua5-{1..3} luajit )

inherit lua

DESCRIPTION="Pure Lua implementation of the wcwidth() function"
HOMEPAGE="https://github.com/aperezdc/lua-wcwidth/"
SRC_URI="https://github.com/aperezdc/lua-wcwidth/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"

SLOT="0"

KEYWORDS="~amd64"

IUSE="test"

REQUIRED_USE="${LUA_REQUIRED_USE}"

DEPEND="${LUA_DEPS}"
RDEPEND="${DEPEND}"
BDEPEND="test? ( dev-lua/dromozoa-utf8[${LUA_USEDEP}] )"

lua_enable_tests busted

lua_src_install() {
	insinto "$(lua_get_lmod_dir)"
	doins wcwidth.lua
	insinto "$(lua_get_lmod_dir)"
	doins -r wcwidth
}

src_install() {
	lua_foreach_impl lua_src_install
	dodoc README.md CHANGELOG.md
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-lua/lua-wcwidth | euse -E <flag> -p dev-lua/lua-wcwidth | euse -D <flag> -p dev-lua/lua-wcwidth

Global/Standard Flags

Inherited Eclasses

lua

Dependencies

BDEPEND

test? ( dev-lua/dromozoa-utf8[] )

Manifest for 0.5

Type File Size Source URLs
DIST lua-wcwidth-0.5.tar.gz 9954 bytes https://github.com/aperezdc/lua-wcwidth/archive/refs/tags/v0.5.tar.gz