Files
gentoo/sci-physics/vmc/vmc-9999.ebuild
Oliver Freyermuth 45dde5fb4a sci-physics/vmc: New package
sci-physics/root[vmc] has become a separate project,
and is now deprecated and marked for removal within
sci-physics/root.

Closes: https://github.com/gentoo/gentoo/pull/15630

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
2020-05-20 14:37:25 +02:00

46 lines
1013 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/vmc-project/${PN}.git"
else
MY_PV=$(ver_rs 1-2 -)
SRC_URI="https://github.com/vmc-project/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/${PN}-${MY_PV}"
fi
DESCRIPTION="The Virtual Monte Carlo core library."
HOMEPAGE="https://vmc-project.github.io/"
LICENSE="GPL-3"
SLOT="0"
IUSE="+c++11 c++14 c++17 doc"
REQUIRED_USE="^^ ( c++11 c++14 c++17 )"
RDEPEND=">=sci-physics/root-6.18:=[c++11?,c++14?,c++17?,-vmc]"
DEPEND="${RDEPEND}
doc? ( app-doc/doxygen[dot] )"
DOCS=(README.md History)
src_compile() {
cmake_src_compile
if use doc; then
# TRAVIS_BUILD_DIR hardcoded in Doxyfile by upstream.
TRAVIS_BUILD_DIR="${S}" doxygen doc/doxygen/Doxyfile || die
fi
}
src_install() {
cmake_src_install
use doc && local HTML_DOCS=( doc/html/. )
einstalldocs
}