# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Portable, simple and extensible C++ logging library"
HOMEPAGE="https://github.com/SergiusTheBest/plog"
SRC_URI="
	https://github.com/SergiusTheBest/plog/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

# some config failure with tests
RESTRICT="test"

src_configure() {
	local mycmakeargs=(
		# not necessary, downloads from internet as well
		#-DPLOG_BUILD_SAMPLES=0
		-DPLOG_INSTALL=1
	)

	cmake_src_configure
}