summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorChris Reffett <creffett@gentoo.org>2013-06-13 21:16:53 +0000
committerChris Reffett <creffett@gentoo.org>2013-06-13 21:16:53 +0000
commit24de3c024f502447887ad4fb796ee3cebd205c19 (patch)
tree411e6085d5e9f44a57dbeb4f476eebb2e8b87c6d /eclass
parentKeyword amd64-linux and x86-linux (diff)
downloadgentoo-2-24de3c024f502447887ad4fb796ee3cebd205c19.tar.gz
gentoo-2-24de3c024f502447887ad4fb796ee3cebd205c19.tar.bz2
gentoo-2-24de3c024f502447887ad4fb796ee3cebd205c19.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.eclass23
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} "$@"