pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/kdebindings4-python Add a copy of FindPolkitQt.cma...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b5d007a416e1
branches: trunk
changeset: 567872:b5d007a416e1
user: markd <markd%pkgsrc.org@localhost>
date: Thu Nov 26 20:00:20 2009 +0000
description:
Add a copy of FindPolkitQt.cmake to the cmake module path to remove a
circular dependency between kdebindings4-python and kdebase-workspace4.
Bump PKGREVISION.
diffstat:
x11/kdebindings4-python/Makefile | 7 +-
x11/kdebindings4-python/files/FindPolkitQt.cmake | 94 ++++++++++++++++++++++++
2 files changed, 99 insertions(+), 2 deletions(-)
diffs (121 lines):
diff -r 342bf71b245e -r b5d007a416e1 x11/kdebindings4-python/Makefile
--- a/x11/kdebindings4-python/Makefile Thu Nov 26 19:55:13 2009 +0000
+++ b/x11/kdebindings4-python/Makefile Thu Nov 26 20:00:20 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2009/11/21 20:13:27 markd Exp $
+# $NetBSD: Makefile,v 1.4 2009/11/26 20:00:20 markd Exp $
PKGNAME= kdebindings4-python-${_KDE_VERSION}
-PKGREVISION= 1
+PKGREVISION= 2
DISTNAME= kdebindings-${_KDE_VERSION}
CATEGORIES= misc
COMMENT= Python bindings for the KDE integrated X11 desktop
@@ -21,6 +21,9 @@
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
+post-extract:
+ ${CP} ${FILESDIR}/FindPolkitQt.cmake ${WRKSRC}/cmake/modules
+
.include "../../meta-pkgs/kde4/kde4.mk"
.include "../../lang/python/application.mk"
diff -r 342bf71b245e -r b5d007a416e1 x11/kdebindings4-python/files/FindPolkitQt.cmake
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/kdebindings4-python/files/FindPolkitQt.cmake Thu Nov 26 20:00:20 2009 +0000
@@ -0,0 +1,94 @@
+# - 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
+# POLKITQT_GUI_LIBRARY
+# POLKITQT_DEFINITIONS - Compiler switches required for using Polkit-qt
+
+# Copyright (c) 2008, Adrien Bustany, <madcat%mymadcat.com@localhost>
+# Copyright (c) 2009, Daniel Nicoletti, <dantti85-pk%yahoo.com.br@localhost>
+# Copyright (c) 2009, Dario Freddi, <drf54321%gmail.com@localhost>
+# Copyright (c) 2009, Michal Malek, <michalm%jabster.pl@localhost>
+#
+# Redistribution and use is allowed according to the terms of the GPLv2+ license.
+
+if (POLKITQT_INCLUDE_DIR AND POLKITQT_LIB)
+ set(POLKITQT_FIND_QUIETLY TRUE)
+endif (POLKITQT_INCLUDE_DIR AND POLKITQT_LIB)
+
+include(FindPkgConfig)
+
+if (NOT POLKITQT_MIN_VERSION)
+ set(POLKITQT_MIN_VERSION "0.9.0")
+endif (NOT POLKITQT_MIN_VERSION)
+
+pkg_search_module( POLKITQT polkit-qt )
+
+if (POLKITQT_FOUND)
+ if (POLKITQT_VERSION VERSION_LESS POLKITQT_MIN_VERSION)
+ message(STATUS "Found Polkit-Qt release < ${POLKITQT_MIN_VERSION}")
+ message(STATUS "You need Polkit-Qt version ${POLKITQT_MIN_VERSION} or newer to compile this component")
+ set(POLKITQT_FOUND FALSE)
+ return()
+ else (POLKITQT_VERSION VERSION_LESS POLKITQT_MIN_VERSION)
+ message(STATUS "Found Polkit-Qt release >= ${POLKITQT_MIN_VERSION}")
+ endif (POLKITQT_VERSION VERSION_LESS POLKITQT_MIN_VERSION)
+else (POLKITQT_FOUND)
+ set(POLKITQT_FOUND FALSE)
+ message(STATUS "Cannot find Polkit-Qt library!")
+ return()
+endif (POLKITQT_FOUND)
+
+
+# find_path( POLKITQT_INCLUDE_DIR PolicyKit/policykit-qt/Polkit-qt )
+find_path( POLKITQT_INCLUDE_DIR
+ NAMES PolicyKit/polkit-qt/
+ HINTS ${POLKITQT_INCLUDEDIR}
+)
+
+find_library( POLKITQT_CORE_LIBRARY
+ NAMES polkit-qt-core
+ HINTS ${POLKITQT_LIBDIR}
+)
+find_library( POLKITQT_GUI_LIBRARY
+ NAMES polkit-qt-gui
+ HINTS ${POLKITQT_LIBDIR}
+)
+
+if (POLKITQT_INCLUDE_DIR AND POLKITQT_CORE_LIBRARY AND POLKITQT_GUI_LIBRARY)
+ set(POLKITQT_FOUND TRUE)
+else (POLKITQT_INCLUDE_DIR AND POLKITQT_CORE_LIBRARY AND POLKITQT_GUI_LIBRARY)
+ set(POLKITQT_FOUND FALSE)
+endif (POLKITQT_INCLUDE_DIR AND POLKITQT_CORE_LIBRARY AND POLKITQT_GUI_LIBRARY)
+
+set(POLKITQT_LIBRARIES ${POLKITQT_CORE_LIBRARY} ${POLKITQT_GUI_LIBRARY})
+
+set(POLKITQT_INCLUDE_DIR ${POLKITQT_INCLUDE_DIR}/PolicyKit/polkit-qt ${POLKITQT_INCLUDE_DIR}/PolicyKit/)
+
+set(POLICY_FILES_INSTALL_DIR ${POLKITQT_PREFIX}/share/PolicyKit/policy/)
+
+if (POLKITQT_FOUND)
+ if (NOT POLKITQT_FIND_QUIETLY)
+ message(STATUS "Found Polkit-Qt: ${POLKITQT_LIBRARIES}")
+ endif (NOT POLKITQT_FIND_QUIETLY)
+else (POLKITQT_FOUND)
+ if (POLKITQT_FIND_REQUIRED)
+ message(FATAL_ERROR "Could NOT find Polkit-Qt")
+ endif (POLKITQT_FIND_REQUIRED)
+endif (POLKITQT_FOUND)
+
+mark_as_advanced(POLKITQT_INCLUDE_DIR POLKITQT_LIB)
+
+macro(dbus_add_activation_system_service _sources)
+ pkg_search_module( DBUS dbus-1 )
+ foreach (_i ${_sources})
+ get_filename_component(_service_file ${_i} ABSOLUTE)
+ string(REGEX REPLACE "\\.service.*$" ".service" _output_file ${_i})
+ set(_target ${CMAKE_CURRENT_BINARY_DIR}/${_output_file})
+ configure_file(${_service_file} ${_target})
+ install(FILES ${_target} DESTINATION ${DBUS_PREFIX}/share/dbus-1/system-services )
+ endforeach (_i ${ARGN})
+endmacro(dbus_add_activation_system_service _sources)
Home |
Main Index |
Thread Index |
Old Index