EAPI=4 PYTHON_DEPEND="python? 2" inherit eutils autotools git-2 python flag-o-matic DESCRIPTION="The elliptics network - eblob backend" HOMEPAGE="http://www.ioremap.net/projects/elliptics" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="python" RDEPEND="dev-libs/openssl python? ( dev-libs/boost[python] )" DEPEND="${RDEPEND}" EGIT_COMMIT="3170113657ac1d7a0c19427fbf05bcf43348545f" EGIT_REPO_URI="http://www.ioremap.net/archive/eblob/eblob.git" src_prepare(){ use python || sed -i 's/SUBDIRS = .*/SUBDIRS = include library/' ${S}/Makefile.am eautoreconf } src_configure(){ # 'checking trying to link with boost::python... no' due '-Wl,--as-needed' use python && filter-ldflags -Wl,--as-needed econf \ --with-libatomic-path=/dev/null \ $(use_with python boost) } src_install(){ emake install DESTDIR="${D}" || die find "${D}" -name '*.la' -exec rm -f {} + }