diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2018-05-18 13:57:09 +0200 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2018-05-18 17:35:23 +0200 |
commit | 1c7620b336edf8e362e73f2b7c8c3b6abd79bcbf (patch) | |
tree | b02f4c8d0af370b62d1ab1e20ef6f606de03afa8 /sci-physics | |
parent | app-emacs/scala-mode: Update URIs to use https. (diff) | |
download | gentoo-1c7620b336edf8e362e73f2b7c8c3b6abd79bcbf.tar.gz gentoo-1c7620b336edf8e362e73f2b7c8c3b6abd79bcbf.tar.bz2 gentoo-1c7620b336edf8e362e73f2b7c8c3b6abd79bcbf.zip |
sci-physics/clhep: version bump to 2.4.0.4
Package-Manager: Portage-2.3.38, Repoman-2.3.9
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/clhep/Manifest | 1 | ||||
-rw-r--r-- | sci-physics/clhep/clhep-2.4.0.4.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/sci-physics/clhep/Manifest b/sci-physics/clhep/Manifest index 864d2d4c221e..bdc8a46a3de2 100644 --- a/sci-physics/clhep/Manifest +++ b/sci-physics/clhep/Manifest @@ -4,3 +4,4 @@ DIST clhep-2.2.0.1.tgz 1844675 BLAKE2B af2e379035df136a9ecdcf6b22d2d5120e8c89e6d DIST clhep-2.2.0.5.tgz 1847046 BLAKE2B 8dddc6b9acbf41abdd849ef1aa1087d93f48fc83937ee67e687e28c421d290683e5381c2b9f8034e2651e3ccec2fd2e0ba8bee73dc55618e22c0e4df7ce3a378 SHA512 07d9359604196344fe3b13cc103727693fd70818c22849e54507530221812843a943cb8ed66eea421e498edcc9c0f584826823ea7939cbf53b90b17d412aed1a DIST clhep-2.3.1.0.tgz 1538945 BLAKE2B 9aa76fb35c99bbd76d5cdbf5d58b5f64a4a24516b1b9dd5dff7fdf0c60f1c9a4d23e86bce3f4dc0ef849d65753702b0e9043caa8e07f3235ab25c79c7ad83fa5 SHA512 786ad6289ab064c3c428ba2a8f534fcadd09f1f00a9c725dc987ea46c55d1f4ec7beab25221c978992dd195b02a65388a35aa6d7f471b6742c9ff6cdb7a8b7a4 DIST clhep-2.3.3.1.tgz 1565701 BLAKE2B e5153da7a79d0c6e6f4f98cfadd836ee7b36196dcc0daae45bc38c43c24b10cf65aeb71dd0313c7195cd0734d645e8ddcbeed53b82b16d7ae35ecffab2383b4e SHA512 b13e336f9c4dd741291768a4c59075e88467ad54dc41a07eeb519712055e1a26c2369bffb6aeeeac4199066ce1bc863e9d90647094dd2fced7069d82a4cd1317 +DIST clhep-2.4.0.4.tgz 1536520 BLAKE2B 7ab58aeab685950393c8059f77e95cbbf7bf61f04e8113c6fd7b09200cce497716d5a0e023143dde395db895f48848a78e579e38968d9f27a50769034003e11e SHA512 349c1225713a3bc91fe94e27f938e919b434e6466df94dcde915c7e8ed313b9b2e7186e67a9b580ede21aec0050507a070c279920590148ebbec0ac5733fb008 diff --git a/sci-physics/clhep/clhep-2.4.0.4.ebuild b/sci-physics/clhep/clhep-2.4.0.4.ebuild new file mode 100644 index 000000000000..d3fd8d48a3cb --- /dev/null +++ b/sci-physics/clhep/clhep-2.4.0.4.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils multilib + +DESCRIPTION="High Energy Physics C++ library" +HOMEPAGE="http://cern.ch/clhep" +SRC_URI="http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/${P}.tgz" +LICENSE="GPL-3 LGPL-3" +SLOT="2/${PV}" +KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +IUSE="doc test threads" +RDEPEND="" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[latex] )" + +S="${WORKDIR}/${PV}/CLHEP" + +src_prepare() { + cmake-utils_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 + sed -i \ + -e '/add_subdirectory(test)/d' \ + */CMakeLists.txt || die + 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=( + -DBUILD_TESTING=$(usex test) + -DCLHEP_BUILD_DOCS=$(usex doc) + -DCLHEP_SINGLE_THREAD=$(usex threads no yes) + ) + DESTDIR="${ED}" cmake-utils_src_configure +} |