Install this version:
emerge -a =sci-physics/clhep-2.4.7.1
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="High Energy Physics C++ library"
HOMEPAGE="
http://proj-clhep.web.cern.ch/proj-clhep/
https://gitlab.cern.ch/CLHEP/CLHEP
"
SRC_URI="http://proj-clhep.web.cern.ch/proj-clhep/dist1/${P}.tgz"
S="${WORKDIR}/${PV}/CLHEP"
LICENSE="GPL-3 LGPL-3"
SLOT="2/${PV}"
KEYWORDS="amd64 ~x86 ~x64-macos"
IUSE="doc static-libs test threads"
RESTRICT="!test? ( test )"
BDEPEND="
doc? (
app-text/doxygen
dev-texlive/texlive-bibtexextra
dev-texlive/texlive-fontsextra
dev-texlive/texlive-fontutils
dev-texlive/texlive-latex
dev-texlive/texlive-latexextra
)
"
PATCHES=( "${FILESDIR}"/${P}-static-libs-option.patch )
src_prepare() {
cmake_src_prepare
# respect flags
sed -i -e 's:-O::g' cmake/Modules/ClhepVariables.cmake || die
# dont build test if not asked
if ! use test; then
cmake_comment_add_subdirectory test
fi
# gentoo doc directory
if use doc; then
grep -rl 'share/doc/CLHEP' |
xargs sed -i \
-e "s:share/doc/CLHEP:share/doc/${PF}:" \
{.,*}/CMakeLists.txt || die
fi
}
src_configure() {
local mycmakeargs=(
-DCLHEP_BUILD_DOCS=$(usex doc)
-DCLHEP_BUILD_STATIC_LIBS=$(usex static-libs)
-DCLHEP_SINGLE_THREAD=$(usex threads no yes)
)
cmake_src_configure
}
Manage flags for this package:
euse -i <flag> -p sci-physics/clhep |
euse -E <flag> -p sci-physics/clhep |
euse -D <flag> -p sci-physics/clhep
doc? ( app-text/doxygen dev-texlive/texlive-bibtexextra dev-texlive/texlive-fontsextra dev-texlive/texlive-fontutils dev-texlive/texlive-latex dev-texlive/texlive-latexextra )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | clhep-2.4.7.1.tgz | 1229169 bytes | http://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-2.4.7.1.tgz |