diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-11 22:30:49 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-11 22:30:49 +0100 |
commit | 146120220e830d8902860e18cdb15b23c5b575b8 (patch) | |
tree | 1e3346a230a3c4a71944940ac918d70580459753 /dev-util/cmocka/cmocka-1.1.5-r1.ebuild | |
parent | 788bcc2dc1910a097d019f25e3e70dc7b4fdc903 (diff) |
gentoo auto-resync : 11:07:2023 - 22:30:49
Diffstat (limited to 'dev-util/cmocka/cmocka-1.1.5-r1.ebuild')
-rw-r--r-- | dev-util/cmocka/cmocka-1.1.5-r1.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-util/cmocka/cmocka-1.1.5-r1.ebuild b/dev-util/cmocka/cmocka-1.1.5-r1.ebuild new file mode 100644 index 000000000000..15f0abdd3156 --- /dev/null +++ b/dev-util/cmocka/cmocka-1.1.5-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake-multilib flag-o-matic + +DESCRIPTION="Unit testing framework for C" +HOMEPAGE="https://cmocka.org/" +SRC_URI="https://cmocka.org/files/$(ver_cut 1-2)/${P}.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" +IUSE="doc examples static-libs test" +RESTRICT="!test? ( test )" + +BDEPEND="doc? ( app-doc/doxygen[dot] )" + +multilib_src_configure() { + append-lfs-flags + + local mycmakeargs=( + -DWITH_EXAMPLES=$(usex examples) + -DWITH_STATIC_LIB=$(usex static-libs) + -DUNIT_TESTING=$(usex test) + $(multilib_is_native_abi && cmake_use_find_package doc Doxygen \ + || echo -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON) + ) + + cmake_src_configure +} + +multilib_src_compile() { + cmake_src_compile + multilib_is_native_abi && use doc && cmake_src_compile docs +} + +multilib_src_install() { + if multilib_is_native_abi && use doc; then + local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) + fi + + cmake_src_install +} |