# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit eutils DESCRIPTION="Framework for scalable cross-language services development" HOMEPAGE="http://incubator.apache.org/thrift/" SRC_URI="mirror://apache/incubator/${PN}/${PV}-incubating/${PN}-${PV}-incubating.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" IUSE="cxx erlang java mono perl python ruby +libevent" DEPEND="sys-devel/bison cxx? ( dev-libs/boost ) libevent? ( dev-libs/libevent ) python? ( dev-lang/python ) mono? ( dev-lang/mono ) ruby? ( dev-lang/ruby ) erlang? ( dev-lang/erlang ) java? ( virtual/jdk dev-java/ant-ivy dev-java/slf4j-api )" RDEPEND="${DEPEND}" src_configure() { econf $(use_with cxx boost) \ $(use_with libevent libevent) \ $(use_with erlang erlang) \ $(use_with java java) \ $(use_with mono csharp) \ $(use_with perl perl) \ $(use_with python py) \ $(use_with ruby ruby) \ --with-zlib || die } src_install() { emake DESTDIR="${D}" install || die }