# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ ## hack by James aug 2014 EAPI=5 inherit autotools eutils flag-o-matic multilib MY_PV=${PV/_/} DESCRIPTION="fast cluster manager for distributed applications" HOMEPAGE="http://mesos.apache.org/" SRC_URI="http://apache.org/dist/${PN}/${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 ) dev-java/maven-bin dev-libs/hyperleveldb dev-python/pip dev-python/wheel dev-vcs/subversion" RDEPEND="python? ( dev-lang/python ) >=virtual/jdk-1.6 dev-java/maven-bin ${DEPEND}" 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" }