blob: fd71046acf091b30a72e6db598986496f4f27ca2 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils flag-o-matic
DESCRIPTION="k-mer counter within reads for assemblies"
HOMEPAGE="http://www.genome.umd.edu/jellyfish.html"
SRC_URI="ftp://ftp.genome.umd.edu/pub/${PN}/${P}.tar.gz
ftp://ftp.genome.umd.edu/pub/jellyfish/JellyfishUserGuide.pdf"
# older version is hidden in trinityrnaseq_r20140413p1/trinity-plugins/jellyfish-1.1.11
LICENSE="GPL-3+ BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cpu_flags_x86_sse"
DEPEND=""
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare(){
# --with-sse enable SSE
# --with-half enable half float (16 bits)
# --with-int128 enable int128
local myconf
use cpu_flags_x86_sse && myconf+=( --with-sse )
econf econf ${myconf[@]}
eapply_user
}
src_install(){
default
sed -e "s#jellyfish-${PV}#jellyfish#" -i "${ED}/usr/$(get_libdir)"/pkgconfig/jellyfish-2.0.pc || die
mkdir -p "${ED}/usr/include/${PN}" || die
mv "${ED}"/usr/include/"${P}"/"${PN}"/* "${ED}/usr/include/${PN}/" || die
rm -r "${ED}/usr/include/${P}" || die
}
|