summaryrefslogtreecommitdiff
blob: 84373dd68ca118b4c3eaace74311745c8d40ee0a (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="4"

inherit eutils

DESCRIPTION="Unit-test framework for Bourne-based shell scripts"
HOMEPAGE="https://code.google.com/p/shunit2/wiki/ProjectInfo"
SRC_URI="https://shunit2.googlecode.com/files/${P}.tgz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc test"

RDEPEND=""
DEPEND="${RDEPEND}
	dev-lang/perl
	net-misc/curl"

src_install() {
	dobin src/shunit2 || die

	# For backwards compat to <=2.1.5
	dosym /usr/bin/shunit2 /usr/share/shunit2/shunit2 || die

	dodoc -r examples || die
	dodoc doc/*.txt || die
	dohtml doc/*.{html,css} || die
}