Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-libs/Mutationpp/, sci-libs/Mutationpp/files/
Date: Sun, 29 May 2022 18:29:59
Message-Id: 1653825451.e358c2b768a44c250b3b9341e810adbd0b83cdb7.andrewammerlaan@gentoo
1 commit: e358c2b768a44c250b3b9341e810adbd0b83cdb7
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun May 29 11:57:31 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sun May 29 11:57:31 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e358c2b7
7
8 sci-libs/Mutationpp: respect flags
9
10 Closes: https://bugs.gentoo.org/847388
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 sci-libs/Mutationpp/Mutationpp-1.0.5-r1.ebuild | 5 ++++-
14 .../files/Mutationpp-1.0.5-respect-flags.patch | 26 ++++++++++++++++++++++
15 2 files changed, 30 insertions(+), 1 deletion(-)
16
17 diff --git a/sci-libs/Mutationpp/Mutationpp-1.0.5-r1.ebuild b/sci-libs/Mutationpp/Mutationpp-1.0.5-r1.ebuild
18 index ebe208161..35030a8ab 100644
19 --- a/sci-libs/Mutationpp/Mutationpp-1.0.5-r1.ebuild
20 +++ b/sci-libs/Mutationpp/Mutationpp-1.0.5-r1.ebuild
21 @@ -43,7 +43,10 @@ BDEPEND="
22
23 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
24 DOCS=( {README,CHANGELOG}.md docs )
25 -PATCHES=( "${FILESDIR}/${P}-system-libs.patch" )
26 +PATCHES=(
27 + "${FILESDIR}/${P}-system-libs.patch"
28 + "${FILESDIR}/${P}-respect-flags.patch"
29 +)
30
31 distutils_enable_tests pytest
32
33
34 diff --git a/sci-libs/Mutationpp/files/Mutationpp-1.0.5-respect-flags.patch b/sci-libs/Mutationpp/files/Mutationpp-1.0.5-respect-flags.patch
35 new file mode 100644
36 index 000000000..2f629ab54
37 --- /dev/null
38 +++ b/sci-libs/Mutationpp/files/Mutationpp-1.0.5-respect-flags.patch
39 @@ -0,0 +1,26 @@
40 +--- a/CMakeLists.txt
41 ++++ b/CMakeLists.txt
42 +@@ -131,7 +131,7 @@
43 +
44 + if (CMAKE_COMPILER_IS_GNUCXX)
45 + #set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter -Wold-style-cast")
46 +- set (CMAKE_CXX_FLAGS "-g")
47 ++ set (CMAKE_CXX_FLAGS "-g ${CMAKE_CXX_FLAGS}")
48 + endif ()
49 +
50 + if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
51 +@@ -152,13 +152,11 @@
52 +
53 + if (Fortran_COMPILER_NAME STREQUAL "gfortran")
54 + # gfortran
55 +- set (CMAKE_Fortran_FLAGS "-fdefault-real-8")
56 +- set (CMAKE_Fortran_FLAGS_RELEASE "-O3")
57 ++ set (CMAKE_Fortran_FLAGS "-fdefault-real-8 ${CMAKE_Fortran_FLAGS}")
58 + set (CMAKE_Fortran_FLAGS_DEBUG "-g")
59 + elseif (Fortran_COMPILER_NAME STREQUAL "ifort")
60 + # ifort (untested)
61 + set (CMAKE_Fortran_FLAGS "-r8")
62 +- set (CMAKE_Fortran_FLAGS_RELEASE "-O3")
63 + set (CMAKE_Fortran_FLAGS_DEBUG "-g -traceback -fpe0 -check all")
64 + endif()
65 + endif()