mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-29 17:41:05 +02:00
dev-util/cmocka: Sync with gentoo
It's from gentoo commit 367c2cf9152ff1d5b0ff5adbc5a085838beebd9c.
This commit is contained in:
parent
169c28bff9
commit
a77cc90837
@ -1,8 +1,9 @@
|
|||||||
# Copyright 1999-2019 Gentoo Authors
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
|
CMAKE_ECLASS=cmake
|
||||||
inherit cmake-multilib
|
inherit cmake-multilib
|
||||||
|
|
||||||
DESCRIPTION="Unit testing framework for C"
|
DESCRIPTION="Unit testing framework for C"
|
||||||
@ -11,8 +12,9 @@ SRC_URI="https://cmocka.org/files/1.1/${P}.tar.xz"
|
|||||||
|
|
||||||
LICENSE="Apache-2.0"
|
LICENSE="Apache-2.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
|
||||||
IUSE="doc examples static-libs test"
|
IUSE="doc examples static-libs test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
doc? ( app-doc/doxygen[dot] )
|
doc? ( app-doc/doxygen[dot] )
|
||||||
@ -23,16 +25,16 @@ multilib_src_configure() {
|
|||||||
-DWITH_EXAMPLES=$(usex examples)
|
-DWITH_EXAMPLES=$(usex examples)
|
||||||
-DWITH_STATIC_LIB=$(usex static-libs)
|
-DWITH_STATIC_LIB=$(usex static-libs)
|
||||||
-DUNIT_TESTING=$(usex test)
|
-DUNIT_TESTING=$(usex test)
|
||||||
$(multilib_is_native_abi && cmake-utils_use_find_package doc Doxygen \
|
$(multilib_is_native_abi && cmake_use_find_package doc Doxygen \
|
||||||
|| echo -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON)
|
|| echo -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON)
|
||||||
)
|
)
|
||||||
|
|
||||||
cmake-utils_src_configure
|
cmake_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_compile() {
|
multilib_src_compile() {
|
||||||
cmake-utils_src_compile
|
cmake_src_compile
|
||||||
multilib_is_native_abi && use doc && cmake-utils_src_compile docs
|
multilib_is_native_abi && use doc && cmake_src_compile docs
|
||||||
}
|
}
|
||||||
|
|
||||||
multilib_src_install() {
|
multilib_src_install() {
|
||||||
@ -40,5 +42,5 @@ multilib_src_install() {
|
|||||||
local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
|
local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cmake-utils_src_install
|
cmake_src_install
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>kde@gentoo.org</email>
|
<email>kde@gentoo.org</email>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user