summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Freyermuth <o.freyermuth@googlemail.com>2019-07-18 17:17:42 +0200
committerMichał Górny <mgorny@gentoo.org>2019-07-18 17:45:48 +0200
commitbe4fc9f3afbd40da068325ca6d1334a3626797d4 (patch)
treec30181e19f8f84dff45d488b097f026c49b8c1ce /sci-physics
parentsci-physics/geant-vmc: Fixes for test suite. (diff)
downloadgentoo-be4fc9f3afbd40da068325ca6d1334a3626797d4.tar.gz
gentoo-be4fc9f3afbd40da068325ca6d1334a3626797d4.tar.bz2
gentoo-be4fc9f3afbd40da068325ca6d1334a3626797d4.zip
sci-physics/geant-vmc: Add patch to honour cflags.
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Oliver Freyermuth <o.freyermuth@googlemail.com> Closes: https://github.com/gentoo/gentoo/pull/12451 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/geant-vmc/files/geant-vmc-4.4.0-fix-cflags.patch15
-rw-r--r--sci-physics/geant-vmc/geant-vmc-4.4.0.ebuild3
2 files changed, 18 insertions, 0 deletions
diff --git a/sci-physics/geant-vmc/files/geant-vmc-4.4.0-fix-cflags.patch b/sci-physics/geant-vmc/files/geant-vmc-4.4.0-fix-cflags.patch
new file mode 100644
index 00000000000..d3bf0dfdd30
--- /dev/null
+++ b/sci-physics/geant-vmc/files/geant-vmc-4.4.0-fix-cflags.patch
@@ -0,0 +1,15 @@
+diff --git a/g4root/test/OpNovice/CMakeLists.txt b/g4root/test/OpNovice/CMakeLists.txt
+index 1a8f316c..a2e144b6 100644
+--- a/g4root/test/OpNovice/CMakeLists.txt
++++ b/g4root/test/OpNovice/CMakeLists.txt
+@@ -44,7 +44,9 @@ endif()
+ #----------------------------------------------------------------------------
+ # Setup Geant4 include directories and compile definitions
+ #
+-include(${Geant4_USE_FILE})
++# Workaround for upstream bug: http://bugzilla-geant4.kek.jp/show_bug.cgi?id=1663
++#include(${Geant4_USE_FILE})
++include(UseGeant4)
+
+ #----------------------------------------------------------------------------
+ # Locate sources and headers for this project
diff --git a/sci-physics/geant-vmc/geant-vmc-4.4.0.ebuild b/sci-physics/geant-vmc/geant-vmc-4.4.0.ebuild
index 83c2f0b1204..0f091fe6412 100644
--- a/sci-physics/geant-vmc/geant-vmc-4.4.0.ebuild
+++ b/sci-physics/geant-vmc/geant-vmc-4.4.0.ebuild
@@ -42,6 +42,9 @@ DOCS=(
history
README.md
)
+PATCHES=(
+ "${FILESDIR}"/"${PN}-${PV}"-fix-cflags.patch
+)
src_configure() {
local mycmakeargs=(