Allow changing the minimum required cmake version
authorJonathan Callen <jcallen@gentoo.org>
Fri, 30 Apr 2010 23:41:11 +0000 (23:41 +0000)
committerJonathan Callen <jcallen@gentoo.org>
Fri, 30 Apr 2010 23:41:11 +0000 (23:41 +0000)
eclass/cmake-utils.eclass

index 1114d9f376af297ae1a4d06f6d783cfe35666e7a..220c62f8065baf56fc9c7b9e997a9e2bd0635ca7 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.49 2010/04/10 02:20:59 reavertm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.50 2010/04/30 23:41:11 abcd Exp $
 
 # @ECLASS: cmake-utils.eclass
 # @MAINTAINER:
 # Valid values are: always [default], optional (where the value is the useflag
 # used for optionality)
 WANT_CMAKE="${WANT_CMAKE:-always}"
+
+# @ECLASS-VARIABLE: CMAKE_MIN_VER
+# @DESCRIPTION:
+# Specify the minimum allowable version of cmake.  Defaults to 2.6.2-r1
+CMAKE_MIN_VER="${CMAKE_MIN_VER:-2.6.2-r1}"
+
 CMAKEDEPEND=""
 case ${WANT_CMAKE} in
        always)
@@ -49,7 +55,7 @@ EXPORT_FUNCTIONS ${CMAKE_EXPF}
 : ${DESCRIPTION:="Based on the ${ECLASS} eclass"}
 
 if [[ ${PN} != cmake ]]; then
-       CMAKEDEPEND+=">=dev-util/cmake-2.6.2-r1"
+       CMAKEDEPEND+=">=dev-util/cmake-${CMAKE_MIN_VER}"
 fi
 
 CMAKEDEPEND+=" userland_GNU? ( >=sys-apps/findutils-4.4.0 )"