diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2023-12-01 09:45:11 +0100 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2023-12-05 13:16:25 +0100 |
commit | c0d4e0e0dcda069e135684405320c69d372c699b (patch) | |
tree | ba76d6593d2ad387769565fcd5649f4b8a5bf7d6 /sci-physics/vmc/vmc-2.0-r1.ebuild | |
parent | sci-physics/geant: add subslots (diff) | |
download | gentoo-c0d4e0e0dcda069e135684405320c69d372c699b.tar.gz gentoo-c0d4e0e0dcda069e135684405320c69d372c699b.tar.bz2 gentoo-c0d4e0e0dcda069e135684405320c69d372c699b.zip |
sci-physics/vmc: drop USE flags for C++ standard
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'sci-physics/vmc/vmc-2.0-r1.ebuild')
-rw-r--r-- | sci-physics/vmc/vmc-2.0-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sci-physics/vmc/vmc-2.0-r1.ebuild b/sci-physics/vmc/vmc-2.0-r1.ebuild new file mode 100644 index 000000000000..8cf9327f72c4 --- /dev/null +++ b/sci-physics/vmc/vmc-2.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 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-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 +} |