mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-11 00:07:51 +03:00
42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PATCHSET="${P}-qt6.tar.xz"
|
|
inherit cmake
|
|
|
|
DESCRIPTION="C++ port of the Log for Java (log4j) logging library"
|
|
HOMEPAGE="https://log4cplus.sourceforge.io/ https://github.com/log4cplus/log4cplus"
|
|
SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}-stable/${PV}/${P}.tar.xz
|
|
https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
|
|
|
|
LICENSE="|| ( Apache-2.0 BSD-2 )"
|
|
SLOT="0/9"
|
|
KEYWORDS="amd64 arm arm64 ~ppc64 ~riscv ~x86"
|
|
IUSE="explicit-initialization iconv qt6 server test threads"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
iconv? ( virtual/libiconv )
|
|
qt6? ( dev-qt/qtbase:6 )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
PATCHES=( "${WORKDIR}"/${PATCHSET/.tar.xz/} )
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DLOG4CPLUS_BUILD_LOGGINGSERVER=$(usex server)
|
|
-DWITH_UNIT_TESTS=$(usex test)
|
|
-DLOG4CPLUS_BUILD_TESTING=$(usex test)
|
|
-DLOG4CPLUS_ENABLE_THREAD_POOL=$(usex threads)
|
|
-DLOG4CPLUS_REQUIRE_EXPLICIT_INITIALIZATION=$(usex explicit-initialization)
|
|
-DWITH_ICONV=$(usex iconv)
|
|
-DLOG4CPLUS_QT5=OFF
|
|
-DLOG4CPLUS_QT6=$(usex qt6)
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|