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

EAPI=7

inherit flag-o-matic git-r3 toolchain-funcs

DESCRIPTION="DNA mapper for single-end reads to detect structural variants (SV)"
HOMEPAGE="https://github.com/GregoryFaust/yaha"
EGIT_REPO_URI="https://github.com/GregoryFaust/yaha.git"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""

PATCHES=(
	"${FILESDIR}"/${P}-fpermissive.patch
	"${FILESDIR}"/${P}-buildsystem.patch
)

src_prepare() {
	default
	append-cflags '-DCOMPILE_USER_MODE' '-DBUILDNUM=$(BUILDNUM)' -std=gnu99
	append-cxxflags '-DCOMPILE_USER_MODE' '-DBUILDNUM=$(BUILDNUM)'
	tc-export CC CXX
	export CFLAGS
	export CXXFLAGS
}

src_install(){
	dobin bin/yaha
	dodoc YAHA_User_Guide.0.1.83.pdf
	dodoc README.md
}