Add support for python 2.7

PR:		ports/151606
Submitted by:	Oliver Fromme <olli at secnetix.de>
This commit is contained in:
Max Brazhnikov 2010-10-21 20:28:22 +00:00
parent 5269a286ff
commit 4be40ea6aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=263415
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= cmake
PORTVERSION= 2.8.2
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.cmake.org/files/v${PORTVERSION:C/\.[[:digit:]]+$//}/

View file

@ -0,0 +1,11 @@
--- ./Modules/FindPythonLibs.cmake.orig 2010-10-22 00:22:09.782579808 +0400
+++ ./Modules/FindPythonLibs.cmake 2010-10-22 00:22:47.930509363 +0400
@@ -27,7 +27,7 @@
# Search for the python framework on Apple.
CMAKE_FIND_FRAMEWORKS(Python)
-FOREACH(_CURRENT_VERSION 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
+FOREACH(_CURRENT_VERSION 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5)
STRING(REPLACE "." "" _CURRENT_VERSION_NO_DOTS ${_CURRENT_VERSION})
IF(WIN32)
FIND_LIBRARY(PYTHON_DEBUG_LIBRARY