mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-19 00:09:37 +03:00
sci-physics/clhep: add 2.4.7.2
Closes: https://bugs.gentoo.org/959361 Part-of: https://github.com/gentoo/gentoo/pull/43848 Closes: https://github.com/gentoo/gentoo/pull/43848 Signed-off-by: Alexander Puck Neuwirth <apn-pucky@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST CLHEP-CLHEP_2_4_7_2.tar.bz2 953450 BLAKE2B c2a1a8164f0b3541809b0e2728f1d663c6ea607d8edb3b2b4a5a4ffdcd7d3f2f0672a6ba32aeb6078019dc155a209a2edd7130a6da02abeaa4f2f787b8e0404d SHA512 3023a259fa2c6a31e19989736d4a2b79bcc81158fac02274822ade9fced18a1825f8ade0cb9424176a3ec9037582a594afa3b6b099abc931111125401aeb5e0b
|
||||
DIST clhep-2.4.7.1.tgz 1229169 BLAKE2B 9bf00c634142874328bc385950c542a1836c83cb35d8366f5b6c3a4ffe5e17e108c9917a5508506f3a400f0bd9e0e635b70e8c7ac73d1db3071e876a0e073339 SHA512 2d997c23fac5c2113cd749764e9d61c9ee3b95e145e29343a4c87a81d0eeed5c0216c73e5ae1630f1462d115b4df78d061a1165949cd1babecb65a9358106095
|
||||
|
||||
70
sci-physics/clhep/clhep-2.4.7.2.ebuild
Normal file
70
sci-physics/clhep/clhep-2.4.7.2.ebuild
Normal file
@@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake dot-a
|
||||
|
||||
MY_PV=$(ver_rs 1- '_')
|
||||
MY_P=CLHEP_${MY_PV}
|
||||
|
||||
DESCRIPTION="High Energy Physics C++ library"
|
||||
HOMEPAGE="
|
||||
http://proj-clhep.web.cern.ch/proj-clhep/
|
||||
https://gitlab.cern.ch/CLHEP/CLHEP
|
||||
"
|
||||
SRC_URI="https://gitlab.cern.ch/CLHEP/CLHEP/-/archive/${MY_P}/CLHEP-${MY_P}.tar.bz2"
|
||||
|
||||
S="${WORKDIR}/CLHEP-${MY_P}"
|
||||
|
||||
LICENSE="GPL-3 LGPL-3"
|
||||
SLOT="2/${PV}"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~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
|
||||
)
|
||||
"
|
||||
|
||||
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() {
|
||||
use static-libs && lto-guarantee-fat
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCLHEP_BUILD_DOCS=$(usex doc)
|
||||
-DCLHEP_BUILD_STATIC_LIBS=$(usex static-libs)
|
||||
-DCLHEP_SINGLE_THREAD=$(usex threads no yes)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
use static-libs && strip-lto-bytecode
|
||||
}
|
||||
Reference in New Issue
Block a user