diff options
author | Pino Toscano <pino@kde.org> | 2017-05-20 08:08:20 +0200 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2017-05-20 08:08:20 +0200 |
commit | 97ba63aafa510e64c78a529cb5e88eebd2e97967 (patch) | |
tree | aa845b80f997f86db2fef8878b8d55576dff189a /attic/modules/FindPolkitQt.cmake | |
parent | b58820c4af6407ca6a67d342d7bc43ab09778e7d (diff) | |
download | extra-cmake-modules-97ba63aafa510e64c78a529cb5e88eebd2e97967.tar.gz extra-cmake-modules-97ba63aafa510e64c78a529cb5e88eebd2e97967.tar.bz2 |
Drop modules from attic that are not useful anymore
Even if they are in attic and not actually in use, drop a number of
modules (and old tests) that it does not make sense to keep carry
further:
- FindAlsa.cmake, config-alsa.h.cmake:
cmake has been providing a better FindALSA for long time
- FindEigen.cmake, FindEigen2.cmake & test:
Eigen v1 & v2 are deprecated and unmaintained for years
- FindGStreamer.cmake:
gstreamer-0.10 is long dead upstream
- FindKdcraw.cmake, FindKDE4Workspace.cmake, FindKdeMultimedia.cmake,
FindKDevPlatform.cmake, FindKexiv2.cmake, FindKipi.cmake,
FindLibAttica.cmake, FindLibKonq.cmake:
modules for KDE 4 libraries -- they are provided already by kdelibs 4.x,
and the frameworks versions of those libraries provide cmake config
files already
- FindKNepomuk.cmake, FindKonto.cmake, FindNepomuk.cmake,
NepomukAddOntologyClasses.cmake, NepomukMacros.cmake:
Nepomuk stuff, which is long dead
- FindKopete.cmake:
the Frameworks version of Kopete is not released yet, so it'd rather
provide own cmake config files
- FindKorundum.cmake:
Korudum is dead upstream, and so is Ruby 1.8
- FindLCMS.cmake & test:
LCMS 1 is dead for many years already
- FindMusicBrainz.cmake:
libmusicbrainz v2 is long dead, and the web service API it uses was
dismantled years ago
- FindOpenEXR.cmake & test:
ECM already provides an improved and polished version of this module
- FindPolkitQt.cmake:
polkit-qt is long dead, replaced by polkit-qt-1
- FindPopplerQt4.cmake:
ECM 5.19+ already provides a better FindPoppler module
- FindSharedDesktopOntologies.cmake:
dead upstream, but also used to provide cmake config files already
- tests for Blitz, Flex, LibXslt:
their modules are not even in attic
Diffstat (limited to 'attic/modules/FindPolkitQt.cmake')
-rw-r--r-- | attic/modules/FindPolkitQt.cmake | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/attic/modules/FindPolkitQt.cmake b/attic/modules/FindPolkitQt.cmake deleted file mode 100644 index 21285f79..00000000 --- a/attic/modules/FindPolkitQt.cmake +++ /dev/null @@ -1,94 +0,0 @@ -# - Try to find Polkit-qt -# Once done this will define -# -# POLKITQT_FOUND - system has Polkit-qt -# POLKITQT_INCLUDE_DIR - the Polkit-qt include directory -# POLKITQT_LIBRARIES - Link these to use all Polkit-qt libs -# POLKITQT_CORE_LIBRARY - Link this to use the polkit-qt-core library only -# POLKITQT_GUI_LIBRARY - Link this to use GUI elements in polkit-qt (polkit-qt-gui) -# POLKITQT_DEFINITIONS - Compiler switches required for using Polkit-qt -# POLKITQT_POLICY_FILES_INSTALL_DIR - The directory where policy files should be installed to. -# -# The minimum required version of PolkitQt can be specified using the -# standard syntax, e.g. find_package(PolkitQt 1.0) -# For compatiblity, this can also be done by setting the POLKITQT_MIN_VERSION variable. - -# Copyright (c) 2009, Daniel Nicoletti, <dantti85-pk@yahoo.com.br> -# Copyright (c) 2009, Dario Freddi, <drf54321@gmail.com> -# Copyright (c) 2009, Michal Malek, <michalm@jabster.pl> -# Copyright (c) 2009, Alexander Neundorf, <neundorf@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -# Support POLKITQT_MIN_VERSION for compatibility: -if(NOT PolkitQt_FIND_VERSION) - set(PolkitQt_FIND_VERSION "${POLKITQT_MIN_VERSION}") -endif() - -# the minimum version of PolkitQt we require -if(NOT PolkitQt_FIND_VERSION) - set(PolkitQt_FIND_VERSION "0.9.3") -endif() - -if (NOT WIN32) - # use pkg-config to get the directories and then use these values - # in the FIND_PATH() and FIND_LIBRARY() calls - find_package(PkgConfig) - pkg_check_modules(PC_POLKITQT QUIET polkit-qt) - set(POLKITQT_DEFINITIONS ${PC_POLKITQT_CFLAGS_OTHER}) -endif (NOT WIN32) - -find_path( POLKITQT_INCLUDE_DIR - NAMES polkit-qt/auth.h - PATH_SUFFIXES PolicyKit -) - -find_file( POLKITQT_VERSION_FILE - polkit-qt/polkitqtversion.h - HINTS ${POLKITQT_INCLUDE_DIR} -) - -if(POLKITQT_VERSION_FILE AND NOT POLKITQT_VERSION) - file(READ ${POLKITQT_VERSION_FILE} POLKITQT_VERSION_CONTENT) - string (REGEX MATCH "POLKITQT_VERSION_STRING \".*\"\n" POLKITQT_VERSION_MATCH "${POLKITQT_VERSION_CONTENT}") - - if(POLKITQT_VERSION_MATCH) - string(REGEX REPLACE "POLKITQT_VERSION_STRING \"(.*)\"\n" "\\1" _POLKITQT_VERSION ${POLKITQT_VERSION_MATCH}) - endif() - set(POLKITQT_VERSION "${_POLKITQT_VERSION}" CACHE STRING "Version number of PolkitQt" FORCE) -endif() - -find_library( POLKITQT_CORE_LIBRARY - NAMES polkit-qt-core - HINTS ${PC_POLKITQT_LIBDIR} -) -find_library( POLKITQT_GUI_LIBRARY - NAMES polkit-qt-gui - HINTS ${PC_POLKITQT_LIBDIR} -) -set(POLKITQT_LIBRARIES ${POLKITQT_GUI_LIBRARY} ${POLKITQT_CORE_LIBRARY}) - -include(FindPackageHandleStandardArgs) -# Use the extended (new) syntax for FPHSA(): -find_package_handle_standard_args(PolkitQt REQUIRED_VARS POLKITQT_GUI_LIBRARY POLKITQT_CORE_LIBRARY POLKITQT_INCLUDE_DIR - VERSION_VAR POLKITQT_VERSION) - -mark_as_advanced(POLKITQT_INCLUDE_DIR - POLKITQT_CORE_LIBRARY - POLKITQT_GUI_LIBRARY - POLKITQT_VERSION_FILE - ) - -set(POLKITQT_POLICY_FILES_INSTALL_DIR share/PolicyKit/policy/) - -if(POLKITQT_FOUND) - get_filename_component(_POLKITQT_INSTALL_PREFIX "${POLKITQT_CORE_LIBRARY}" PATH) - get_filename_component(_POLKITQT_INSTALL_PREFIX "${_POLKITQT_INSTALL_PREFIX}" PATH) - if ( NOT _POLKITQT_INSTALL_PREFIX STREQUAL CMAKE_INSTALL_PREFIX ) - message("WARNING: Installation prefix does not match PolicyKit install prefixes. You probably will need to move files installed " - "in ${CMAKE_INSTALL_PREFIX}/${POLKITQT_POLICY_FILES_INSTALL_DIR} and by dbus_add_activation_system_service to the ${_POLKITQT_INSTALL_PREFIX}/${POLKITQT_POLICY_FILES_INSTALL_DIR} prefix") - endif (NOT _POLKITQT_INSTALL_PREFIX STREQUAL CMAKE_INSTALL_PREFIX) -endif() - |