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

EAPI=7

CMAKE_BUILD_TYPE=RelWithDebInfo
inherit cmake vcs-snapshot

DESCRIPTION="A small, fast, and high performance math library for robot applications"
HOMEPAGE="https://ignitionrobotics.org/libraries/math"
SRC_URI="https://github.com/ignitionrobotics/ign-math/archive/${PN}6_${PV}.tar.gz"

LICENSE="Apache-2.0"
SLOT="6/6"
KEYWORDS="~amd64"
IUSE=""

RDEPEND=""
DEPEND="${RDEPEND}
	dev-cpp/eigen:3
	dev-util/ignition-cmake:2"
BDEPEND="
	dev-util/ignition-cmake:2"

S="${WORKDIR}/${PN}6_${PV}"
PATCHES=( "${FILESDIR}/includes.patch" )