diff options
-rw-r--r-- | sci-physics/cernlib/cernlib-2023.10.31.0-r2.ebuild (renamed from sci-physics/cernlib/cernlib-2023.10.31.0-r1.ebuild) | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sci-physics/cernlib/cernlib-2023.10.31.0-r1.ebuild b/sci-physics/cernlib/cernlib-2023.10.31.0-r2.ebuild index c5c919678..93220dffb 100644 --- a/sci-physics/cernlib/cernlib-2023.10.31.0-r1.ebuild +++ b/sci-physics/cernlib/cernlib-2023.10.31.0-r2.ebuild @@ -1,7 +1,7 @@ EAPI=8 CMAKE_MAKEFILE_GENERATOR="emake" -inherit cmake fortran-2 +inherit cmake fortran-2 flag-o-matic DESCRIPTION="CERN program library for High Energy Physics" HOMEPAGE="https://cernlib.web.cern.ch/cernlib/" @@ -16,7 +16,8 @@ LICENSE=" " SLOT="0" KEYWORDS="~amd64" -IUSE="+free" +# static-libs as default since otherwise test fail... +IUSE="+free +static-libs" RESTRICT="mirror" RDEPEND=" @@ -59,6 +60,12 @@ src_configure() { # docs follow rpm like spliting into packages cernlib, cernlib-devel, etc. # we move them into a folder that agrees with gentoo doc structure. sed -i "s#/doc/#/doc/${PF}/#g" CMakeLists.txt || die + # with -O2 some tests fail + # let upstream decide on optimization (-O0) since code is fragile + filter-flags -O1 -O2 -O3 -Os -Oz -Og -Ofast + local mycmakeargs=( + -DBUILD_SHARED_LIBS=$(usex static-libs OFF ON) + ) cmake_src_configure } |