1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools multilib-minimal
8 DESCRIPTION="A unit test framework for C"
9 HOMEPAGE="https://libcheck.github.io/check/"
10 SRC_URI="https://github.com/lib${PN}/${PN}/archive/${PV}.tar.gz -> ${P}-github.tar.gz"
14 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
15 IUSE="static-libs subunit"
17 RDEPEND="subunit? ( >=dev-python/subunit-0.0.10-r1[${MULTILIB_USEDEP}] )"
21 DOCS=( AUTHORS ChangeLog NEWS README.md THANKS TODO )
24 # See multilib_src_test(), disable sleep()-based tests because they
25 # just take a long time doing pretty much nothing.
26 export CPPFLAGS="-DTIMEOUT_TESTS_ENABLED=0 ${CPPFLAGS}"
32 sed -i -e '/^docdir =/d' {.,doc}/Makefile.am \
33 || die 'failed to unset docdir in Makefile.am'
38 multilib_src_configure() {
40 --disable-dependency-tracking
44 econf "${myeconfargs[@]}"
47 multilib_src_install_all() {
50 rm -f "${ED}/usr/share/doc/${PF}"/COPYING* || \
51 die 'failed to remove COPYING files'
53 find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
57 elog "-DTIMEOUT_TESTS_ENABLED=0 has been prepended to CPPFLAGS. To run the"
58 elog "entire testsuite for dev-libs/check, ensure that"
59 elog "-DTIMEOUT_TESTS_ENABLED=1 is in your CPPFLAGS."