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: Thu, 27 Jun 2019 13:42:01
Message-Id: 1561642904.8de4f2b8e051029312a51f9a1beb4f527e8cbb0a.amadio@gentoo
1 commit: 8de4f2b8e051029312a51f9a1beb4f527e8cbb0a
2 Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 27 13:41:19 2019 +0000
4 Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 27 13:41:44 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8de4f2b8
7
8 sci-physics/clhep: version bump to 2.4.1.2
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.16
11 Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
12
13 sci-physics/clhep/Manifest | 1 +
14 sci-physics/clhep/clhep-2.4.1.2.ebuild | 47 ++++++++++++++++++++++++++++++++++
15 2 files changed, 48 insertions(+)
16
17 diff --git a/sci-physics/clhep/Manifest b/sci-physics/clhep/Manifest
18 index 93e54de2182..17df63fee10 100644
19 --- a/sci-physics/clhep/Manifest
20 +++ b/sci-physics/clhep/Manifest
21 @@ -1,2 +1,3 @@
22 DIST clhep-2.2.0.5.tgz 1847046 BLAKE2B 8dddc6b9acbf41abdd849ef1aa1087d93f48fc83937ee67e687e28c421d290683e5381c2b9f8034e2651e3ccec2fd2e0ba8bee73dc55618e22c0e4df7ce3a378 SHA512 07d9359604196344fe3b13cc103727693fd70818c22849e54507530221812843a943cb8ed66eea421e498edcc9c0f584826823ea7939cbf53b90b17d412aed1a
23 DIST clhep-2.4.0.4.tgz 1536520 BLAKE2B 7ab58aeab685950393c8059f77e95cbbf7bf61f04e8113c6fd7b09200cce497716d5a0e023143dde395db895f48848a78e579e38968d9f27a50769034003e11e SHA512 349c1225713a3bc91fe94e27f938e919b434e6466df94dcde915c7e8ed313b9b2e7186e67a9b580ede21aec0050507a070c279920590148ebbec0ac5733fb008
24 +DIST clhep-2.4.1.2.tgz 1537636 BLAKE2B ad6cc94e1147747d2875c3f630155527fc428cf2b6dc3236824c0f70712eea9416006b127ff0dbb5c4f0c853618cc2c3f6f8e57e5a833d7d6e1e4328d161212b SHA512 e79139682f9955ff4cb79846cca5823c70b6710e7b8e227218346c05205a346d9dfee9f03736f8d1833379ba880239babdb3398cde776318550451d284269974
25
26 diff --git a/sci-physics/clhep/clhep-2.4.1.2.ebuild b/sci-physics/clhep/clhep-2.4.1.2.ebuild
27 new file mode 100644
28 index 00000000000..8eac6ef22dd
29 --- /dev/null
30 +++ b/sci-physics/clhep/clhep-2.4.1.2.ebuild
31 @@ -0,0 +1,47 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake-utils
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 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
45 +
46 +IUSE="doc test threads"
47 +
48 +BDEPEND="doc? ( app-doc/doxygen[latex] )"
49 +
50 +S="${WORKDIR}/${PV}/CLHEP"
51 +
52 +src_prepare() {
53 + cmake-utils_src_prepare
54 +
55 + # respect flags
56 + sed -i -e 's:-O::g' cmake/Modules/ClhepVariables.cmake || die
57 + # dont build test if not asked
58 + if ! use test; then
59 + sed -i \
60 + -e '/add_subdirectory(test)/d' \
61 + */CMakeLists.txt || die
62 + fi
63 + # gentoo doc directory
64 + if use doc; then
65 + grep -rl 'share/doc/CLHEP' |
66 + xargs sed -i \
67 + -e "s:share/doc/CLHEP:share/doc/${PF}:" \
68 + {.,*}/CMakeLists.txt || die
69 + fi
70 +}
71 +
72 +src_configure() {
73 + local mycmakeargs=(
74 + -DCLHEP_BUILD_DOCS=$(usex doc)
75 + -DCLHEP_SINGLE_THREAD=$(usex threads no yes)
76 + )
77 + DESTDIR="${ED}" cmake-utils_src_configure
78 +}