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

EAPI=5

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

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"

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
}