aboutsummaryrefslogtreecommitdiff
blob: 3f0741815b786bf97a2decf9a55b0e0507ca7494 (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-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit toolchain-funcs

DESCRIPTION="Split Illumina Nextera long mate-pairs"
HOMEPAGE="https://github.com/richardmleggett/nextclip
	https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3928519"
SRC_URI="https://github.com/richardmleggett/nextclip/archive/NextClip_v1.3.1.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND=""
RDEPEND="${DEPEND}
	>=dev-lang/R-2.12.2
	>=sci-biology/bwa-0.6.1
	dev-texlive/texlive-latex"

S="${WORKDIR}"/"${PN}"-NextClip_v"${PV}"

src_prepare(){
	default
	sed -e 's/$(ARCH)//;s/$(MACFLAG)//' -i Makefile || die
	sed -e "s/CC=gcc/$(tc-getCC)/;s/-Wall -O3/${CFLAGS}/" -i Makefile || die
}

src_compile(){
	emake all
}

src_install(){
	dobin bin/nextclip
	insinto /usr/share/"${PN}"
	doins scripts/*
	dodoc nextclipmanual.pdf README.md
}