From 95d3da2041487fb107c9691675845da471802775 Mon Sep 17 00:00:00 2001 From: tchernobog Date: Wed, 31 May 2006 08:13:22 +0000 Subject: [PATCH] - Add src_compile() test-aware git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@593 3ecf2c5c-341e-0410-92b4-d18e462d057c --- distro/gentoo/sgpemv2-0.00.ebuild | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/distro/gentoo/sgpemv2-0.00.ebuild b/distro/gentoo/sgpemv2-0.00.ebuild index ce6022e..8e48d8d 100644 --- a/distro/gentoo/sgpemv2-0.00.ebuild +++ b/distro/gentoo/sgpemv2-0.00.ebuild @@ -6,11 +6,22 @@ DESCRIPTION="" HOMEPAGE="" SRC_URI="" -LICENSE="" +LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" -IUSE="" +IUSE="debug" DEPEND="" RDEPEND="" +src_compile() { + if use debug; then + conf_opts="--enable-tests" + else + conf_opts="--disable-tests" + fi + + econf ${conf_opts} || die "configure failed" + emake || die "make all failed" +} +