1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 Gentoo Foundation |
2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.65 2011/01/20 00:48:51 reavertm Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/cmake-utils.eclass,v 1.66 2011/01/26 20:51:42 scarabeus Exp $ |
4 | |
4 | |
5 | # @ECLASS: cmake-utils.eclass |
5 | # @ECLASS: cmake-utils.eclass |
6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
7 | # kde@gentoo.org |
7 | # kde@gentoo.org |
8 | # |
8 | # |
… | |
… | |
44 | esac |
44 | esac |
45 | inherit toolchain-funcs multilib flag-o-matic base |
45 | inherit toolchain-funcs multilib flag-o-matic base |
46 | |
46 | |
47 | CMAKE_EXPF="src_compile src_test src_install" |
47 | CMAKE_EXPF="src_compile src_test src_install" |
48 | case ${EAPI:-0} in |
48 | case ${EAPI:-0} in |
49 | 3|2) CMAKE_EXPF+=" src_configure" ;; |
49 | 4|3|2) CMAKE_EXPF+=" src_configure" ;; |
50 | 1|0) ;; |
50 | 1|0) ;; |
51 | *) die "Unknown EAPI, Bug eclass maintainers." ;; |
51 | *) die "Unknown EAPI, Bug eclass maintainers." ;; |
52 | esac |
52 | esac |
53 | EXPORT_FUNCTIONS ${CMAKE_EXPF} |
53 | EXPORT_FUNCTIONS ${CMAKE_EXPF} |
54 | |
54 | |