mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
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>
This commit is contained in:
committed by
Guilherme Amadio
parent
591e38b913
commit
45dde5fb4a
1
sci-physics/vmc/Manifest
Normal file
1
sci-physics/vmc/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST vmc-1.0_p2.tar.gz 91400 BLAKE2B d444a003433f4939f1b737ee8aa117a3230f83428ff9a79f8219a88bf5146104460a8be80ada9ab3a0a0edebc7d85d02bc51de053d54b06739d26cb0bbec3429 SHA512 51d6a8462c854411b595a20a2657b8012f19cd9c139f3341ccd72eb262473d01f6909ad22ee8d083f01cc5a2e43b2af265a7ed7c62a1285e8fab34c1b68ee3cd
|
||||
24
sci-physics/vmc/metadata.xml
Normal file
24
sci-physics/vmc/metadata.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>o.freyermuth@googlemail.com</email>
|
||||
<name>Oliver Freyermuth</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>amadio@gentoo.org</email>
|
||||
<name>Guilherme Amadio</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="c++11">Build using the C++11 standard</flag>
|
||||
<flag name="c++14">Build using the C++14 standard</flag>
|
||||
<flag name="c++17">Build using the C++17 standard</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">vmc-project/vmc</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
45
sci-physics/vmc/vmc-1.0_p2.ebuild
Normal file
45
sci-physics/vmc/vmc-1.0_p2.ebuild
Normal file
@@ -0,0 +1,45 @@
|
||||
# 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
|
||||
}
|
||||
45
sci-physics/vmc/vmc-9999.ebuild
Normal file
45
sci-physics/vmc/vmc-9999.ebuild
Normal file
@@ -0,0 +1,45 @@
|
||||
# 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
|
||||
}
|
||||
Reference in New Issue
Block a user