mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-visualization/scidavis: multiple bug fixes
- Enable muparser unconditionally Closes: https://bugs.gentoo.org/834074 - Only set PYTHON_SCRIPTDIR if we enable python scripting Closes: https://bugs.gentoo.org/832753 - Fix build if sip-4 installed as well as sip-6 Closes: https://bugs.gentoo.org/828938 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
diff --git a/libscidavis/CMakeLists.txt b/libscidavis/CMakeLists.txt
|
||||
index 8fc6c4e3..27464ec2 100644
|
||||
--- a/libscidavis/CMakeLists.txt
|
||||
+++ b/libscidavis/CMakeLists.txt
|
||||
@@ -483,7 +483,7 @@ if( SCRIPTING_PYTHON )
|
||||
set(scidavis_PyQt_HDR ${scidavis_SIP_OUTPUT_DIR}/sipAPIscidavis.h)
|
||||
if( SIP_VERSION VERSION_GREATER_EQUAL 5 )
|
||||
set( scidavis_SIP_HDR ${CMAKE_CURRENT_BINARY_DIR}/python/sip.h )
|
||||
- target_include_directories( libscidavis PUBLIC
|
||||
+ target_include_directories( libscidavis BEFORE PUBLIC
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/python"
|
||||
"${scidavis_SIP_OUTPUT_DIR}"
|
||||
)
|
||||
@@ -16,7 +16,6 @@
|
||||
<use>
|
||||
<flag name="origin">Add support for reading OriginLab OPJ project files through <pkg>sci-libs/liborigin</pkg>.</flag>
|
||||
<flag name="python">Build support for python scripting.</flag>
|
||||
<flag name="muparser">Build support for muparser scripting.</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">scidavis</remote-id>
|
||||
|
||||
@@ -18,7 +18,7 @@ LICENSE="GPL-2+ ZLIB"
|
||||
KEYWORDS="~amd64"
|
||||
SLOT="0"
|
||||
|
||||
IUSE="doc +muparser origin python test"
|
||||
IUSE="doc origin python test"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# requires network
|
||||
@@ -26,7 +26,7 @@ RESTRICT="test"
|
||||
PROPERTIES="test_network"
|
||||
|
||||
RDEPEND="
|
||||
muparser? ( dev-cpp/muParser )
|
||||
dev-cpp/muParser
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
@@ -58,8 +58,9 @@ BDEPEND="
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-muparser.patch"
|
||||
"${FILESDIR}/${PN}-qwtplot3d.patch"
|
||||
"${FILESDIR}/${P}-install-locations.patch"
|
||||
"${FILESDIR}/${P}-find-qwtplot3d.patch"
|
||||
"${FILESDIR}/${P}-fix-build-if-sip4-installed.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
@@ -76,12 +77,19 @@ src_prepare() {
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DSCRIPTING_MUPARSER=$(usex muparser)
|
||||
-DSCRIPTING_PYTHON=$(usex python)
|
||||
-DPYTHON_SCRIPTDIR="$(python_get_scriptdir)"
|
||||
# Even if we disable muparser scripting, we still need MuParser.h
|
||||
# for Graph3D.cpp. So just enable it unconditionally. Bug 834074
|
||||
-DSCRIPTING_MUPARSER=ON
|
||||
-DORIGIN_IMPORT=$(usex origin)
|
||||
-DSCRIPTING_PYTHON=$(usex python)
|
||||
-DBUILD_TESTS=$(usex test)
|
||||
)
|
||||
|
||||
if use python; then
|
||||
mycmakeargs+=(
|
||||
-DPYTHON_SCRIPTDIR="$(python_get_scriptdir)"
|
||||
)
|
||||
fi
|
||||
cmake_src_configure
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user