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

Diff of /eclass/kde4-meta.eclass

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

Revision 1.69 Revision 1.70
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.69 2013/02/07 03:38:33 alexxy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.70 2013/04/07 17:46:23 kensington 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.
9# @DESCRIPTION: 9# @DESCRIPTION:
10# This eclass provides all necessary functions for writing split KDE ebuilds. 10# This eclass provides all necessary functions for writing split KDE ebuilds.
11# 11#
12# You must define KMNAME to use this eclass, and do so before inheriting it. All other variables are optional. 12# You must define KMNAME to use this eclass, and do so before inheriting it. All other variables are optional.
13# Do not include the same item in more than one of KMMODULE, KMMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY. 13# Do not include the same item in more than one of KMMODULE, KMMEXTRA, KMCOMPILEONLY, KMEXTRACTONLY.
14
15if [[ ${___ECLASS_ONCE_KDE4_META} != "recur -_+^+_- spank" ]] ; then
16___ECLASS_ONCE_KDE4_META="recur -_+^+_- spank"
14 17
15[[ -z ${KMNAME} ]] && die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild" 18[[ -z ${KMNAME} ]] && die "kde4-meta.eclass inherited but KMNAME not defined - broken ebuild"
16 19
17inherit kde4-base versionator 20inherit kde4-base versionator
18 21
480 debug-print "${LINENO}: KMCOMPILEONLY, processing ${i}" 483 debug-print "${LINENO}: KMCOMPILEONLY, processing ${i}"
481 # Uncomment "add_subdirectory" instructions inside $KMCOMPILEONLY, then comment "install" instructions. 484 # Uncomment "add_subdirectory" instructions inside $KMCOMPILEONLY, then comment "install" instructions.
482 find "${S}"/${i} -name CMakeLists.txt -print0 | \ 485 find "${S}"/${i} -name CMakeLists.txt -print0 | \
483 xargs -0 sed -i \ 486 xargs -0 sed -i \
484 -e 's/^#DONOTCOMPILE //g' \ 487 -e 's/^#DONOTCOMPILE //g' \
485 -e '/install(.*)/{s/^/#DONOTINSTALL /;}' \ 488 -e '/install(.*)/I{s/^/#DONOTINSTALL /;}' \
486 -e '/^install(/,/)/{s/^/#DONOTINSTALL /;}' \ 489 -e '/^install(/,/)/I{s/^/#DONOTINSTALL /;}' \
487 -e '/kde4_install_icons(.*)/{s/^/#DONOTINSTALL /;}' || \ 490 -e '/kde4_install_icons(.*)/{s/^/#DONOTINSTALL /;}' || \
488 die "${LINENO}: sed died in the KMCOMPILEONLY section while processing ${i}" 491 die "${LINENO}: sed died in the KMCOMPILEONLY section while processing ${i}"
489 _change_cmakelists_parent_dirs ${i} 492 _change_cmakelists_parent_dirs ${i}
490 done 493 done
491 494
680kde4-meta_pkg_postrm() { 683kde4-meta_pkg_postrm() {
681 debug-print-function ${FUNCNAME} "$@" 684 debug-print-function ${FUNCNAME} "$@"
682 685
683 kde4-base_pkg_postrm 686 kde4-base_pkg_postrm
684} 687}
688
689fi

Legend:
Removed from v.1.69  
changed lines
  Added in v.1.70

  ViewVC Help
Powered by ViewVC 1.1.20