diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2019-04-03 16:07:40 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-04-03 16:11:13 +0200 |
commit | c7472f51dd2be2e731b931be57799c60678e9bb7 (patch) | |
tree | 6b45325da01b994dc28a102f3c61a63a85360df4 /dev-util | |
parent | media-libs/mlt: Drop 6.12.0-r1 (diff) | |
download | gentoo-c7472f51dd2be2e731b931be57799c60678e9bb7.tar.gz gentoo-c7472f51dd2be2e731b931be57799c60678e9bb7.tar.bz2 gentoo-c7472f51dd2be2e731b931be57799c60678e9bb7.zip |
dev-util/cmocka: 1.1.5 version bump
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/cmocka/Manifest | 1 | ||||
-rw-r--r-- | dev-util/cmocka/cmocka-1.1.5.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-util/cmocka/Manifest b/dev-util/cmocka/Manifest index 2b6a080ffd48..1709a3dcbbe5 100644 --- a/dev-util/cmocka/Manifest +++ b/dev-util/cmocka/Manifest @@ -1 +1,2 @@ DIST cmocka-1.1.3.tar.xz 78744 BLAKE2B 5043a496afab08837a73c2e0ff9c9b3c3880a2fd394a768b1f8b51d2fec517a5527e93b7e660f8dcc73af79aaf88e224f4e2869c7e31540f8e54c76481905ff6 SHA512 b1a2ce72234256d653eebf95f8744a34525b9027e1ecf6552e1620c83a4bdda8b5674b748cc5fd14abada1e374829e2e7f0bcab0b1c8d6c3b7d9b7ec474b6ed3 +DIST cmocka-1.1.5.tar.xz 81004 BLAKE2B 5625dc293ad481c654848f3de806ef88d1b651192c2461e52b54bf9d443b5e2ea5d2a685ab85b044685f57e5723ade6c4c17e38624f59c4eab240cb4feeaab1e SHA512 cad7f04757183d004f6eaad39036fc0e24c5e0e987f80e85bc43bc66dba22389cb02b08e25531cc28a541d0a24a86b29be134a2d6fc339128e87d66952f502bd diff --git a/dev-util/cmocka/cmocka-1.1.5.ebuild b/dev-util/cmocka/cmocka-1.1.5.ebuild new file mode 100644 index 000000000000..e0d5dc6a7262 --- /dev/null +++ b/dev-util/cmocka/cmocka-1.1.5.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake-multilib + +DESCRIPTION="Unit testing framework for C" +HOMEPAGE="https://cmocka.org/" +SRC_URI="https://cmocka.org/files/1.1/${P}.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="doc examples static-libs test" + +BDEPEND=" + doc? ( app-doc/doxygen[dot] ) +" + +multilib_src_configure() { + local mycmakeargs=( + -DWITH_EXAMPLES=$(usex examples) + -DWITH_STATIC_LIB=$(usex static-libs) + -DUNIT_TESTING=$(usex test) + $(multilib_is_native_abi && cmake-utils_use_find_package doc Doxygen \ + || echo -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON) + ) + + cmake-utils_src_configure +} + +multilib_src_compile() { + cmake-utils_src_compile + multilib_is_native_abi && use doc && cmake-utils_src_compile docs +} + +multilib_src_install() { + if multilib_is_native_abi && use doc; then + local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. ) + fi + + cmake-utils_src_install +} |