| 1 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/dejagnu/dejagnu-1.4.4-r3.ebuild,v 1.1 2010/04/09 08:39:56 vapier Exp $
|
| 4 |
|
| 5 |
inherit eutils
|
| 6 |
|
| 7 |
DESCRIPTION="framework for testing other programs"
|
| 8 |
HOMEPAGE="http://www.gnu.org/software/dejagnu/"
|
| 9 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~x86-solaris"
|
| 14 |
IUSE="doc"
|
| 15 |
|
| 16 |
DEPEND="dev-lang/tcl
|
| 17 |
dev-tcltk/expect"
|
| 18 |
|
| 19 |
src_unpack() {
|
| 20 |
unpack ${A}
|
| 21 |
cd "${S}"
|
| 22 |
epatch "${FILESDIR}"/dejagnu-ignore-libwarning.patch
|
| 23 |
epatch "${FILESDIR}"/${P}-rsh-username.patch
|
| 24 |
epatch "${FILESDIR}"/${P}-testglue-protos.patch
|
| 25 |
}
|
| 26 |
|
| 27 |
src_test() {
|
| 28 |
# if you dont have dejagnu emerged yet, you cant
|
| 29 |
# run the tests ... crazy aint it :)
|
| 30 |
type -p runtest || return 0
|
| 31 |
emake check || die "check failed :("
|
| 32 |
}
|
| 33 |
|
| 34 |
src_install() {
|
| 35 |
emake -j1 install DESTDIR="${D}" || die
|
| 36 |
dodoc AUTHORS ChangeLog NEWS README TODO
|
| 37 |
use doc && dohtml -r doc/html/
|
| 38 |
}
|