diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2016-07-06 17:15:08 -0300 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2016-07-06 17:15:08 -0300 |
commit | 67943e56623fe67cd71c97194457a19553a19e78 (patch) | |
tree | 83497101d47afffbee05a8e35f4d7057c555fa5d /sci-physics | |
parent | net-libs/gnutls: version bump (diff) | |
download | gentoo-67943e56623fe67cd71c97194457a19553a19e78.tar.gz gentoo-67943e56623fe67cd71c97194457a19553a19e78.tar.bz2 gentoo-67943e56623fe67cd71c97194457a19553a19e78.zip |
sci-physics/clhep: version bump to 2.3.3.1
Package-Manager: portage-2.3.0
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/clhep/Manifest | 1 | ||||
-rw-r--r-- | sci-physics/clhep/clhep-2.3.3.1.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/sci-physics/clhep/Manifest b/sci-physics/clhep/Manifest index b807beabe0c1..0329eb690928 100644 --- a/sci-physics/clhep/Manifest +++ b/sci-physics/clhep/Manifest @@ -7,3 +7,4 @@ DIST clhep-2.1.4.2.tgz 1838675 SHA256 ffd72997fb921fa7ef770c40c6bb12f603aa4761e6 DIST clhep-2.2.0.1.tgz 1844675 SHA256 1006284b195e569276ba9d6e3e2b0b2d002e098c10ac09157b26ec076987d7d7 SHA512 930577d18f1c4a9dc94b259589653ebecf7b85ec78da7e1dc7b49d282dbae210bcf257831254f875840a3fd6bf5fc4ad7c4e46825e31674c55c746ef7c2939f2 WHIRLPOOL ad9e765c2adb47de9688abc5c8f7f6e481160df66c811e381d136fcf7d1e7726402367ad2a3f757cefc754c8fe6dc225bdee0f15f763cecc91a3413b63cbc54c DIST clhep-2.2.0.5.tgz 1847046 SHA256 92e8b5d32ae96154edd27d0c641ba048ad33cb69dd4f1cfb72fc578770a34818 SHA512 07d9359604196344fe3b13cc103727693fd70818c22849e54507530221812843a943cb8ed66eea421e498edcc9c0f584826823ea7939cbf53b90b17d412aed1a WHIRLPOOL 4d5b7429e4b0498393c8f664045df4ba27a073a7e926ee9a5f9e196e5d0d3dd4da2cb4bf77e8eb37e6651c3e1f3f9742167414010ae5606e02f307ab6efe82c4 DIST clhep-2.3.1.0.tgz 1538945 SHA256 66272ae3100d3aec096b1298e1e24ec25b80e4dac28332b45ec3284023592963 SHA512 786ad6289ab064c3c428ba2a8f534fcadd09f1f00a9c725dc987ea46c55d1f4ec7beab25221c978992dd195b02a65388a35aa6d7f471b6742c9ff6cdb7a8b7a4 WHIRLPOOL 44f77d13c0c7b0f74c7d66c1196214d47f5ec71411365746769d7d2f1dbe53b8d4e18fbefffd6a677a3329ba16e5333277d5e6c6e8f880c24cca7d1e7c88224b +DIST clhep-2.3.3.1.tgz 1565701 SHA256 cd74bfae4773620dd0c7cc9c1696a08386931d7e47a3906aa632cc5cb44ed6bd SHA512 b13e336f9c4dd741291768a4c59075e88467ad54dc41a07eeb519712055e1a26c2369bffb6aeeeac4199066ce1bc863e9d90647094dd2fced7069d82a4cd1317 WHIRLPOOL 03cea53429711d1c076c1d5ccf61e3f072109608fd79219ae8dfd0540b86da18c13eae1f317d3eddad080860f8e0da25b41fe9f0a3b0ae448ec7ae22a2d16749 diff --git a/sci-physics/clhep/clhep-2.3.3.1.ebuild b/sci-physics/clhep/clhep-2.3.3.1.ebuild new file mode 100644 index 000000000000..7e53bc099645 --- /dev/null +++ b/sci-physics/clhep/clhep-2.3.3.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +CMAKE_MIN_VERSION=3.2 + +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" + +IUSE="doc static-libs test" +RDEPEND="" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[latex] )" + +S="${WORKDIR}/${PV}/CLHEP" + +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() { + append-cxxflags $(test-flags-CXX -std=c++11) + local mycmakeargs=( + $(cmake-utils_use test ENABLE_TESTING) + $(cmake-utils_use doc CLHEP_BUILD_DOCS) + ) + DESTDIR="${ED}" cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a +} |