diff options
author | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2014-07-29 20:33:45 +0300 |
---|---|---|
committer | Raphael Kubo da Costa <rakuco@FreeBSD.org> | 2014-07-29 20:33:45 +0300 |
commit | 3e56cadc9e7bb446772c9dc8ae9feea219a0929d (patch) | |
tree | a752c8f5cad88fd2f452f1820f0cc11d44622f70 /attic/modules/FindPyKDE4.cmake | |
parent | 3f375beaf555ceba66b869089e1a56f11b12a217 (diff) | |
download | extra-cmake-modules-3e56cadc9e7bb446772c9dc8ae9feea219a0929d.tar.gz extra-cmake-modules-3e56cadc9e7bb446772c9dc8ae9feea219a0929d.tar.bz2 |
Make FindPyKDE4 work with PyQt's new build system.
Since PyQt 4.10, PyQt.pyqtconfig is deprecated and not available unless
PyQt is built using the old configure script.
PyKDE4 itself has recently been adjusted to mimic PyQt itself and only
install its pykdeconfig module if pyqtconfig is present. Additionally,
information such as SIP flags and the directory where PyKDE's SIP files
are installed are now also provided in the
PyKDE4.kdecore.PYKDE_CONFIGURATION dict.
This commit completely rewrites FindPyKDE4.py to make it look like
FindPyQt.cmake after commit a7e4743: most of the information used by
FindPyKDE4.cmake is fetched from PyKDE4.kdecore, and we first try to
obtain the SIP flags and directory from pykdeconfig and, if it fails, we
use PYKDE_CONFIGURATION.
Furthermore, FindPyKDE4.py now only prints the variables that are
actually consumed by FindPyKDE4.cmake -- it is not possible to obtain
all the data provided by pykdeconfig in PYKDE_CONFIGURATION. We've also
stopped reading and setting PYKDE4_VERSION_TAG, since PyKDE4 stopped
setting a KDE tag in 2008 (and its value was 3_92_0 at the time).
(Forwardport kdelibs 4d29cf8)
Diffstat (limited to 'attic/modules/FindPyKDE4.cmake')
-rw-r--r-- | attic/modules/FindPyKDE4.cmake | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/attic/modules/FindPyKDE4.cmake b/attic/modules/FindPyKDE4.cmake index 98f7c374..3b879636 100644 --- a/attic/modules/FindPyKDE4.cmake +++ b/attic/modules/FindPyKDE4.cmake @@ -25,7 +25,6 @@ IF(PYTHONINTERP_FOUND) STRING(REGEX REPLACE ".*\npykde_version_str:([^\n]+).*$" "\\1" PYKDE4_VERSION_STR ${pykde_config}) STRING(REGEX REPLACE ".*\npykde_kde_sip_flags:([^\n]+).*$" "\\1" PYKDE4_SIP_FLAGS ${pykde_config}) STRING(REGEX REPLACE ".*\npykde_sip_dir:([^\n]+).*$" "\\1" PYKDE4_SIP_DIR ${pykde_config}) - STRING(REGEX REPLACE ".*\npykde_version_tag:([^\n]+).*$" "\\1" PYKDE4_VERSION_TAG ${pykde_config}) MESSAGE(STATUS "Found PyKDE4 version ${PYKDE4_VERSION_STR} ${PYKDE4_SIP_DIR}") SET(PYKDE4_FOUND TRUE) |