diff options
-rw-r--r-- | net-libs/telepathy-logger-qt/files/telepathy-logger-qt-15.04.0-cmake-3.9.patch | 249 | ||||
-rw-r--r-- | net-libs/telepathy-logger-qt/telepathy-logger-qt-15.04.0.ebuild | 4 |
2 files changed, 252 insertions, 1 deletions
diff --git a/net-libs/telepathy-logger-qt/files/telepathy-logger-qt-15.04.0-cmake-3.9.patch b/net-libs/telepathy-logger-qt/files/telepathy-logger-qt-15.04.0-cmake-3.9.patch new file mode 100644 index 000000000000..84d66851a221 --- /dev/null +++ b/net-libs/telepathy-logger-qt/files/telepathy-logger-qt-15.04.0-cmake-3.9.patch @@ -0,0 +1,249 @@ +diff --git a/cmake/modules/TpQtMacros.cmake b/cmake/modules/TpQtMacros.cmake +--- a/cmake/modules/TpQtMacros.cmake ++++ b/cmake/modules/TpQtMacros.cmake +@@ -128,15 +128,15 @@ + FOREACH(_currentArg ${ARGN}) + IF ("${_currentArg}" STREQUAL "DEPENDS") + SET(_TPQT_DOING_DEPENDS TRUE) +- ELSE ("${_currentArg}" STREQUAL "DEPENDS") ++ ELSE () + IF(_TPQT_DOING_DEPENDS) + LIST(APPEND ${_tpqt_depends} "${_currentArg}") +- ELSE(_TPQT_DOING_DEPENDS) ++ ELSE() + LIST(APPEND ${_tpqt_other} "${_currentArg}") +- ENDIF(_TPQT_DOING_DEPENDS) +- ENDIF ("${_currentArg}" STREQUAL "DEPENDS") +- ENDFOREACH(_currentArg) +-ENDMACRO (TPQT_EXTRACT_DEPENDS) ++ ENDIF() ++ ENDIF () ++ ENDFOREACH() ++ENDMACRO () + + # helper function to set up a moc rule + FUNCTION (TPQT_CREATE_MOC_COMMAND_TARGET_DEPS infile outfile moc_flags moc_options) +@@ -151,54 +151,54 @@ + GET_FILENAME_COMPONENT(_moc_outfile_dir "${outfile}" PATH) + IF(_moc_outfile_dir) + SET(_moc_working_dir WORKING_DIRECTORY ${_moc_outfile_dir}) +- ENDIF(_moc_outfile_dir) ++ ENDIF() + SET (_moc_parameters_file ${outfile}_parameters) + SET (_moc_parameters ${moc_flags} ${moc_options} -o "${outfile}" "${infile}") + FILE (REMOVE ${_moc_parameters_file}) + FOREACH(arg ${_moc_parameters}) + FILE (APPEND ${_moc_parameters_file} "${arg}\n") +- ENDFOREACH(arg) ++ ENDFOREACH() + ADD_CUSTOM_COMMAND(OUTPUT ${outfile} + COMMAND ${QT_MOC_EXECUTABLE} @${_moc_outfile_name}_parameters + DEPENDS ${infile} + ${_moc_working_dir} + VERBATIM) +- ELSE (WIN32) ++ ELSE () + ADD_CUSTOM_COMMAND(OUTPUT ${outfile} + COMMAND ${QT_MOC_EXECUTABLE} + ARGS ${moc_flags} ${moc_options} -o ${outfile} ${infile} + DEPENDS ${infile}) +- ENDIF (WIN32) ++ ENDIF () + + add_custom_target(moc-${_moc_outfile_name} DEPENDS ${outfile}) + add_dependencies(moc-${_moc_outfile_name} ${ARGN}) +-ENDFUNCTION (TPQT_CREATE_MOC_COMMAND_TARGET_DEPS) ++ENDFUNCTION () + + # add the -i option to QT_GENERATE_MOC + function(TPQT_GENERATE_MOC_I infile outfile) + qt5_get_moc_flags(moc_flags) + get_filename_component(abs_infile ${infile} ABSOLUTE) +- qt5_create_moc_command(${abs_infile} ${outfile} "${moc_flags}" "-i") ++ qt_create_moc_command(${abs_infile} ${outfile} "${moc_flags}" "-i") + set_source_files_properties(${outfile} PROPERTIES SKIP_AUTOMOC TRUE) # dont run automoc on this file +-endfunction(TPQT_GENERATE_MOC_I) ++endfunction() + + # same as tpqt_generate_moc_i, but lets the caller specify a list of targets which the mocs should depend on + function(TPQT_GENERATE_MOC_I_TARGET_DEPS infile outfile) + qt5_get_moc_flags(moc_flags) + get_filename_component(abs_infile ${infile} ABSOLUTE) + tpqt_create_moc_command_target_deps(${abs_infile} ${outfile} "${moc_flags}" "-i" ${ARGN}) + set_source_files_properties(${outfile} PROPERTIES SKIP_AUTOMOC TRUE) # dont run automoc on this file +-endfunction(TPQT_GENERATE_MOC_I_TARGET_DEPS) ++endfunction() + + # generates mocs for the passed list. The list should be added to the target's sources + function(tpqt_generate_mocs) + file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/_gen" ) + foreach(moc_src ${ARGN}) + string(REPLACE ".h" ".moc.hpp" generated_file ${moc_src}) + tpqt_generate_moc_i(${CMAKE_CURRENT_SOURCE_DIR}/${moc_src} ${CMAKE_CURRENT_BINARY_DIR}/_gen/${generated_file}) + set_property(SOURCE ${moc_src} APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/${generated_file}) +- endforeach(moc_src ${ARGN}) +-endfunction(tpqt_generate_mocs) ++ endforeach() ++endfunction() + + function(tpqt_client_generator spec group pretty_include namespace) + tpqt_extract_depends(client_generator_args client_generator_depends ${ARGN}) +@@ -223,18 +223,20 @@ + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + + DEPENDS ${CMAKE_SOURCE_DIR}/tools/libqtcodegen.py +- ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py) ++ ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py ++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/stable-spec.xml ++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/spec-${spec}.xml) + add_custom_target(generate_cli-${spec}-body DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/cli-${spec}-body.hpp) + add_dependencies(all-generated-sources generate_cli-${spec}-body) + + if (client_generator_depends) + add_dependencies(generate_cli-${spec}-body ${client_generator_depends}) +- endif (client_generator_depends) ++ endif () + + tpqt_generate_moc_i_target_deps(${CMAKE_CURRENT_BINARY_DIR}/_gen/cli-${spec}.h + ${CMAKE_CURRENT_BINARY_DIR}/_gen/cli-${spec}.moc.hpp + "generate_cli-${spec}-body") +-endfunction(tpqt_client_generator spec group pretty_include namespace) ++endfunction() + + function(tpqt_future_client_generator spec namespace) + tpqt_extract_depends(future_client_generator_args future_client_generator_depends ${ARGN}) +@@ -259,18 +261,20 @@ + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + + DEPENDS ${CMAKE_SOURCE_DIR}/tools/libqtcodegen.py +- ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py) ++ ${CMAKE_SOURCE_DIR}/tools/qt-client-gen.py ++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/future-spec.xml ++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/future-${spec}.xml) + add_custom_target(generate_future-${spec}-body DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/future-${spec}-body.hpp) + add_dependencies(all-generated-sources generate_future-${spec}-body) + + if (future_client_generator_depends) + add_dependencies(generate_future-${spec}-body ${future_client_generator_depends}) +- endif (future_client_generator_depends) ++ endif () + + tpqt_generate_moc_i_target_deps(${CMAKE_CURRENT_BINARY_DIR}/_gen/future-${spec}.h + ${CMAKE_CURRENT_BINARY_DIR}/_gen/future-${spec}.moc.hpp + "generate_future-${spec}-body") +-endfunction(tpqt_future_client_generator spec namespace) ++endfunction() + + function(tpqt_service_generator spec group pretty_include namespace) + tpqt_extract_depends(service_generator_args service_generator_depends ${ARGN}) +@@ -294,18 +298,20 @@ + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + + DEPENDS ${CMAKE_SOURCE_DIR}/tools/libqtcodegen.py +- ${CMAKE_SOURCE_DIR}/tools/qt-svc-gen.py) ++ ${CMAKE_SOURCE_DIR}/tools/qt-svc-gen.py ++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/stable-spec.xml ++ ${CMAKE_CURRENT_BINARY_DIR}/_gen/spec-svc-${spec}.xml) + add_custom_target(generate_service-${spec}-body DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/svc-${spec}.cpp) + add_dependencies(all-generated-service-sources generate_service-${spec}-body) + + if (service_generator_depends) + add_dependencies(generate_service-${spec}-body ${service_generator_depends}) +- endif (service_generator_depends) ++ endif () + + tpqt_generate_moc_i_target_deps(${CMAKE_CURRENT_BINARY_DIR}/_gen/svc-${spec}.h + ${CMAKE_CURRENT_BINARY_DIR}/_gen/svc-${spec}.moc.hpp + "generate_service-${spec}-body") +-endfunction(tpqt_service_generator spec group pretty_include namespace) ++endfunction() + + # This function is used for generating CM in various examples + function(tpqt_generate_manager_file MANAGER_FILE OUTPUT_FILENAME DEPEND_FILENAME) +@@ -324,7 +330,7 @@ + + set_source_files_properties(${DEPEND_FILENAME} + PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/_gen/param-spec-struct.h) +-endfunction(tpqt_generate_manager_file MANAGER_FILE) ++endfunction() + + function(tpqt_xincludator _TARGET_NAME _INPUT_FILE _OUTPUT_FILE) + tpqt_extract_depends(xincludator_gen_args xincludator_gen_depends ${ARGN}) +@@ -346,8 +352,8 @@ + + if (xincludator_gen_depends) + add_dependencies(${_TARGET_NAME} ${xincludator_gen_depends}) +- endif (xincludator_gen_depends) +-endfunction(tpqt_xincludator _TARGET_NAME _INPUT_FILE _OUTPUT_FILE) ++ endif () ++endfunction() + + function(tpqt_constants_gen _TARGET_NAME _SPEC_XML _OUTFILE) + tpqt_extract_depends(constants_gen_args constants_gen_depends ${ARGN}) +@@ -371,8 +377,8 @@ + + if (constants_gen_depends) + add_dependencies(${_TARGET_NAME} ${constants_gen_depends}) +- endif (constants_gen_depends) +-endfunction (tpqt_constants_gen _TARGET_NAME _SPEC_XML _OUTFILE) ++ endif () ++endfunction () + + function(tpqt_types_gen _TARGET_NAME _SPEC_XML _OUTFILE_DECL _OUTFILE_IMPL _NAMESPACE _REALINCLUDE _PRETTYINCLUDE) + tpqt_extract_depends(types_gen_args types_gen_depends ${ARGN}) +@@ -398,8 +404,8 @@ + + if (types_gen_depends) + add_dependencies(${_TARGET_NAME} ${types_gen_depends}) +- endif (types_gen_depends) +-endfunction(tpqt_types_gen _TARGET_NAME _SPEC_XML _OUTFILE_DECL _OUTFILE_IMPL _NAMESPACE _REALINCLUDE _PRETTYINCLUDE) ++ endif () ++endfunction() + + macro(tpqt_add_generic_unit_test _fancyName _name) + tpqt_generate_moc_i(${_name}.cpp ${CMAKE_CURRENT_BINARY_DIR}/_gen/${_name}.cpp.moc.hpp) +@@ -410,7 +416,7 @@ + + # Valgrind and Callgrind targets + _tpqt_add_check_targets(${_fancyName} ${_name} ${CMAKE_CURRENT_BINARY_DIR}/runGenericTest.sh ${CMAKE_CURRENT_BINARY_DIR}/test-${_name}) +-endmacro(tpqt_add_generic_unit_test _fancyName _name) ++endmacro() + + macro(tpqt_add_dbus_unit_test _fancyName _name) + tpqt_generate_moc_i(${_name}.cpp ${CMAKE_CURRENT_BINARY_DIR}/_gen/${_name}.cpp.moc.hpp) +@@ -422,7 +428,7 @@ + + # Valgrind and Callgrind targets + _tpqt_add_check_targets(${_fancyName} ${_name} ${with_session_bus} ${CMAKE_CURRENT_BINARY_DIR}/test-${_name}) +-endmacro(tpqt_add_dbus_unit_test _fancyName _name) ++endmacro() + + macro(_tpqt_add_check_targets _fancyName _name _runnerScript) + set_tests_properties(${_fancyName} +@@ -474,20 +480,20 @@ + COMMENT + "Running callgrind on test \"${_fancyName}\"") + add_dependencies(check-callgrind check-callgrind-${_fancyName}) +-endmacro(_tpqt_add_check_targets _fancyName _name) ++endmacro() + + function(tpqt_setup_dbus_test_environment) + file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/runDbusTest.sh " + ${test_environment} + sh ${CMAKE_SOURCE_DIR}/tools/with-session-bus.sh \\ + --config-file=${CMAKE_BINARY_DIR}/tests/dbus-1/session.conf -- $@ + ") +-endfunction(tpqt_setup_dbus_test_environment) ++endfunction() + + macro(make_install_path_absolute out in) + if (IS_ABSOLUTE "${in}") + set(${out} "${in}") +- else (IS_ABSOLUTE "${in}") ++ else () + set(${out} "\${TELEPATHY_QT${QT_VERSION_MAJOR}_INSTALL_DIR}/${in}") +- endif (IS_ABSOLUTE "${in}") +-endmacro(make_install_path_absolute out in) ++ endif () ++endmacro() + diff --git a/net-libs/telepathy-logger-qt/telepathy-logger-qt-15.04.0.ebuild b/net-libs/telepathy-logger-qt/telepathy-logger-qt-15.04.0.ebuild index 4aec999a5d2c..1e6f6e28ed24 100644 --- a/net-libs/telepathy-logger-qt/telepathy-logger-qt-15.04.0.ebuild +++ b/net-libs/telepathy-logger-qt/telepathy-logger-qt-15.04.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -32,3 +32,5 @@ RDEPEND=" DEPEND="${RDEPEND} ${PYTHON_DEPS} " + +PATCHES=( "${FILESDIR}/${P}-cmake-3.9.patch" ) |