blob: 15a2d7bca970cbf5fef9f98360835be6b39a8f7b (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic
DESCRIPTION="k-mer counter within reads for assemblies"
HOMEPAGE="http://www.cbcb.umd.edu/software/jellyfish"
SRC_URI="https://github.com/gmarcais/Jellyfish/releases/download/v${PV}/${P}.tar.gz"
# older version is hidden in trinityrnaseq_r20140413p1/trinity-plugins/jellyfish-1.1.11
# also was bundled in quorum-0.2.1 and MaSuRca-2.1.0
# also bundled in SEECER-0.1.3
LICENSE="GPL-3+ BSD"
SLOT="1"
KEYWORDS="~amd64 ~x86"
IUSE="cpu_flags_x86_sse"
BDEPEND="virtual/pkgconfig"
src_configure() {
# --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 ${myconf[@]}
}
src_install() {
default
# install the binary under jellyfish1 name like Debian/Ubuntu to avoid name clash with jellyfish2 and allow simultaneous installs
mv "${ED}"/usr/bin/jellyfish "${ED}"/usr/bin/jellyfish1 || die
sed -e "s#jellyfish-${PV}#jellyfish1#" -i "${ED}/usr/$(get_libdir)"/pkgconfig/jellyfish-1.1.pc || die
find "${ED}"/usr/include/"${P}"/"${PN}" -type f | while read f; do
sed -e "s#include <jellyfish/#include <jellyfish${SLOT}/#" -i $f || die
done
mkdir -p "${ED}/usr/include/${PN}${SLOT}" || die
mv "${ED}"/usr/include/"${P}"/"${PN}"/* "${ED}/usr/include/${PN}${SLOT}/" || die
rm -r "${ED}/usr/include/${P}" || die
mv "${ED}"/usr/share/man/man1/jellyfish.1 "${ED}"/usr/share/man/man1/jellyfish"${SLOT}".1 || die
newdoc doc/jellyfish.pdf jellyfish"${SLOT}".pdf
}
|