You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
970 B
45 lines
970 B
# Copyright 1999-2014 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=5
|
|
|
|
inherit cmake-utils
|
|
DESCRIPTION="A unit testing framework for C"
|
|
HOMEPAGE="http://cmocka.org/"
|
|
SRC_URI="https://open.cryptomilk.org/attachments/download/19/${P}.tar.gz"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm ~hppa ppc ppc64 ~s390 x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
|
IUSE="doc static-libs test"
|
|
|
|
DEPEND="
|
|
doc? ( app-doc/doxygen[latex] )
|
|
"
|
|
RDEPEND=""
|
|
|
|
PATCHES=( "${FILESDIR}/${PN}-automagicness.patch" )
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
$(cmake-utils_use_with static-libs STATIC_LIB)
|
|
$(cmake-utils_use test UNIT_TESTING)
|
|
$(cmake-utils_use_with doc APIDOC)
|
|
)
|
|
cmake-utils_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
if use doc; then
|
|
pushd "${BUILD_DIR}/doc/"
|
|
doxygen doxy.config
|
|
rm html/*.md5 latex/*.md5 latex/Manifest man/man3/_*
|
|
dohtml html/*
|
|
dodoc latex/*
|
|
doman man/man3/*.3
|
|
popd
|
|
fi
|
|
cmake-utils_src_install
|
|
}
|