mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
43 lines
910 B
Bash
43 lines
910 B
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake
|
|
|
|
DESCRIPTION="Zyan Core Library for C"
|
|
HOMEPAGE="https://github.com/zyantific/zycore-c"
|
|
SRC_URI="https://github.com/zyantific/zycore-c/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
if [[ ${PV} == 9999 ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/zyantific/zycore-c.git"
|
|
else
|
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
|
fi
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
IUSE="doc test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
BDEPEND="
|
|
doc? ( app-text/doxygen )
|
|
test? ( dev-cpp/gtest )
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/${PN}-1.5.2-build-documentation-only-when-requested.patch"
|
|
"${FILESDIR}/${PN}-1.5.2-bump-minimum-required-CMake-version.patch"
|
|
)
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DZYCORE_BUILD_SHARED_LIB=yes
|
|
-DZYCORE_BUILD_TESTS=$(usex test)
|
|
-DZYCORE_BUILD_DOCS=$(usex doc)
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|