sci-physics/vmc - 2.0 (gentoo)

Search

Install

Install this version:

emerge -a =sci-physics/vmc-2.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sci-physics/vmc-2.0

Or alternatively:

emerge --autounmask-write -a =sci-physics/vmc-2.0

Package Information

Description:
The Virtual Monte Carlo core library
Homepage:
https://vmc-project.github.io/ https://github.com/vmc-project/vmc
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
2.0 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

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/ https://github.com/vmc-project/vmc"

LICENSE="GPL-3"
SLOT="0"
IUSE="doc"

RDEPEND="sci-physics/root:="
DEPEND="${RDEPEND}"
BDEPEND="doc? ( app-text/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
}

USE Flags

Manage flags for this package: euse -i <flag> -p sci-physics/vmc | euse -E <flag> -p sci-physics/vmc | euse -D <flag> -p sci-physics/vmc

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

DEPEND

sci-physics/root:=

RDEPEND

sci-physics/root:=

BDEPEND

doc? ( app-text/doxygen[dot] )

Manifest for 2.0

Type File Size Source URLs
DIST vmc-2.0.tar.gz 96865 bytes https://github.com/vmc-project/vmc/archive/v$(ver_rs.tar.gz