blob: 8dd036436c32e963c7227708500c26703623d9b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils flag-o-matic toolchain-funcs
MY_NCBI_BLAST_V=2.2.23+
DESCRIPTION="RepeatMasker compatible version of NCBI BLAST+ ${MY_NCBI_BLAST_V}"
HOMEPAGE="http://www.repeatmasker.org/RMBlast.html"
SRC_URI="http://www.repeatmasker.org/rmblast-${PV}-ncbi-blast-${MY_NCBI_BLAST_V}-src.tar.gz"
LICENSE="OSL-2.1"
SLOT="0"
IUSE="test"
KEYWORDS="~amd64 ~x86"
RDEPEND="dev-libs/boost"
DEPEND="${RDEPEND}
app-arch/cpio"
S="${WORKDIR}/${P}-ncbi-blast-${MY_NCBI_BLAST_V}-src/c++"
src_prepare() {
filter-ldflags -Wl,--as-needed
sed \
-e 's/-print-file-name=libstdc++.a//' \
-e '/sed/ s/\([gO]\[0-9\]\)\*/\1\\+/' \
-e "/DEF_FAST_FLAGS=/s:=\".*\":=\"${CFLAGS}\":g" \
-e 's/2.95\* | 2.96\* | 3\.\* | 4\.\* )/2.95\* | 2.96\* | \[3-9\]\.\* )/g' \
-i src/build-system/configure || die
epatch "${FILESDIR}"/${P}-gcc47.patch
epatch "${FILESDIR}"/${P}-never_build_test_boost.patch
}
src_configure() {
tc-export CXX CC
local myconf
use test || myconf+=( --with-projects="${FILESDIR}"/disable-testsuite-compilation.txt )
"${S}"/configure --without-debug \
--with-mt \
--without-static \
--with-dll \
--prefix="${ED}"/opt/${PN} \
--with-boost="${EPREFIX}"/usr/include/boost ${myconf[@]} \
|| die
}
|