# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit git-r3 cmake

DESCRIPTION="Assembly statistics (min, max, sum, N50, N90, count gaps and Ns)"
HOMEPAGE="https://github.com/martinghunt/assembly-stats"
EGIT_REPO_URI="https://github.com/martinghunt/assembly-stats.git"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""

DEPEND=">=dev-cpp/gtest-1.7.0"
RDEPEND="${DEPEND}"

# TODO: should not even try to compile bundled gtest
src_prepare(){
	sed -e "s#/usr/local/bin#${EPREFIX}/usr/bin#" -i CMakeLists.txt || die
	cmake_src_prepare
}