commit: a840f516efede6e5f1e8bec8d149a4bdc9ecf83d
Author: Harald Weiner <timeraider4u <AT> users <DOT> noreply <DOT> github
<DOT> com>
AuthorDate: Wed Mar 22 11:47:20 2017 +0000
Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
CommitDate: Wed Mar 22 11:47:20 2017 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a840f516
sci-mathematics/gismo: added use-flag for building a sci-mathematics/axel
plugin (#759)
Package-manager: portage-2.3.3 repoman-2.3.1
.../files/2017.03.21/gsAxel-CMakeLists.txt.patch | 42 ++++++++++++++++++++++
sci-mathematics/gismo/gismo-2017.03.21.ebuild | 13 +++++--
sci-mathematics/gismo/metadata.xml | 1 +
3 files changed, 54 insertions(+), 2 deletions(-)
diff --git a/sci-mathematics/gismo/files/2017.03.21/gsAxel-CMakeLists.txt.patch
b/sci-mathematics/gismo/files/2017.03.21/gsAxel-CMakeLists.txt.patch
new file mode 100644
index 000000000..fb2347373
--- /dev/null
+++ b/sci-mathematics/gismo/files/2017.03.21/gsAxel-CMakeLists.txt.patch
@@ -0,0 +1,42 @@
+--- a/plugins/gsAxel/CMakeLists.txt 2016-10-14 02:04:17.303985030 +0200
++++ b/plugins/gsAxel/CMakeLists.txt 2016-10-14 02:06:30.251979470 +0200
+@@ -150,7 +150,7 @@
+
+ qt5_use_modules(${PROJECT_NAME} Quick)
+ qt5_use_modules(${PROJECT_NAME} Network)
+-qt5_use_modules(${PROJECT_NAME} Declarative)
++#qt5_use_modules(${PROJECT_NAME} Declarative)
+ qt5_use_modules(${PROJECT_NAME} Xml)
+ qt5_use_modules(${PROJECT_NAME} Core)
+ qt5_use_modules(${PROJECT_NAME} Gui)
+@@ -169,21 +169,21 @@
+
+ # note: policy CMP0026: The LOCATION property should not be read from target
+ #get_property(gsAxelPlugin_location TARGET ${PROJECT_NAME} PROPERTY LOCATION)
+-ADD_CUSTOM_COMMAND(
+- TARGET ${PROJECT_NAME}
+- POST_BUILD
+- COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${PROJECT_NAME}>
${AXEL_PLUGIN_DIR}
+- COMMAND ${CMAKE_COMMAND} -E echo 'The plugin has been copied to
${AXEL_PLUGIN_DIR}.'
+- )
++#ADD_CUSTOM_COMMAND(
++# TARGET ${PROJECT_NAME}
++# POST_BUILD
++# COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${PROJECT_NAME}>
${AXEL_PLUGIN_DIR}
++# COMMAND ${CMAKE_COMMAND} -E echo 'The plugin has been copied to
${AXEL_PLUGIN_DIR}.'
++# )
+
+ ## #################################################################
+ ## Install rules
+ ## #################################################################
+
+ install(TARGETS ${PROJECT_NAME}
+- RUNTIME DESTINATION include/gismo/plugins
+- LIBRARY DESTINATION include/gismo/plugins
+- ARCHIVE DESTINATION include/gismo/plugins)
++ RUNTIME DESTINATION lib/axel-plugins/
++ LIBRARY DESTINATION lib/axel-plugins/
++ ARCHIVE DESTINATION lib/axel-plugins/)
+
+
+ ##########CPACK
diff --git a/sci-mathematics/gismo/gismo-2017.03.21.ebuild
b/sci-mathematics/gismo/gismo-2017.03.21.ebuild
index e3a8f1869..1e505d55f 100644
--- a/sci-mathematics/gismo/gismo-2017.03.21.ebuild
+++ b/sci-mathematics/gismo/gismo-2017.03.21.ebuild
@@ -12,16 +12,25 @@
SRC_URI="https://timeraider4u.github.io/distfiles/files/${P}.tar.gz"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="doc examples"
+IUSE="doc examples vtk"
# Unbundling in progress,
# preparing local changes to get upstream
DEPEND="
- doc? ( >=app-doc/doxygen-1.8 )"
+ doc? ( >=app-doc/doxygen-1.8 )
+ vtk? ( dev-qt/qtwidgets:5
+ sci-mathematics/axel
+ sci-mathematics/axel-vtkview
+ )"
+
+PATCHES=(
+ "${FILESDIR}/${PV}/gsAxel-CMakeLists.txt.patch"
+)
src_configure() {
local mycmakeargs=(
-DGISMO_BUILD_EXAMPLES=$(usex examples)
+ -DGISMO_BUILD_AXL=$(usex vtk)
# set to same directory as the one used by einstalldocs
-DDOC_INSTALL_DIR="/usr/share/doc/${PF}"
)
diff --git a/sci-mathematics/gismo/metadata.xml
b/sci-mathematics/gismo/metadata.xml
index ce39098f1..37c33ad5e 100644
--- a/sci-mathematics/gismo/metadata.xml
+++ b/sci-mathematics/gismo/metadata.xml
@@ -8,5 +8,6 @@
<use>
<flag name="doc">Build doxygen-documentation</flag>
<flag name="examples">Build examples</flag>
+ <flag name="vtk">Build plug-in for
sci-mathematics/axel-vtkview</flag>
</use>
</pkgmetadata>