app-emulation/aqemu: add patch to ensure the correct rcc binary is called
authorMichael Palimaka <kensington@gentoo.org>
Wed, 27 Jul 2016 20:22:51 +0000 (06:22 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 27 Jul 2016 20:23:05 +0000 (06:23 +1000)
Gentoo-bug: 589332

Package-Manager: portage-2.3.0

app-emulation/aqemu/aqemu-0.9.2.ebuild
app-emulation/aqemu/files/aqemu-0.9.2-qtbindir.patch [new file with mode: 0644]

index cbe0aa57ee038e81f30b57758aeffedad1389c5d..bdf8926c6a47f79ea188874c0d4ba65e731219e4 100644 (file)
@@ -25,6 +25,7 @@ RDEPEND="app-emulation/qemu
        dev-qt/qtprintsupport:5"
 
 DOCS="AUTHORS CHANGELOG README TODO"
+PATCHES=( "${FILESDIR}/${PN}-0.9.2-qtbindir.patch" )
 
 src_configure() {
        local mycmakeargs=(
diff --git a/app-emulation/aqemu/files/aqemu-0.9.2-qtbindir.patch b/app-emulation/aqemu/files/aqemu-0.9.2-qtbindir.patch
new file mode 100644 (file)
index 0000000..5c55480
--- /dev/null
@@ -0,0 +1,15 @@
+Ensure the Qt 5 version of rcc is used instead of whatever is in $PATH.
+
+Gentoo-bug: 589332
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -285,7 +285,7 @@
+               
+               SET( _out ${CMAKE_CURRENT_SOURCE_DIR}/${_basename}.rcc )
+               
+-              ADD_CUSTOM_COMMAND( OUTPUT ${_out} COMMAND rcc ARGS ${_in} -binary -o ${_out} DEPENDS ${_in} )
++              ADD_CUSTOM_COMMAND( OUTPUT ${_out} COMMAND ${Qt5Core_RCC_EXECUTABLE} ARGS ${_in} -binary -o ${_out} DEPENDS ${_in} )
+               
+               SET( ${_sources} ${${_sources}} ${_out} )
+       ENDFOREACH( curFile )