Skip to content

Commit

Permalink
make PyQt4 detection work with CMake 2.6.0 as found in Debian lenny
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13473 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 13, 2010
1 parent 9cb1562 commit 7a21742
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
12 changes: 9 additions & 3 deletions cmake/FindPyQt4.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
#
# PYQT4_SIP_FLAGS - The SIP flags used to build PyQt.

IF(EXISTS PYQT4_VERSION)
IF(EXISTS PYQT4_VERSION_STR)
# Already in cache, be silent
SET(PYQT4_FOUND TRUE)
ELSE(EXISTS PYQT4_VERSION)
ELSE(EXISTS PYQT4_VERSION_STR)

FIND_FILE(_find_pyqt_py FindPyQt.py PATHS ${CMAKE_MODULE_PATH})

Expand All @@ -50,4 +50,10 @@ ELSE(EXISTS PYQT4_VERSION)
ENDIF(PYQT4_FIND_REQUIRED)
ENDIF(PYQT4_FOUND)

ENDIF(EXISTS PYQT4_VERSION)
ENDIF(EXISTS PYQT4_VERSION_STR)

STRING(REGEX REPLACE "^([0-9]*)\\.[0-9]*\\.[0-9]*$" "\\1" PYQT4_MAJOR_VERSION ${PYQT4_VERSION_STR})
STRING(REGEX REPLACE "^[0-9]*\\.([0-9]*)\\.[0-9]*$" "\\1" PYQT4_MINOR_VERSION ${PYQT4_VERSION_STR})
STRING(REGEX REPLACE "^[0-9]*\\.[0-9]*\\.([0-9]*)$" "\\1" PYQT4_PATCH_VERSION ${PYQT4_VERSION_STR})
MATH( EXPR PYQT4_NUM_VERSION "${PYQT4_MAJOR_VERSION}*10000 + ${PYQT4_MINOR_VERSION}*100 + ${PYQT4_PATCH_VERSION}")

6 changes: 3 additions & 3 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ qgis (1.5.0) UNRELEASED; urgency=low

* new development version after 1.5 branch
* adapted Francesco Paolo Lovergine's updates to Debian qgis 1.4 package
* require CMake >2.6 and Qt 4.4 for sid
* require CMake >2.6 and Qt 4.4
* remove circular dependencies
* integrate new GRASS raster provider and remove dependency to
libgdal1-$VERSION-grass
* add spatialquery plugin
* include qgis.g.browser in grass plugin
* drop symbol tracking, C++ ABIs change too frequently
* drop symbol tracking as C++ ABIs change too frequently

-- Jürgen E. Fischer <jef@norbit.de> Sat, 08 May 2010 13:26:13 +0200
-- Jürgen E. Fischer <jef@norbit.de> Thu, 13 May 2010 10:54:06 +0200

qgis (1.4.0) UNRELEASED; urgency=low

Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Section: science
Priority: extra
Maintainer: Quantum GIS developers <qgis-developer@lists.osgeo.org>
Build-Depends: debhelper (>= 7), libgdal1-dev, libpq-dev,
libgeos-dev (>= 3.0.0), grass-dev, libsqlite3-dev, libgsl0-dev, libproj-dev, libexpat1-dev,
libgeos-dev (>= 3.0.0), grass-dev, libsqlite3-dev, libgsl0-dev, proj (< 4.7.0) | libproj-dev (>= 4.7.0), libexpat1-dev,
flex, bison, python-dev, cmake (>= 2.6), python-sip4 (>= 4.5.0), python-central (>=0.5), python,
sharutils, sip4 (>= 4.5), libqt4-core (>=4.4.0), libqt4-dev (>=4.4.0), libqt4-gui (>=4.4.0),
libqt4-sql (>=4.4.0), python-qt4 (>=4.1.0), python-qt4-dev (>=4.1.0),
Expand Down
4 changes: 2 additions & 2 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ IF(MSVC)
ADD_DEFINITIONS(-DNOMINMAX)
ENDIF(MSVC)

IF(${PYQT4_VERSION_STR} VERSION_LESS "4.6.0")
IF(${PYQT4_NUM_VERSION} LESS 40600)
SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} PROXY_FACTORY)
ENDIF(${PYQT4_VERSION_STR} VERSION_LESS "4.6.0")
ENDIF(${PYQT4_NUM_VERSION} LESS 40600)

# core module
FILE(GLOB sip_files_core core/*.sip)
Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ void QgsSimpleMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV
{
QMatrix transform;

bool hasDataDefinedRotation = context.renderHints() & QgsSymbolV2::DataDefinedRotation;
// bool hasDataDefinedRotation = context.renderHints() & QgsSymbolV2::DataDefinedRotation;
bool hasDataDefinedSize = context.renderHints() & QgsSymbolV2::DataDefinedSizeScale;

// move to the desired position
Expand Down

0 comments on commit 7a21742

Please sign in to comment.