summaryrefslogtreecommitdiff
blob: 81bf4d64600188ced8caa540efa46178dc01f4e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit eutils versionator

MY_P=${PN}-$(replace_version_separator 2 '-')
DESCRIPTION="C++ unit test framework"
HOMEPAGE="http://unittest.red-bean.com"
SRC_URI="http://unittest.red-bean.com/tar/${MY_P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

S=${WORKDIR}/${MY_P}

src_prepare() {
	epatch "${FILESDIR}/makefile-remove-test.patch"
}

src_install() {
	dodoc docs/* || die "Install failed"

	insinto /usr/include/${PN}
	doins include/* || die "Install failed"

	dolib.a	lib/libunittest.a || die
}

src_test() {
	make test || die "Tests failed"
}