From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 12F39138CD8 for ; Thu, 4 Jun 2015 18:47:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 041DCE0973; Thu, 4 Jun 2015 18:44:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CECD5E0959 for ; Thu, 4 Jun 2015 18:44:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7096D340E7D for ; Thu, 4 Jun 2015 18:44:48 +0000 (UTC) Received: by oystercatcher.gentoo.org (Postfix, from userid 2323) id 094B8A80; Thu, 4 Jun 2015 18:44:43 +0000 (UTC) From: "Michael Palimaka (kensington)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, kensington@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in kde-apps/kig/files: kig-4.12.0-boostpython.patch X-VCS-Repository: gentoo-x86 X-VCS-Files: kig-4.12.0-boostpython.patch X-VCS-Directories: kde-apps/kig/files X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20150604184443.094B8A80@oystercatcher.gentoo.org> Date: Thu, 4 Jun 2015 18:44:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 89350d91-07a6-4d91-b435-0cab41a2e0a4 X-Archives-Hash: 2dd387916690f3026fd6ae64a9d67900 kensington 15/06/04 18:44:43 Added: kig-4.12.0-boostpython.patch Log: Moved package from kde-base to kde-apps. (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!) Revision Changes Path 1.1 kde-apps/kig/files/kig-4.12.0-boostpython.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-apps/kig/files/kig-4.12.0-boostpython.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-apps/kig/files/kig-4.12.0-boostpython.patch?rev=1.1&content-type=text/plain Index: kig-4.12.0-boostpython.patch =================================================================== diff --git a/cmake/modules/FindBoostPython.cmake b/cmake/modules/FindBoostPython.cmake index 2ccc161..02d9bf6 100644 --- a/cmake/modules/FindBoostPython.cmake +++ b/cmake/modules/FindBoostPython.cmake @@ -74,10 +74,10 @@ if(HAVE_BOOST_SHARED_PTR_HPP AND Boost_PYTHON_FOUND) # Second try: try pkg-config way find_package(PkgConfig) if(PKG_CONFIG_FOUND) - set(PYTHON_VERSIONS "python;python2.7;python2.6;python2.5;python2.4;python2.3;python2.2") + execute_process(COMMAND python -c "import sys; sys.stdout.write('.'.join(str(x) for x in sys.version_info[:2]))" OUTPUT_VARIABLE PYTHON_VERSIONS) foreach(_pyver ${PYTHON_VERSIONS}) if(NOT BoostPython_INCLUDES OR NOT BoostPython_LIBS) - pkg_check_modules(${_pyver} QUIET ${_pyver}) + pkg_check_modules(_python python-${_pyver}) if(${_pyver}_FOUND) cmake_push_check_state() set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${${_pyver}_INCLUDE_DIRS})