# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_P="${PN}-full-${PV}" S="${WORKDIR}/${MY_P}" DESCRIPTION="Linux Test Project: testsuite for the linux kernel" HOMEPAGE="http://ltp.sourceforge.net/" SRC_URI="mirror://sourceforge/ltp/${MY_P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" # add "dialog" here if ltpmenu is enabled DEPEND="" src_compile() { epatch ${FILESDIR}/IDcheck-noninteractive.patch epatch ${FILESDIR}/runltp-path.patch emake || die "emake failed" } src_install() { make install || die "install failed" mkdir -p ${D}/usr/libexec/ltp/testcases ${D}/usr/bin/ || die "mkdir failed" cp --parents -r testcases/bin pan/pan runtest ver_linux IDcheck.sh ${D}/usr/libexec/ltp || die "cp failed" cp runltp runalltests.sh ${D}/usr/bin || die "cp failed" # TODO: fix this so it works from "outside" the source tree # cp ltpmenu ${D}/usr/bin }