# SPDX-License-Identifier: GPL-2.0 OR ISC
# Copyright 2020-2024 Jason André Charles Gantner
# Distributed under the terms of the ISC License

EAPI=8

DESCRIPTION="A program to control backlight (and other hardware lights)"
HOMEPAGE="https://github.com/JasonGantner/light"
SRC_URI="https://github.com/JasonGantner/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64"
IUSE="udev"

DEPEND="udev? ( virtual/udev )"
RDEPEND="${DEPEND}"

src_configure(){
	./autogen.sh
	econf $(use_with udev)
}