aboutsummaryrefslogtreecommitdiff
blob: 2aee70121ec9e1e8fc51e8aadbc9bc21452aa27b (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

[ "$PV" == "9999" ] && inherit git-2

inherit toolchain-funcs

DESCRIPTION="Barcode demultiplexing and trimming tool for Illumina FastQ files"
HOMEPAGE="https://github.com/najoshi/sabre"
if [ "$PV" == "9999" ]; then
	EGIT_REPO_URI="https://github.com/najoshi/sabre.git"
	KEYWORDS=""
else
	SRC_URI=""
	KEYWORDS=""
fi


LICENSE="MIT" # almost verbatim
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND="sys-libs/zlib"
RDEPEND="${DEPEND}"

S="${S}"/src

src_prepare(){
	sed -e "s#OPT = -O3#OPT = ${CFLAGS}#" \
		-e "s#CC = gcc#CC = $(tc-getCC)#" -i Makefile || die
}

src_install(){
	dobin sabre
}