/[gentoo-x86]/eclass/kde4-base.eclass
Gentoo

Diff of /eclass/kde4-base.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.48 Revision 1.53
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.48 2009/10/27 14:20:13 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.53 2009/11/25 19:51:11 tampakrap 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
17# @DESCRIPTION: 17# @DESCRIPTION:
18# Specify if cmake buildsystem is being used. Possible values are 'always' and 'never'. 18# Specify if cmake buildsystem is being used. Possible values are 'always' and 'never'.
19# Please note that if it's set to 'never' you need to explicitly override following phases: 19# Please note that if it's set to 'never' you need to explicitly override following phases:
20# src_configure, src_compile, src_test and src_install. 20# src_configure, src_compile, src_test and src_install.
21# Defaults to 'always'. 21# Defaults to 'always'.
22CMAKE_REQUIRED="${CMAKE_REQUIRED:-always}" 22CMAKE_REQUIRED="${CMAKE_REQUIRED:-${CMAKE_REQUIRED:-always}}"
23if [[ ${WANT_CMAKE} = false || ${WANT_CMAKE} = never ]]; then 23if [[ ${CMAKE_REQUIRED} = false || ${CMAKE_REQUIRED} = never ]]; then
24 buildsystem_eclass="" 24 buildsystem_eclass=""
25 export_fns="" 25 export_fns=""
26else 26else
27 buildsystem_eclass="cmake-utils" 27 buildsystem_eclass="cmake-utils"
28 export_fns="src_configure src_compile src_test src_install" 28 export_fns="src_configure src_compile src_test src_install"
33get_build_type 33get_build_type
34if [[ ${BUILD_TYPE} = live ]]; then 34if [[ ${BUILD_TYPE} = live ]]; then
35 subversion_eclass="subversion" 35 subversion_eclass="subversion"
36fi 36fi
37 37
38inherit base ${cmake_utils} eutils ${subversion_eclass} 38inherit base ${buildsystem_eclass} eutils ${subversion_eclass}
39 39
40EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm 40EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare ${export_fns} pkg_postinst pkg_postrm
41 41
42unset buildsystem_eclass 42unset buildsystem_eclass
43unset export_fns 43unset export_fns
365 esac 365 esac
366 ;; 366 ;;
367 koffice) 367 koffice)
368 case ${PV} in 368 case ${PV} in
369 2.0.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2" ;; 369 2.0.[6-9]*) SRC_URI="mirror://kde/unstable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2" ;;
370 *) SRC_URI="mirror://kde/stable/${_kmname_pv}/src/${_kmname_pv}.tar.bz2" ;; 370 *) SRC_URI="mirror://kde/stable/${_kmname_pv}/${_kmname_pv}.tar.bz2" ;;
371 esac 371 esac
372 esac 372 esac
373 unset _kmname _kmname_pv 373 unset _kmname _kmname_pv
374 fi 374 fi
375 ;; 375 ;;

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.20