From 99602bb8c8c4b491b164443387ba64358fb889a1 Mon Sep 17 00:00:00 2001 From: Nathan Phillip Brink Date: Thu, 29 Sep 2011 12:39:53 +0000 Subject: In a revbump, add subunit useflag to fix bug 354091 by flameeyes, bump to EAPI=4, and move to using autotools-utils eclass (adding static-libs useflag). (Portage version: 2.2.0_alpha55-r1/cvs/Linux x86_64) --- dev-libs/check/ChangeLog | 10 +++++++- dev-libs/check/check-0.9.8-r1.ebuild | 46 ++++++++++++++++++++++++++++++++++++ dev-libs/check/metadata.xml | 3 +++ 3 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 dev-libs/check/check-0.9.8-r1.ebuild (limited to 'dev-libs/check') diff --git a/dev-libs/check/ChangeLog b/dev-libs/check/ChangeLog index f241257d3e8e..b6360b41f7dd 100644 --- a/dev-libs/check/ChangeLog +++ b/dev-libs/check/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-libs/check # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/check/ChangeLog,v 1.67 2011/09/13 22:47:21 binki Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/check/ChangeLog,v 1.68 2011/09/29 12:39:53 binki Exp $ + +*check-0.9.8-r1 (29 Sep 2011) + + 29 Sep 2011; Nathan Phillip Brink +check-0.9.8-r1.ebuild, + metadata.xml: + In a revbump, add subunit useflag to fix bug 354091 by flameeyes, bump to + EAPI=4, and move to using autotools-utils eclass (adding static-libs + useflag). 13 Sep 2011; Nathan Phillip Brink metadata.xml: Set myself (binki) as maintainer. diff --git a/dev-libs/check/check-0.9.8-r1.ebuild b/dev-libs/check/check-0.9.8-r1.ebuild new file mode 100644 index 000000000000..78c94662c61a --- /dev/null +++ b/dev-libs/check/check-0.9.8-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/check/check-0.9.8-r1.ebuild,v 1.1 2011/09/29 12:39:53 binki Exp $ + +EAPI=4 +inherit autotools autotools-utils eutils + +DESCRIPTION="A unit test framework for C" +HOMEPAGE="http://sourceforge.net/projects/check/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="static-libs subunit" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-0.9.6-AM_PATH_CHECK.patch \ + "${FILESDIR}"/${PN}-0.9.6-64bitsafe.patch + + sed -i -e '/^docdir =/d' {.,doc}/Makefile.am || die + + # fix out-of-sourcedir build having inconsistent check.h files, for + # example breaks USE=subunit. + rm src/check.h || die + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-dependency-tracking + $(use_enable subunit) + --docdir=/usr/share/doc/${PF} + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + dodoc AUTHORS *ChangeLog* NEWS README THANKS TODO + + rm -f "${D}"/usr/share/doc/${PF}/COPYING* || die + find "${D}" -name '*.la' -exec rm -f {} + || die +} diff --git a/dev-libs/check/metadata.xml b/dev-libs/check/metadata.xml index 786aa0da87df..a0468c037d39 100644 --- a/dev-libs/check/metadata.xml +++ b/dev-libs/check/metadata.xml @@ -5,4 +5,7 @@ binki@gentoo.org Nathan Phillip Brink + + Enable support for the subunit unit test protocol + -- cgit v1.2.3-65-gdbad