guru/dev-cpp/easyloggingpp/easyloggingpp-9.97.0.ebuild
Kostadin Shishmanov 62e6533f02
dev-cpp/easyloggingpp: new package, add 9.97.0
Signed-off-by: Kostadin Shishmanov <kocelfc@tutanota.com>
2023-06-11 05:06:41 +03:00

33 lines
666 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="C++ logging library"
HOMEPAGE="https://github.com/abumq/easyloggingpp"
SRC_URI="https://github.com/abumq/easyloggingpp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="test? ( dev-cpp/gtest )"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/0001-Switch-CMake-build-system-from-C-11-to-C-14.patch"
"${FILESDIR}/disable-failing-tests.patch"
)
src_configure() {
local mycmakeargs+=(
-Dtest=$(usex test ON OFF)
)
cmake_src_configure
}