~ubuntu-branches/ubuntu/raring/pykde4/raring

« back to all changes in this revision

Viewing changes to .pc/add_qt_kde_definitions.diff/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Philip Muškovac, Scott Kitterman
  • Date: 2012-12-08 14:17:32 UTC
  • mfrom: (28.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121208141732-u3ybrqh5063jdgel
Tags: 4:4.9.90-0ubuntu2
[ Philip Muškovac ]
* Bump build-dep on python-sip-dev to >= 4.14 
* Bump build-dep on python-qt4 and python-qt4-dev to >= 4.9

[ Scott Kitterman ]
* Add debian/patches/pythonpluginfactory_python3.diff to support KCMs
  written in Python 3
* Update debian/python3-pykde4.install
* Update debian/rules to proved version specific ABI tags for Python 3
  variants of kpythonplugingactory
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
if(SIP_VERSION STRLESS "040e00")    # These version numbers also appear in ../CMakeLists.txt
26
26
    message(FATAL_ERROR "The version of SIP found is too old. 4.14 or later is needed.")
27
 
endif(SIP_VERSION STRLESS "040e00")
 
27
endif()
28
28
 
29
29
find_package(PyQt4)
30
30
macro_log_feature(PYQT4_FOUND "PyQt4" "The PyQt bindings" "http://riverbankcomputing.com" TRUE
32
32
 
33
33
if(PYQT4_VERSION STRLESS "040905")  # These version numbers also appear in ../CMakeLists.txt
34
34
    message(FATAL_ERROR "The version of PyQt found is too old. 4.9 or later is required.")
35
 
endif(PYQT4_VERSION STRLESS "040905")
 
35
endif()
36
36
 
37
37
set(SOPRANO_MIN_VERSION "2.0")
38
38
macro_optional_find_package(Soprano)
42
42
macro_log_feature(Nepomuk_FOUND "Nepomuk" "Nepomuk Libraries" "kdesupport" FALSE "" "Required for Nepomuk Python bindings.")
43
43
 
44
44
macro_optional_find_package(KdepimLibs)
45
 
macro_log_feature(KDEPIMLIBS_FOUND "Kdepimlibs" "KDE pim Libraries" "kdepimlibs" FALSE "" "Required for Akonadi Python bindings.")
 
45
macro_log_feature(KdepimLibs_FOUND "Kdepimlibs" "KDE pim Libraries" "kdepimlibs" FALSE "" "Required for Akonadi Python bindings.")
46
46
 
47
47
macro_optional_find_package(PolkitQt)
48
48
macro_log_feature(POLKITQT_FOUND "Polkit-Qt" "Qt Wrapper around PolicyKit" "kdesupport" FALSE "" "Required to build PolicyKit-Qt support")
76
76
set(SIP_CONCAT_PARTS 8)
77
77
if (WIN32)
78
78
    set(SIP_TAGS ALL WS_WIN ${PYQT4_VERSION_TAG})
79
 
else (WIN32)
 
79
else ()
80
80
    set(SIP_TAGS ALL WS_X11 ${PYQT4_VERSION_TAG})
81
 
endif (WIN32)
 
81
endif ()
82
82
set(SIP_DISABLE_FEATURES VendorID PyQt_NoPrintRangeBug)
83
83
 
84
84
# Use an extra option when compiling on Python 3.
85
85
if (PYTHON_VERSION_MAJOR GREATER 2)
86
86
    if(PYQT4_VERSION STRGREATER "040904")
87
 
        # Disable for newer PyQt
88
 
        set(SIP_EXTRA_OPTIONS -g -x PyKDE_QVector -x Py_v3)
89
 
    else (PYQT4_VERSION STRGREATER "040904")
90
 
        set(SIP_EXTRA_OPTIONS -g -x Py_v3)
91
 
    endif(PYQT4_VERSION STRGREATER "040904")
 
87
            # Disable for newer PyQt
 
88
            set(SIP_EXTRA_OPTIONS -g -x PyKDE_QVector)
 
89
    else ()
 
90
            set(SIP_EXTRA_OPTIONS -g)
 
91
    endif()
92
92
else (PYTHON_VERSION_MAJOR GREATER 2)
93
93
    if(PYQT4_VERSION STRGREATER "040904")
94
94
        # Disable for newer PyQt
95
 
        set(SIP_EXTRA_OPTIONS -g -x PyKDE_QVector)
96
 
    else (PYQT4_VERSION STRGREATER "040904")
97
 
        set(SIP_EXTRA_OPTIONS -g)
98
 
    endif(PYQT4_VERSION STRGREATER "040904")
99
 
endif (PYTHON_VERSION_MAJOR GREATER 2)
 
95
        set(SIP_EXTRA_OPTIONS -g -x PyKDE_QVector -x Py_v3)
 
96
    else ()
 
97
            set(SIP_EXTRA_OPTIONS -g -x Py_v3)
 
98
    endif()
 
99
endif ()
100
100
 
101
101
add_definitions(-D_REENTRANT -DQT_CORE_LIB -DQT_GUI_LIB -DUSING_SOPRANO_NRLMODEL_UNSTABLE_API)
102
102
 
163
163
    set(SIP_EXTRA_FILES_DEPEND ${soprano_files_sip})
164
164
    add_sip_python_module(PyKDE4.soprano sip/soprano/sopranomod.sip ${SOPRANO_LIBRARIES} ${SOPRANO_CLIENT_LIBRARIES} ${SOPRANO_SERVER_LIBRARIES} ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY})
165
165
    set(PYKDE_MODULES "${PYKDE_MODULES} soprano")
166
 
endif(Soprano_FOUND)
 
166
endif()
167
167
 
168
168
if(Nepomuk_FOUND)
169
169
    include_directories(${NEPOMUK_INCLUDE_DIR})
171
171
    set(SIP_EXTRA_FILES_DEPEND ${nepomuk_files_sip})
172
172
    add_sip_python_module(PyKDE4.nepomuk sip/nepomuk/nepomukmod.sip ${NEPOMUK_LIBRARIES} ${NEPOMUK_QUERY_LIBRARIES} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${SOPRANO_LIBRARIES} ${KDE4_KIO_LIBS})
173
173
    set(PYKDE_MODULES "${PYKDE_MODULES} nepomuk")
174
 
endif(Nepomuk_FOUND)
 
174
endif()
175
175
 
176
 
if(KDEPIMLIBS_FOUND)
 
176
if(KdepimLibs_FOUND)
177
177
    include_directories(${KDEPIMLIBS_INCLUDE_DIR})
178
178
    file(GLOB akonadi_files_sip sip/akonadi/*.sip)
179
179
    set(SIP_EXTRA_FILES_DEPEND ${akonadi_files_sip})
180
180
    add_sip_python_module(PyKDE4.akonadi sip/akonadi/akonadimod.sip ${KDE4_AKONADI_LIBS} ${KDE4_AKONADI_KMIME_LIBS} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS})
181
181
    set(PYKDE_MODULES "${PYKDE_MODULES} akonadi")
182
 
endif(KDEPIMLIBS_FOUND)
 
182
endif()
183
183
 
184
184
if(POLKITQT_FOUND)
185
185
    include_directories(${POLKITQT_INCLUDE_DIR})
192
192
    set(SIP_EXTRA_FILES_DEPEND ${pollkitqt_files_sip})
193
193
    add_sip_python_module(PyKDE4.polkitqt sip/polkitqt/polkitqtmod.sip ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${POLKITQT_LIBRARIES})
194
194
    set(PYKDE_MODULES "${PYKDE_MODULES} polkitqt")
195
 
endif(POLKITQT_FOUND)
 
195
endif()
196
196
 
197
197
python_install(__init__.py ${PYTHON_SITE_PACKAGES_INSTALL_DIR}/PyKDE4)
198
198
 
250
250
add_subdirectory(examples)
251
251
if (PYTHON_VERSION_MAJOR LESS 3)
252
252
    add_subdirectory(kpythonpluginfactory)
253
 
endif (PYTHON_VERSION_MAJOR LESS 3)
 
253
endif ()
254
254
 
255
255
macro_display_feature_log()