From 704ea7755fc46c92893bb89ea4d3e55a662313fb Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 1 May 2020 11:58:20 -0500 Subject: sci-physics/clhep: remove USE dep on doxygen[latex] Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Matthias Maier --- sci-physics/clhep/clhep-2.4.1.3-r1.ebuild | 55 +++++++++++++++++++++++++++++++ sci-physics/clhep/clhep-2.4.1.3.ebuild | 46 -------------------------- 2 files changed, 55 insertions(+), 46 deletions(-) create mode 100644 sci-physics/clhep/clhep-2.4.1.3-r1.ebuild delete mode 100644 sci-physics/clhep/clhep-2.4.1.3.ebuild (limited to 'sci-physics') diff --git a/sci-physics/clhep/clhep-2.4.1.3-r1.ebuild b/sci-physics/clhep/clhep-2.4.1.3-r1.ebuild new file mode 100644 index 000000000000..817da604300f --- /dev/null +++ b/sci-physics/clhep/clhep-2.4.1.3-r1.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-utils + +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-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 + 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-utils_src_configure +} diff --git a/sci-physics/clhep/clhep-2.4.1.3.ebuild b/sci-physics/clhep/clhep-2.4.1.3.ebuild deleted file mode 100644 index baf35e7057fd..000000000000 --- a/sci-physics/clhep/clhep-2.4.1.3.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake-utils - -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[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 - 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-utils_src_configure -} -- cgit v1.2.3-65-gdbad