| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2012 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/kde4-base.eclass,v 1.111 2011/12/18 00:00:45 dilfridge Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.112 2012/01/17 11:20:03 johu Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: kde4-base.eclass |
5 | # @ECLASS: kde4-base.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # kde@gentoo.org |
7 | # kde@gentoo.org |
| 8 | # @BLURB: This eclass provides functions for kde 4.X ebuilds |
8 | # @BLURB: This eclass provides functions for kde 4.X ebuilds |
| … | |
… | |
| 421 | # Accumulate dependencies set by this eclass |
421 | # Accumulate dependencies set by this eclass |
| 422 | DEPEND+=" ${COMMONDEPEND}" |
422 | DEPEND+=" ${COMMONDEPEND}" |
| 423 | RDEPEND+=" ${COMMONDEPEND}" |
423 | RDEPEND+=" ${COMMONDEPEND}" |
| 424 | unset COMMONDEPEND |
424 | unset COMMONDEPEND |
| 425 | |
425 | |
| 426 | # Add experimental kdeenablefinal, masked by default |
|
|
| 427 | IUSE+=" kdeenablefinal" |
|
|
| 428 | |
|
|
| 429 | # Fetch section - If the ebuild's category is not 'kde-base' and if it is not a |
426 | # Fetch section - If the ebuild's category is not 'kde-base' and if it is not a |
| 430 | # koffice ebuild, the URI should be set in the ebuild itself |
427 | # koffice ebuild, the URI should be set in the ebuild itself |
| 431 | _calculate_src_uri() { |
428 | _calculate_src_uri() { |
| 432 | debug-print-function ${FUNCNAME} "$@" |
429 | debug-print-function ${FUNCNAME} "$@" |
| 433 | |
430 | |
| … | |
… | |
| 450 | fi |
447 | fi |
| 451 | _kmname_pv="${_kmname}-${PV}" |
448 | _kmname_pv="${_kmname}-${PV}" |
| 452 | case ${KDEBASE} in |
449 | case ${KDEBASE} in |
| 453 | kde-base) |
450 | kde-base) |
| 454 | case ${PV} in |
451 | case ${PV} in |
| 455 | 4.[456789].8[05] | 4.[456789].9[023568]) |
452 | 4.[456789].8[05] | 4.[456789].9[0235678]) |
| 456 | # Unstable KDE SC releases |
453 | # Unstable KDE SC releases |
| 457 | SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" |
454 | SRC_URI="mirror://kde/unstable/${PV}/src/${_kmname_pv}.tar.bz2" |
| 458 | if ! version_is_at_least 4.6.80 ${PV} |
455 | if ! version_is_at_least 4.6.80 ${PV} |
| 459 | then |
456 | then |
| 460 | # KDEPIM IS SPECIAL |
457 | # KDEPIM IS SPECIAL |
| … | |
… | |
| 757 | debug-print-function ${FUNCNAME} "$@" |
754 | debug-print-function ${FUNCNAME} "$@" |
| 758 | |
755 | |
| 759 | # Build tests in src_test only, where we override this value |
756 | # Build tests in src_test only, where we override this value |
| 760 | local cmakeargs=(-DKDE4_BUILD_TESTS=OFF) |
757 | local cmakeargs=(-DKDE4_BUILD_TESTS=OFF) |
| 761 | |
758 | |
| 762 | if use_if_iuse kdeenablefinal; then |
|
|
| 763 | cmakeargs+=(-DKDE4_ENABLE_FINAL=ON) |
|
|
| 764 | fi |
|
|
| 765 | |
|
|
| 766 | if use_if_iuse debug; then |
759 | if use_if_iuse debug; then |
| 767 | # Set "real" debug mode |
760 | # Set "real" debug mode |
| 768 | CMAKE_BUILD_TYPE="Debugfull" |
761 | CMAKE_BUILD_TYPE="Debugfull" |
| 769 | else |
762 | else |
| 770 | # Handle common release builds |
763 | # Handle common release builds |
| … | |
… | |
| 894 | fdo-mime_desktop_database_update |
887 | fdo-mime_desktop_database_update |
| 895 | fdo-mime_mime_database_update |
888 | fdo-mime_mime_database_update |
| 896 | buildsycoca |
889 | buildsycoca |
| 897 | |
890 | |
| 898 | if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then |
891 | if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then |
| 899 | if use_if_iuse kdeenablefinal; then |
|
|
| 900 | echo |
|
|
| 901 | ewarn "WARNING! you have kdeenable final useflag enabled." |
|
|
| 902 | ewarn "This useflag needs to be enabled on ALL kde using packages and" |
|
|
| 903 | ewarn "is known to cause issues." |
|
|
| 904 | ewarn "You are using this setup at your own risk and the kde team does not" |
|
|
| 905 | ewarn "take responsibilities for dead kittens." |
|
|
| 906 | echo |
|
|
| 907 | fi |
|
|
| 908 | if [[ ${BUILD_TYPE} = live ]]; then |
892 | if [[ ${BUILD_TYPE} = live ]]; then |
| 909 | echo |
893 | echo |
| 910 | einfo "WARNING! This is an experimental live ebuild of ${CATEGORY}/${PN}" |
894 | einfo "WARNING! This is an experimental live ebuild of ${CATEGORY}/${PN}" |
| 911 | einfo "Use it at your own risk." |
895 | einfo "Use it at your own risk." |
| 912 | einfo "Do _NOT_ file bugs at bugs.gentoo.org because of this ebuild!" |
896 | einfo "Do _NOT_ file bugs at bugs.gentoo.org because of this ebuild!" |