commit:     c337e46391e9fbbc1e639f860cd7b3eb72bdb536
Author:     Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 19 17:11:00 2015 +0000
Commit:     Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
CommitDate: Mon Oct 19 17:11:21 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c337e463

sci-biology/seqan: correct dependency on sci-biology/samtools

Seqan 1.3.1 does not compile with samtools greater than 0.1.19
Also it does not compile with GCC 4.9 or higher, so restrict this too

Gentoo-Bug: 514250

Package-Manager: portage-2.2.20

 sci-biology/seqan/seqan-1.3.1-r1.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/sci-biology/seqan/seqan-1.3.1-r1.ebuild 
b/sci-biology/seqan/seqan-1.3.1-r1.ebuild
index a74eac3..2bcb7f6 100644
--- a/sci-biology/seqan/seqan-1.3.1-r1.ebuild
+++ b/sci-biology/seqan/seqan-1.3.1-r1.ebuild
@@ -20,11 +20,19 @@ IUSE=""
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="${PYTHON_DEPS}
-       sci-biology/samtools"
+       ~sci-biology/samtools-0.1.19"
 DEPEND="${RDEPEND}"
 
 S="${WORKDIR}"/${P}/cmake
 
+pkg_setup() {
+       if [[ ${MERGE_TYPE} != binary ]]; then
+               [[ $(gcc-major-version) -gt 4 ]] || \
+               ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -gt 8 
]] ) \
+               && die "Sorry, but gcc 4.9 or higher is unsupported"
+       fi
+}
+
 src_prepare() {
        append-cppflags -I"${EPREFIX}/usr/include/bam"
        rm -rf "${S}"/../lib/samtools || die

Reply via email to