# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 inherit cmake-utils git-r3 DESCRIPTION="A sequence motif discovery tool that uses discriminative learning" HOMEPAGE="https://github.com/maaskola/discrover" SRC_URI="" EGIT_REPO_URI="https://github.com/maaskola/${PN}" LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="+cairo dreme doc +lto misc_scripts +rmathlib tcmalloc" RDEPEND=" dev-libs/boost cairo? ( x11-libs/cairo ) dreme? ( sci-biology/meme ) rmathlib? ( dev-lang/R ) tcmalloc? ( dev-util/google-perftools ) " DEPEND="${RDEPEND} doc? ( dev-texlive/texlive-latex dev-texlive/texlive-latexextra dev-texlive/texlive-latexrecommended media-gfx/imagemagick ) lto? ( >=sys-devel/gcc-4.8:* ) " pkg_pretend() { if use lto; then if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]] ) ; then eerror "Compilation with link-time optimization and GCC older than 4.8 is not supported." eerror "Please either disable the USE flag 'lto' or use >=sys-devel/gcc-4.8." die "Compiling with USE flag 'lto' is not supported with