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

EAPI=7

inherit toolchain-funcs

DESCRIPTION="Check family relationship and infer population structure"
HOMEPAGE="https://people.virginia.edu/~wc9c/KING
	https://people.virginia.edu/~wc9c/publications/pdf/BI26_2867.pdf"
SRC_URI="https://people.virginia.edu/~wc9c/KING/KINGcode.tar.gz -> ${P}.tar.gz
	https://people.virginia.edu/~wc9c/KING/manual.html -> ${PN}_relationship_inference.html
	https://people.virginia.edu/~wc9c/KING/kingpopulation.html -> ${PN}.kingpopulation.html"

LICENSE="all-rights-reserved" # Our robust relationship inference algorithm is implemented in a freely available software package
SLOT="0"
KEYWORDS="~amd64 ~x86"

S="${WORKDIR}"

src_compile(){
	$(tc-getCXX) ${CXXFLAGS} -lm -lz -fopenmp -o king *.cpp
}

src_install(){
	newbin {king,KING}
	dodoc "${DISTDIR}"/"${PN}"_relationship_inference.html "${DISTDIR}"/"${PN}".kingpopulation.html
}