diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2020-11-18 14:40:44 +0100 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2020-11-18 16:49:08 +0100 |
commit | 8d7ab6c45ee55d30b7591924476ec36edbcd9ef9 (patch) | |
tree | e5662622aa0063733734eb0131fd133e07306e77 /sci-physics/clhep/clhep-2.4.4.0.ebuild | |
parent | sci-physics/geant: version bump to 4.10.6.3 (diff) | |
download | gentoo-8d7ab6c45ee55d30b7591924476ec36edbcd9ef9.tar.gz gentoo-8d7ab6c45ee55d30b7591924476ec36edbcd9ef9.tar.bz2 gentoo-8d7ab6c45ee55d30b7591924476ec36edbcd9ef9.zip |
sci-physics/clhep: version bump to 2.4.4.0
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'sci-physics/clhep/clhep-2.4.4.0.ebuild')
-rw-r--r-- | sci-physics/clhep/clhep-2.4.4.0.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sci-physics/clhep/clhep-2.4.4.0.ebuild b/sci-physics/clhep/clhep-2.4.4.0.ebuild new file mode 100644 index 000000000000..6195dd380616 --- /dev/null +++ b/sci-physics/clhep/clhep-2.4.4.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="High Energy Physics C++ library" +HOMEPAGE="http://proj-clhep.web.cern.ch/proj-clhep/" +SRC_URI="http://proj-clhep.web.cern.ch/proj-clhep/dist1/${P}.tgz" +LICENSE="GPL-3 LGPL-3" +SLOT="2/${PV}" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +IUSE="doc test threads" +RESTRICT="!test? ( test )" + +BDEPEND=" + doc? ( + app-doc/doxygen + dev-texlive/texlive-bibtexextra + dev-texlive/texlive-fontsextra + dev-texlive/texlive-fontutils + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + ) +" + +S="${WORKDIR}/${PV}/CLHEP" + +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() { + local mycmakeargs=( + -DCLHEP_BUILD_DOCS=$(usex doc) + -DCLHEP_SINGLE_THREAD=$(usex threads no yes) + ) + DESTDIR="${ED}" cmake_src_configure +} |