x11-libs/lain - 9999-r100 (benzene-overlay)

Search

Package Information

Description:
Layouts, asynchronous widgets and utilities for Awesome WM
Homepage:
https://github.com/lcpz/lain
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
9999-r100 8 ~amd64 ~arm ~ppc ~ppc64 ~x86 0
View Raw Ebuild
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

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

inherit git-r3 lua-single

DESCRIPTION="Layouts, asynchronous widgets and utilities for Awesome WM"
HOMEPAGE="https://github.com/lcpz/lain"
EGIT_REPO_URI="${HOMEPAGE}.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
IUSE="+curl test"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="!test? ( test )"

DEPEND="${LUA_DEPS}"
RDEPEND="${DEPEND}
	x11-wm/awesome[${LUA_SINGLE_USEDEP}]
	curl? ( net-misc/curl )
"
BDEPEND="virtual/pkgconfig
	test? (
		$(lua_gen_cond_dep 'dev-lua/busted[${LUA_USEDEP}]')
		${RDEPEND}
	)
"

src_test() {
	busted --lua=${ELUA} lain-scm-1.rockspec || die
}

src_install() {
	insinto $(lua_get_lmod_dir)/${PN}
	doins -r {icons,layout,util,widget,*.lua}
	einstalldocs
}

USE Flags

curl
Default: Enabled (+)

Dependencies

DEPEND

${LUA_DEPS}

RDEPEND

${LUA_DEPS}
	x11-wm/awesome[${LUA_SINGLE_USEDEP}]
	curl? ( net-misc/curl )

BDEPEND

virtual/pkgconfig
	test? (
		$(lua_gen_cond_dep 'dev-lua/busted[${LUA_USEDEP}]')
		${LUA_DEPS}
	x11-wm/awesome[${LUA_SINGLE_USEDEP}]
	curl? ( net-misc/curl )

	)