Gentoo Archives: gentoo-commits

From: Guilherme Amadio <amadio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/clhep/
Date: Mon, 28 Jun 2021 10:46:15
Message-Id: 1624877101.85a61a3b6978b0b869367928bc47507503fe9001.amadio@gentoo
1 commit: 85a61a3b6978b0b869367928bc47507503fe9001
2 Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 25 14:50:51 2021 +0000
4 Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 28 10:45:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85a61a3b
7
8 sci-physics/clhep: version bump to 2.4.4.2
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
12
13 sci-physics/clhep/Manifest | 1 +
14 sci-physics/clhep/clhep-2.4.4.2.ebuild | 55 ++++++++++++++++++++++++++++++++++
15 2 files changed, 56 insertions(+)
16
17 diff --git a/sci-physics/clhep/Manifest b/sci-physics/clhep/Manifest
18 index e67a3ec6935..1a028dc31e3 100644
19 --- a/sci-physics/clhep/Manifest
20 +++ b/sci-physics/clhep/Manifest
21 @@ -1,2 +1,3 @@
22 DIST clhep-2.4.1.3.tgz 1537908 BLAKE2B 92fd1fcc415b01d8efa44be67c3bf9e58af2b4d18b6e7ee2161fbc20312428a6f17eacc09150ccff7fefb1686161518042f5c2f7558ff00b4d5696d002432ece SHA512 f7a52b353dc2c6d30cb7d307af71a028838ec674af2a50fe0199335d0b0f7fb4b84489ccfd12f21ecb7b1327acbc87065e7e87363308fd0caad5748a657aac13
23 DIST clhep-2.4.4.0.tgz 1541722 BLAKE2B 077048ea3ce94de88f08a1ae51ab9af892385d6747ed9f875e13b5aacc725e85f723031d42f526ca53050c07dad621053008c71d0f255f32893724f3e8189e52 SHA512 3ae88c8f31877c6e2cac7f7612946e9989186876c66015e6bfeab19260814c8a8bfb21fa28dd251cd2c43e4e3f63f336249c430c984f84810441603e949ecb5d
24 +DIST clhep-2.4.4.2.tgz 1541867 BLAKE2B 69f23c298db57fbd23a505facd993725f4f21b410463069570e98826dc96d54f309b010df27a5fe910c756bfb1dcdffdb9b47452ef5ddadd5a91ed81a1d9566e SHA512 c267e113111c139f4048db774c81167e53a70d4911f8106c3fabf5980935dfc9b451108385e9d8b8dccace99b4732a21ec0ea2fb86004bb85d04c02cfa54a619
25
26 diff --git a/sci-physics/clhep/clhep-2.4.4.2.ebuild b/sci-physics/clhep/clhep-2.4.4.2.ebuild
27 new file mode 100644
28 index 00000000000..ab61250e037
29 --- /dev/null
30 +++ b/sci-physics/clhep/clhep-2.4.4.2.ebuild
31 @@ -0,0 +1,55 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake
38 +
39 +DESCRIPTION="High Energy Physics C++ library"
40 +HOMEPAGE="http://proj-clhep.web.cern.ch/proj-clhep/"
41 +SRC_URI="http://proj-clhep.web.cern.ch/proj-clhep/dist1/${P}.tgz"
42 +LICENSE="GPL-3 LGPL-3"
43 +SLOT="2/${PV}"
44 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
45 +
46 +IUSE="doc test threads"
47 +RESTRICT="!test? ( test )"
48 +
49 +BDEPEND="
50 + doc? (
51 + app-doc/doxygen
52 + dev-texlive/texlive-bibtexextra
53 + dev-texlive/texlive-fontsextra
54 + dev-texlive/texlive-fontutils
55 + dev-texlive/texlive-latex
56 + dev-texlive/texlive-latexextra
57 + )
58 +"
59 +
60 +S="${WORKDIR}/${PV}/CLHEP"
61 +
62 +src_prepare() {
63 + cmake_src_prepare
64 +
65 + # respect flags
66 + sed -i -e 's:-O::g' cmake/Modules/ClhepVariables.cmake || die
67 + # dont build test if not asked
68 + if ! use test; then
69 + cmake_comment_add_subdirectory test
70 + fi
71 + # gentoo doc directory
72 + if use doc; then
73 + grep -rl 'share/doc/CLHEP' |
74 + xargs sed -i \
75 + -e "s:share/doc/CLHEP:share/doc/${PF}:" \
76 + {.,*}/CMakeLists.txt || die
77 + fi
78 +}
79 +
80 +src_configure() {
81 + local mycmakeargs=(
82 + -DCLHEP_BUILD_DOCS=$(usex doc)
83 + -DCLHEP_SINGLE_THREAD=$(usex threads no yes)
84 + )
85 + cmake_src_configure
86 +}