# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 DESCRIPTION="a cluster manager that provides efficient resource isolation and sharing across distributed applications" HOMEPAGE="http://mesos.apache.org/" SRC_URI="http://apache.lehtivihrea.org/mesos/${PV}/${P}.tar.gz http://mir2.ovh.net/ftp.apache.org/dist/mesos/${PV}/${P}.tar.gz" LICENSE="Apache-2.0" KEYWORDS="~amd64" IUSE="java python" SLOT="0" DEPEND="net-misc/curl dev-libs/cyrus-sasl python? ( dev-lang/python dev-python/boto ) java? ( virtual/jdk )" S="${WORKDIR}/${P}" ECONF_SOURCE="${S}" src_prepare() { mkdir "${S}/build" || die } src_configure() { cd "${S}/build" econf \ $(use_enable python) \ $(use_enable java) } src_compile() { cd "${S}/build" emake -j1 V=1 } src_install() { cd "${S}/build" emake DESTDIR="${D}" install || die "emake install failed" }