diff options
author | Jonathan Callen <abcd@gentoo.org> | 2010-04-30 23:41:11 +0000 |
---|---|---|
committer | Jonathan Callen <abcd@gentoo.org> | 2010-04-30 23:41:11 +0000 |
commit | 9e46fbe9f82c584563019fe9f0bf6fb1b9e1d69f (patch) | |
tree | 5d10cf1b03fafb9ca71ee554c6db832d9602f6e7 | |
parent | Bug #317909 - Add patch to compile with podofo-0.8.0. (diff) | |
download | gentoo-2-9e46fbe9f82c584563019fe9f0bf6fb1b9e1d69f.tar.gz gentoo-2-9e46fbe9f82c584563019fe9f0bf6fb1b9e1d69f.tar.bz2 gentoo-2-9e46fbe9f82c584563019fe9f0bf6fb1b9e1d69f.zip |
Allow changing the minimum required cmake version
-rw-r--r-- | eclass/cmake-utils.eclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 1114d9f376af..220c62f8065b 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -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: @@ -27,6 +27,12 @@ # 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 )" |