diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-02-20 15:11:50 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-02-20 15:11:50 +0000 |
commit | 16449a80e28af2209916cc66d19c9a44ca2b90d9 (patch) | |
tree | b4cfe2332c7a6c5da27b6985bf05db4508df1a92 /dev-libs/libdbusmenu-qt | |
parent | 79599515788b85b18aa655e7b7f8cc05c1bbddd8 (diff) |
gentoo resync : 20.02.2019
Diffstat (limited to 'dev-libs/libdbusmenu-qt')
3 files changed, 296 insertions, 0 deletions
diff --git a/dev-libs/libdbusmenu-qt/Manifest b/dev-libs/libdbusmenu-qt/Manifest index 004ff7d1aba2..df52d9c9e399 100644 --- a/dev-libs/libdbusmenu-qt/Manifest +++ b/dev-libs/libdbusmenu-qt/Manifest @@ -1,3 +1,5 @@ +AUX libdbusmenu-qt-0.9.3_pre20160218-cmake.patch 7959 BLAKE2B feef71cd51c36607b60104d0ca24eadd269e79ad22a633625b1b855137f97b8da645e15b10a374911bb5e9ea33b71e17d9336211233f4f12155f3dfc5f28b685 SHA512 00db7fd1c5d90f03f0963abb413349043ef215cd7a9f41f78e4233ff53590a9b9854ad500b9899f7b344ce9853d8d8200abb31565fda855793e1edd6e76800c0 DIST libdbusmenu-qt_0.9.3+16.04.20160218.orig.tar.gz 46438 BLAKE2B 66b1fa44f28b5f4d5fa09afa988ca793ae892a7aeab6290b1650876a992e27a15af5a6a999080aa4c499295e2fa3de768fe5f185b5df2af36b957766508c1804 SHA512 dfaba59cedd320e6a3b5a9c0a5e13fb9e0952224e39cdd6ee3b32b03d95ac850a533e2a73835a7c0ead93b2283b9c235472bacb84e3d761ebe9e9398345314a9 EBUILD libdbusmenu-qt-0.9.3_pre20160218-r2.ebuild 1256 BLAKE2B dc7097ea4dbbb176a5b23aa4785f4b2c6a9afa759ab05fd751d2c37f170a54e772ea1ab61f429f1495a2ab0e39f04ade2375d45670f6a98029f3070dcdaf1e80 SHA512 f3e6d70dfe14ffd3f5188c60bd224a1b3614353181b878e034374a55c38adbf294b60ad8b0376ed12784628c978b395255925157967be7bd7779a68b1a45ec3e +EBUILD libdbusmenu-qt-0.9.3_pre20160218-r3.ebuild 826 BLAKE2B 8a6322d0553d41cd185962c00c895e93f108dba609eba9bfbd3eeb235482ea80715ed3fe1fdee23baf34bda86bd3c96bed497bb8bad54caf5102fcb85eb60e4b SHA512 4b51ccc17e42e9ff0f56b1fbb2e9fd37cfe3bb0c76df4f7ea20744efa3a653fdd06e02291cf80937fa77972bbec04adeb6df1cf38d2e9b530b3141477a9085da MISC metadata.xml 323 BLAKE2B 02dce303163a2303c73bb15ae09358e93077a751333d7204c2372ed7cf7667137ea4d633250b39ee5ee032316433cddedca5b80ec01ff8300d8ac221793bddbe SHA512 290f7befe52993609acc464791369b56b20c1584e4266166073d504dd0ea66a2e2f6f786fcc56e1928125b37dd3f7461ab29b00e17e012ef2ea6c34321f643ba diff --git a/dev-libs/libdbusmenu-qt/files/libdbusmenu-qt-0.9.3_pre20160218-cmake.patch b/dev-libs/libdbusmenu-qt/files/libdbusmenu-qt-0.9.3_pre20160218-cmake.patch new file mode 100644 index 000000000000..e4668a52fc91 --- /dev/null +++ b/dev-libs/libdbusmenu-qt/files/libdbusmenu-qt-0.9.3_pre20160218-cmake.patch @@ -0,0 +1,258 @@ +From 56669bd4e5ed21cfd2b0f5b94983792396695e5e Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com> +Date: Sun, 17 Feb 2019 19:10:55 +0100 +Subject: [PATCH] Use more GNUInstallDirs, fix pkgconfig libdir path, general + cleanup + +--- + CMakeLists.txt | 45 ++++++++++++----------------------- + cmake/modules/FindQJSON.cmake | 2 +- + dbusmenu-qt-config.cmake.in | 2 +- + dbusmenu-qt.pc.in | 6 ++--- + src/CMakeLists.txt | 16 ++++++------- + tests/CMakeLists.txt | 10 ++++---- + tools/testapp/CMakeLists.txt | 2 +- + 7 files changed, 34 insertions(+), 49 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 72cbc45..2d757ec 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.11) + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules") + + # Build options +-option(WITH_DOC "Build documentation (requires Doxygen)" ON) ++option(WITH_DOC "Build documentation (requires Doxygen)" OFF) + + # Versions + ## Package version +@@ -24,28 +24,8 @@ set(dbusmenu_qt_lib_PATCH_VERSION 0) + + set(dbusmenu_qt_lib_VERSION ${dbusmenu_qt_lib_SOVERSION}.${dbusmenu_qt_lib_API_VERSION}.${dbusmenu_qt_lib_PATCH_VERSION}) + +-# Check if we want to explicitly select the Qt version to be used or autodetect +-if (NOT USE_QT4 AND NOT USE_QT5) +- # Autodetect, prefering Qt5 +- message(STATUS "Autodetecting Qt version to use") +- find_package(Qt5Widgets QUIET) +- if (Qt5Widgets_FOUND) +- set(USE_QT5 TRUE) +- endif() +-endif() +- + # Detect for which Qt version we're building +-if (USE_QT5) +- find_package(Qt5Widgets REQUIRED) +- find_package(Qt5DBus REQUIRED) +- include_directories(${Qt5Widgets_INCLUDE_DIRS} ${Qt5DBus_INCLUDE_DIRS}) +- find_package(Qt5Core REQUIRED) +- set(CMAKE_AUTOMOC ON) +- set(CMAKE_AUTOMOC_RELAXED_MODE ON) +- set(CMAKE_POSITION_INDEPENDENT_CODE ON) +- +- set(QT_SUFFIX "qt5") +-else() ++if (USE_QT4) + find_package(Qt4 REQUIRED) + include_directories( + ${QT_INCLUDE_DIR} +@@ -55,6 +35,14 @@ else() + ) + + set(QT_SUFFIX "qt") ++else() ++ find_package(Qt5 CONFIG REQUIRED Core DBus Widgets) ++ include_directories(${Qt5Widgets_INCLUDE_DIRS} ${Qt5DBus_INCLUDE_DIRS}) ++ set(CMAKE_AUTOMOC ON) ++ set(CMAKE_AUTOMOC_RELAXED_MODE ON) ++ set(CMAKE_POSITION_INDEPENDENT_CODE ON) ++ ++ set(QT_SUFFIX "qt5") + endif() + + include (CheckCXXCompilerFlag) +@@ -76,9 +64,7 @@ endif (__DBUSMENU_HAVE_CXX11) + + include(CMakePackageConfigHelpers) + include(GNUInstallDirs) +-set(LIB_DESTINATION "${CMAKE_INSTALL_LIBDIR}") +-set(CMAKECONFIG_INSTALL_DIR "${LIB_DESTINATION}/cmake/dbusmenu-${QT_SUFFIX}") +-set(INCLUDE_INSTALL_DIR "include/dbusmenu-${QT_SUFFIX}") ++set(INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/dbusmenu-${QT_SUFFIX}") + + # dist targets + set(ARCHIVE_NAME libdbusmenu-${QT_SUFFIX}-${dbusmenu_qt_VERSION}) +@@ -103,7 +89,7 @@ add_dependencies(distcheck dist) + configure_file(dbusmenu-qt.pc.in ${CMAKE_BINARY_DIR}/dbusmenu-${QT_SUFFIX}.pc @ONLY) + + install(FILES ${CMAKE_BINARY_DIR}/dbusmenu-${QT_SUFFIX}.pc +- DESTINATION ${LIB_DESTINATION}/pkgconfig ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig + ) + + add_subdirectory(src) +@@ -118,7 +104,7 @@ if(WITH_DOC) + ) + + install(DIRECTORY ${CMAKE_BINARY_DIR}/html/ +- DESTINATION share/doc/libdbusmenu-${QT_SUFFIX}-doc ++ DESTINATION ${CMAKE_INSTALL_DOCDIR} + ) + endif(WITH_DOC) + +@@ -126,8 +112,8 @@ endif(WITH_DOC) + configure_package_config_file( + dbusmenu-qt-config.cmake.in + ${CMAKE_BINARY_DIR}/dbusmenu-${QT_SUFFIX}-config.cmake +- INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} ++ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/dbusmenu-${QT_SUFFIX} + PATH_VARS INCLUDE_INSTALL_DIR + ) + + write_basic_package_version_file( +@@ -140,6 +126,6 @@ write_basic_package_version_file( + install(FILES + ${CMAKE_BINARY_DIR}/dbusmenu-${QT_SUFFIX}-config.cmake + ${CMAKE_BINARY_DIR}/dbusmenu-${QT_SUFFIX}-config-version.cmake +- DESTINATION "${CMAKECONFIG_INSTALL_DIR}" ++ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/dbusmenu-${QT_SUFFIX}" + COMPONENT Devel + ) +--- a/cmake/modules/FindQJSON.cmake ++++ b/cmake/modules/FindQJSON.cmake +@@ -34,7 +34,7 @@ else (QJSON_INCLUDE_DIR AND QJSON_LIBRARIES) + qjson/parser.h + PATHS + ${PC_QJSON_INCLUDE_DIRS} +- ${INCLUDE_INSTALL_DIR} ++ ${CMAKE_INSTALL_INCLUDEDIR} + ${KDE4_INCLUDE_DIR} + ) + +--- a/dbusmenu-qt.pc.in ++++ b/dbusmenu-qt.pc.in +@@ -1,7 +1,7 @@ + prefix=@CMAKE_INSTALL_PREFIX@ +-exec_prefix=@CMAKE_INSTALL_PREFIX@ +-libdir=@CMAKE_INSTALL_PREFIX@/lib +-includedir=@CMAKE_INSTALL_PREFIX@/include/dbusmenu-@QT_SUFFIX@ ++exec_prefix=${prefix} ++libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ ++includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@/dbusmenu-@QT_SUFFIX@ + + Name: libdbusmenu-@QT_SUFFIX@ + Description: Qt implementation of dbusmenu spec +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -29,7 +29,7 @@ endif (__DBUSMENU_HAVE_CXX11) + # Check whether QIcon::name() exists. It was added in late Qt 4.7 cycle, and is + # not present in betas. + +-if (NOT USE_QT5) ++if (USE_QT4) + set(CMAKE_REQUIRED_INCLUDES "${QT_INCLUDE_DIR}") + set(CMAKE_REQUIRED_LIBRARIES "${QT_QTGUI_LIBRARIES};${QT_QTCORE_LIBRARIES}") + else() +@@ -64,7 +64,7 @@ include_directories( + ${CMAKE_BINARY_DIR}/src + ) + +-if (NOT USE_QT5) ++if (USE_QT4) + qt4_automoc(${dbusmenu_qt_SRCS}) + qt4_add_dbus_adaptor(dbusmenu_qt_SRCS + ${CMAKE_CURRENT_SOURCE_DIR}/com.canonical.dbusmenu.xml +@@ -88,7 +88,7 @@ set_target_properties(dbusmenu-${QT_SUFFIX} PROPERTIES + ) + + +-if (NOT USE_QT5) ++if (USE_QT4) + target_link_libraries(dbusmenu-${QT_SUFFIX} + ${QT_QTGUI_LIBRARIES} + ${QT_QTDBUS_LIBRARIES} +@@ -105,23 +105,23 @@ endif() + + # Make sure linking to the target adds dbusmenu-qt install directory + target_include_directories(dbusmenu-${QT_SUFFIX} +- INTERFACE "$<INSTALL_INTERFACE:${INCLUDE_INSTALL_DIR}>") ++ INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/dbusmenu-${QT_SUFFIX}>") + + install(TARGETS dbusmenu-${QT_SUFFIX} + EXPORT dbusmenu-${QT_SUFFIX}-targets +- LIBRARY DESTINATION ${LIB_DESTINATION} ++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION bin + ) + + install(EXPORT dbusmenu-${QT_SUFFIX}-targets +- DESTINATION ${CMAKECONFIG_INSTALL_DIR}) ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/dbusmenu-${QT_SUFFIX}) + + install(DIRECTORY . +- DESTINATION ${INCLUDE_INSTALL_DIR} ++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dbusmenu-${QT_SUFFIX} + FILES_MATCHING PATTERN "*.h" + PATTERN "*_p.h" EXCLUDE + ) + + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dbusmenu_version.h +- DESTINATION ${INCLUDE_INSTALL_DIR} ++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/dbusmenu-${QT_SUFFIX} + ) +--- a/tests/CMakeLists.txt ++++ b/tests/CMakeLists.txt +@@ -1,9 +1,9 @@ +-if (NOT USE_QT5) ++if (USE_QT4) + qt4_automoc(slowmenu.cpp) + endif() + add_executable(slowmenu slowmenu.cpp) + +-if (NOT USE_QT5) ++if (USE_QT4) + target_link_libraries(slowmenu + ${QT_QTGUI_LIBRARIES} + ${QT_QTDBUS_LIBRARIES} +@@ -77,7 +77,7 @@ set(dbusmenuexportertest_SRCS + testutils.cpp + ) + +-if (NOT USE_QT5) ++if (USE_QT4) + qt4_automoc(${dbusmenuexportertest_SRCS}) + endif() + +@@ -94,7 +94,7 @@ set(dbusmenuimportertest_SRCS + testutils.cpp + ) + +-if (NOT USE_QT5) ++if (USE_QT4) + qt4_automoc(${dbusmenuimportertest_SRCS}) + endif() + +@@ -110,7 +110,7 @@ set(dbusmenushortcuttest_SRCS + dbusmenushortcuttest.cpp + ) + +-if (NOT USE_QT5) ++if (USE_QT4) + qt4_automoc(${dbusmenushortcuttest_SRCS}) + endif() + +--- a/tools/testapp/CMakeLists.txt ++++ b/tools/testapp/CMakeLists.txt +@@ -4,7 +4,7 @@ set(qtapp_SRCS + + add_executable(dbusmenubench-qtapp ${qtapp_SRCS}) + +-if (NOT USE_QT5) ++if (USE_QT4) + # Qt4 + include_directories( + ${CMAKE_CURRENT_SOURCE_DIR}/../../src +-- +2.20.1 + diff --git a/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.3_pre20160218-r3.ebuild b/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.3_pre20160218-r3.ebuild new file mode 100644 index 000000000000..267ccc08f93e --- /dev/null +++ b/dev-libs/libdbusmenu-qt/libdbusmenu-qt-0.9.3_pre20160218-r3.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PV=${PV/_pre/+16.04.} +inherit cmake-utils + +DESCRIPTION="Library providing Qt implementation of DBusMenu specification" +HOMEPAGE="https://launchpad.net/libdbusmenu-qt/" +SRC_URI="https://launchpad.net/ubuntu/+archive/primary/+files/${PN}_${MY_PV}.orig.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +DEPEND=" + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 +" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN}-${MY_PV} + +PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) + +src_prepare() { + cmake-utils_src_prepare + + cmake_comment_add_subdirectory tools + # tests fail due to missing connection to dbus + cmake_comment_add_subdirectory tests +} |