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-meta.eclass,v 1.23 2009/08/03 21:59:53 wired Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.24 2009/08/07 01:00:11 wired Exp $ |
4 | # |
4 | # |
5 | # @ECLASS: kde4-meta.eclass |
5 | # @ECLASS: kde4-meta.eclass |
6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
7 | # kde@gentoo.org |
7 | # kde@gentoo.org |
8 | # @BLURB: Eclass for writing "split" KDE packages. |
8 | # @BLURB: Eclass for writing "split" KDE packages. |
… | |
… | |
17 | EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm |
17 | EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm |
18 | |
18 | |
19 | if [[ -z ${KMNAME} ]]; then |
19 | if [[ -z ${KMNAME} ]]; then |
20 | die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild" |
20 | die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild" |
21 | fi |
21 | fi |
22 | |
|
|
23 | case ${KDEBASE} in |
|
|
24 | kde-base) |
|
|
25 | HOMEPAGE="http://www.kde.org/" |
|
|
26 | LICENSE="GPL-2" |
|
|
27 | ;; |
|
|
28 | koffice) |
|
|
29 | HOMEPAGE="http://www.koffice.org/" |
|
|
30 | LICENSE="GPL-2" |
|
|
31 | ;; |
|
|
32 | esac |
|
|
33 | |
22 | |
34 | # Add khelpcenter dependency when installing handbooks |
23 | # Add khelpcenter dependency when installing handbooks |
35 | if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then |
24 | if [[ ${PN} != khelpcenter ]] && has handbook ${IUSE//+}; then |
36 | RDEPEND+=" handbook? ( >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] )" |
25 | RDEPEND+=" handbook? ( >=kde-base/khelpcenter-${PV}:${SLOT}[kdeprefix=] )" |
37 | fi |
26 | fi |