diff options
author | Tomas Chvatal <scarabeus@gentoo.org> | 2010-12-21 14:37:08 +0000 |
---|---|---|
committer | Tomas Chvatal <scarabeus@gentoo.org> | 2010-12-21 14:37:08 +0000 |
commit | 5bb7674978f5e74fc90fb4aaa8a40cd5e36b4d59 (patch) | |
tree | c70bc8af9fa43aa224404187d772f2776b54653b /sci-geosciences | |
parent | Stable on alpha, bug #348344 (diff) | |
download | gentoo-2-5bb7674978f5e74fc90fb4aaa8a40cd5e36b4d59.tar.gz gentoo-2-5bb7674978f5e74fc90fb4aaa8a40cd5e36b4d59.tar.bz2 gentoo-2-5bb7674978f5e74fc90fb4aaa8a40cd5e36b4d59.zip |
Fix bug #342315 and bug #332749. Thanks to Attila Olah for the patch.
(Portage version: 2.2.0_alpha9/cvs/Linux x86_64)
Diffstat (limited to 'sci-geosciences')
-rw-r--r-- | sci-geosciences/qgis/ChangeLog | 6 | ||||
-rw-r--r-- | sci-geosciences/qgis/files/qgis-1.5.0-sip.patch | 76 | ||||
-rw-r--r-- | sci-geosciences/qgis/qgis-1.5.0.ebuild | 10 |
3 files changed, 87 insertions, 5 deletions
diff --git a/sci-geosciences/qgis/ChangeLog b/sci-geosciences/qgis/ChangeLog index bc521387b2b3..1635c1d3a7c0 100644 --- a/sci-geosciences/qgis/ChangeLog +++ b/sci-geosciences/qgis/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-geosciences/qgis # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/qgis/ChangeLog,v 1.15 2010/08/06 19:06:20 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/qgis/ChangeLog,v 1.16 2010/12/21 14:37:08 scarabeus Exp $ + + 21 Dec 2010; Tomáš Chvátal <scarabeus@gentoo.org> qgis-1.5.0.ebuild, + +files/qgis-1.5.0-sip.patch: + Fix bug #342315 and bug #332749. Thanks to Attila Olah for the patch. *qgis-1.5.0 (06 Aug 2010) diff --git a/sci-geosciences/qgis/files/qgis-1.5.0-sip.patch b/sci-geosciences/qgis/files/qgis-1.5.0-sip.patch new file mode 100644 index 000000000000..61fc44e67aac --- /dev/null +++ b/sci-geosciences/qgis/files/qgis-1.5.0-sip.patch @@ -0,0 +1,76 @@ +diff -rc qgis-1.5.0/cmake/FindSIP.cmake qgis-1.5.0-patched/cmake/FindSIP.cmake +*** qgis-1.5.0/cmake/FindSIP.cmake Sat Jan 16 12:08:04 2010 +--- qgis-1.5.0-patched/cmake/FindSIP.cmake Wed Nov 17 16:46:34 2010 +*************** +*** 36,41 **** +--- 36,42 ---- + EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${_find_sip_py} OUTPUT_VARIABLE sip_config) + IF(sip_config) + STRING(REGEX REPLACE "^sip_version:([^\n]+).*$" "\\1" SIP_VERSION ${sip_config}) ++ STRING(REGEX REPLACE ".*\nsip_version_num:([^\n]+).*$" "\\1" SIP_VERSION_NUM ${sip_config}) + STRING(REGEX REPLACE ".*\nsip_version_str:([^\n]+).*$" "\\1" SIP_VERSION_STR ${sip_config}) + STRING(REGEX REPLACE ".*\nsip_bin:([^\n]+).*$" "\\1" SIP_BINARY_PATH ${sip_config}) + STRING(REGEX REPLACE ".*\ndefault_sip_dir:([^\n]+).*$" "\\1" SIP_DEFAULT_SIP_DIR ${sip_config}) +diff -rc qgis-1.5.0/cmake/FindSIP.py qgis-1.5.0-patched/cmake/FindSIP.py +*** qgis-1.5.0/cmake/FindSIP.py Sat Jan 16 12:04:41 2010 +--- qgis-1.5.0-patched/cmake/FindSIP.py Wed Nov 17 16:46:57 2010 +*************** +*** 9,14 **** +--- 9,15 ---- + + sipcfg = sipconfig.Configuration() + print("sip_version:%06.0x" % sipcfg.sip_version) ++ print("sip_version_num:%d" % sipcfg.sip_version) + print("sip_version_str:%s" % sipcfg.sip_version_str) + print("sip_bin:%s" % sipcfg.sip_bin) + print("default_sip_dir:%s" % sipcfg.default_sip_dir) +diff -rc qgis-1.5.0/python/CMakeLists.txt qgis-1.5.0-patched/python/CMakeLists.txt +*** qgis-1.5.0/python/CMakeLists.txt Sat May 15 10:21:42 2010 +--- qgis-1.5.0-patched/python/CMakeLists.txt Wed Nov 17 16:47:57 2010 +*************** +*** 39,44 **** +--- 39,48 ---- + SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} PROXY_FACTORY) + ENDIF(PYQT4_VERSION_NUM LESS 263680) + ++ IF(NOT PYQT4_VERSION_NUM LESS 263941) # 0x040705 ++ SET(SIP_DISABLE_FEATURES ${SIP_DISABLE_FEATURES} QSETINT_CONVERSION) ++ ENDIF(NOT PYQT4_VERSION_NUM LESS 263941) ++ + # core module + FILE(GLOB sip_files_core core/*.sip) + set(SIP_EXTRA_FILES_DEPEND ${sip_files_core}) +diff -rc qgis-1.5.0/python/core/conversions.sip qgis-1.5.0-patched/python/core/conversions.sip +*** qgis-1.5.0/python/core/conversions.sip Tue Apr 20 14:25:42 2010 +--- qgis-1.5.0-patched/python/core/conversions.sip Wed Nov 17 16:45:03 2010 +*************** +*** 14,19 **** +--- 14,21 ---- + - QMap<int, QgsOverlayObject*>* + */ + ++ %Feature QSETINT_CONVERSION ++ + %ModuleHeaderCode + // From Python 2.5, some functions use Py_ssize_t instead of int + // thus this typedef is for maintaining backward compatibility +*************** +*** 265,270 **** +--- 267,273 ---- + + + ++ %If (QSETINT_CONVERSION) + %MappedType QSet<int> + { + %TypeHeaderCode +*************** +*** 316,321 **** +--- 319,325 ---- + %End + + }; ++ %End + + + template <TYPE> diff --git a/sci-geosciences/qgis/qgis-1.5.0.ebuild b/sci-geosciences/qgis/qgis-1.5.0.ebuild index 95181fb79865..1ae75c554fd2 100644 --- a/sci-geosciences/qgis/qgis-1.5.0.ebuild +++ b/sci-geosciences/qgis/qgis-1.5.0.ebuild @@ -1,12 +1,12 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/qgis/qgis-1.5.0.ebuild,v 1.1 2010/08/06 19:06:20 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/qgis/qgis-1.5.0.ebuild,v 1.2 2010/12/21 14:37:08 scarabeus Exp $ -EAPI="2" +EAPI=3 PYTHON_USE_WITH="sqlite" PYTHON_DEPEND="python? 2" -inherit python cmake-utils eutils +inherit python base cmake-utils eutils DESCRIPTION="User friendly Geographic Information System" HOMEPAGE="http://www.qgis.org/" @@ -38,13 +38,15 @@ RDEPEND=">=sci-libs/gdal-1.6.1[geos,postgres?,python?,sqlite?] >=dev-db/postgresql-server-8.4 ) ) - python? ( dev-python/PyQt4[sql,svg] ) + python? ( dev-python/PyQt4[X,sql,svg] ) sqlite? ( dev-db/sqlite:3 )" DEPEND="${RDEPEND} sys-devel/bison sys-devel/flex" +PATCHES=( "${FILESDIR}/${P}-sip.patch" ) + pkg_setup() { python_set_active_version 2 python_pkg_setup |