diff options
author | Oliver Freyermuth <o.freyermuth@googlemail.com> | 2022-02-11 00:36:00 +0100 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2022-02-11 08:36:21 +0100 |
commit | b5439e2417fdbf21603e87ceeff885dd033c16d9 (patch) | |
tree | 80633d43bb74a599d6f8cf8dc9d6c3b299228010 /sci-physics | |
parent | sci-physics/vgm: Drop oldest version. (diff) | |
download | gentoo-b5439e2417fdbf21603e87ceeff885dd033c16d9.tar.gz gentoo-b5439e2417fdbf21603e87ceeff885dd033c16d9.tar.bz2 gentoo-b5439e2417fdbf21603e87ceeff885dd033c16d9.zip |
sci-physics/vmc: Bump version to 2.0.
Required for >=sci-physics/geant4_vmc-6.0
which is required for >=sci-physics/geant-4.11.0 support.
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/vmc/Manifest | 1 | ||||
-rw-r--r-- | sci-physics/vmc/vmc-2.0.ebuild | 45 |
2 files changed, 46 insertions, 0 deletions
diff --git a/sci-physics/vmc/Manifest b/sci-physics/vmc/Manifest index 8c7909cc790f..1046978aed3f 100644 --- a/sci-physics/vmc/Manifest +++ b/sci-physics/vmc/Manifest @@ -1,2 +1,3 @@ DIST vmc-1.0_p3.tar.gz 91476 BLAKE2B 3005e0575a5835b832175e6a272d4e3c328990e28ac998aca60a42c4ddd03faba4d1b761867d8af597ca2468cf3072c49bb007852b5ec892c215df37297656dc SHA512 621c0cb3f2846f9401e3e4fff6fa47ab2afbff7c4dca5c19869abb1806ec19d4a221e5741aad9b3929a4e8b8207ee6008a9bf06ec8bf03ed73771cb29fda1b8d DIST vmc-1.1_p1.tar.gz 91722 BLAKE2B 6849b52c95dd33393f75d24eb184571bfbc3b711e6bba7c33853493e97ad63fbdfa4c49c61f664b911d7e047229bcde08303b48a345f1a0b9bfffee3f078e275 SHA512 407d8a6d3c3375e448273750aaffe43e9f4a63cc2f4a4ec41d1cd9b3c830b836cbef8d4e9cb37e5a0595f54a22989b7e1dd62dda0606a84f5732d1d3f6eaaee8 +DIST vmc-2.0.tar.gz 96865 BLAKE2B 487ad5888389e10ba79364f4701ab4caec33d88b940ee277a8039a401fd624d3a9f7ae62bd4a50be770ac924703256325bf118e243bfe700ed8e390104f4e3d5 SHA512 3f0a88bf2bcf3daaa1327125a1aebb05452dabce3d5f274797c05cbd15cdd1c9d4fdfeebdef70a70ce5d575f19c2856330be18683e7bf241113881e11a022a89 diff --git a/sci-physics/vmc/vmc-2.0.ebuild b/sci-physics/vmc/vmc-2.0.ebuild new file mode 100644 index 000000000000..2eb8760c25bf --- /dev/null +++ b/sci-physics/vmc/vmc-2.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 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="c++11 c++14 +c++17 doc" + +REQUIRED_USE="^^ ( c++11 c++14 c++17 )" + +RDEPEND="sci-physics/root:=[c++11?,c++14?,c++17?,-vmc]" +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 +} |