sci-physics/clhep: 2.2.0.5 EAPI-7 bump

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2019-01-05 17:55:12 +01:00
parent a15b7eab32
commit 4cb38cbbb8
+9 -8
View File
@@ -1,9 +1,9 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
EAPI=7
inherit cmake-utils multilib
inherit cmake-utils
DESCRIPTION="High Energy Physics C++ library"
HOMEPAGE="http://proj-clhep.web.cern.ch/proj-clhep/"
@@ -13,9 +13,8 @@ SLOT="2/${PV}"
KEYWORDS="amd64 hppa ppc x86 ~amd64-linux ~x86-linux ~x64-macos"
IUSE="doc static-libs test"
RDEPEND=""
DEPEND="${RDEPEND}
doc? ( virtual/latex-base )"
BDEPEND="doc? ( virtual/latex-base )"
S="${WORKDIR}/${PV}/CLHEP"
@@ -42,8 +41,8 @@ src_prepare() {
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_enable test TESTING)
$(cmake-utils_use doc CLHEP_BUILD_DOCS)
-DENABLE_TESTING=$(usex test)
-DCLHEP_BUILD_DOCS=$(usex doc)
)
DESTDIR="${ED}" cmake-utils_src_configure
use doc && MAKEOPTS+=" -j1"
@@ -51,5 +50,7 @@ src_configure() {
src_install() {
cmake-utils_src_install
use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a
if ! use static-libs; then
rm "${ED}"/usr/$(get_libdir)/*.a || die
fi
}