diff options
author | Chris Reffett <creffett@gentoo.org> | 2013-06-13 21:16:53 +0000 |
---|---|---|
committer | Chris Reffett <creffett@gentoo.org> | 2013-06-13 21:16:53 +0000 |
commit | b945df3feb21c7071e84b86623937c977b6be578 (patch) | |
tree | 686711dbdbc143d6d847f2ab931060ccc5d98d81 /eclass | |
parent | Keyword amd64-linux and x86-linux (diff) | |
download | historical-b945df3feb21c7071e84b86623937c977b6be578.tar.gz historical-b945df3feb21c7071e84b86623937c977b6be578.tar.bz2 historical-b945df3feb21c7071e84b86623937c977b6be578.zip |
Add EAPI 0/1 deprecation warning to cmake-utils.eclass. Document mycmakeargs wrt bug 472618.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/cmake-utils.eclass | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index ddd0063b9c34..ce64d9e5d8b6 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.94 2013/04/07 17:21:11 kensington Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.95 2013/06/13 21:16:53 creffett Exp $ # @ECLASS: cmake-utils.eclass # @MAINTAINER: @@ -65,7 +65,12 @@ inherit toolchain-funcs multilib flag-o-matic base CMAKE_EXPF="src_compile src_test src_install" case ${EAPI:-0} in 2|3|4|5) CMAKE_EXPF+=" src_prepare src_configure" ;; - 1|0) ;; + 1|0) ewarn "EAPI 0 and 1 support is now deprecated." + ewarn "If you are the package maintainer, please" + ewarn "update this package to a newer EAPI." + ewarn "Support for EAPI 0-1 will be dropped at the beginning of July." + ;; + *) die "Unknown EAPI, Bug eclass maintainers." ;; esac EXPORT_FUNCTIONS ${CMAKE_EXPF} @@ -359,6 +364,20 @@ enable_cmake-utils_src_prepare() { base_src_prepare } +# @VARIABLE: mycmakeargs +# @DEFAULT_UNSET +# @DESCRIPTION: +# Optional cmake defines as a bash array. Should be defined before calling +# src_configure. +# @CODE +# src_configure() { +# local mycmakeargs=( +# $(cmake-utils_use_with openconnect) +# ) +# cmake-utils_src_configure +# } + + enable_cmake-utils_src_configure() { debug-print-function ${FUNCNAME} "$@" |