# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /cvsroot/htt/httest/packages/gentoo/mkpkg.sh,v 1.1 2009/05/15 05:48:52 ia97lies Exp $ EAPI=2 inherit eutils DESCRIPTION="Http Test Tool" HOMEPAGE="http://htt.sourceforge.net/" SRC_URI="mirror://sourceforge/htt/${P}.tar.gz" LICENSE="Apache-2.0" DEPEND="dev-libs/apr dev-libs/apr-util dev-libs/libpcre dev-libs/openssl lua? ( dev-lang/lua )" RDEPEND="${DEPEND}" SLOT="0" KEYWORDS="x86 ~amd64" IUSE="static lua" src_configure() { local extraconf extraconf="" econf \ $(use_enable static use-static) \ $(use_enable lua lua-module) \ ${extraconf} \ || die "econf failed" } src_compile() { emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" }