/[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.75 Revision 1.76
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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.75 2014/02/06 17:07:56 kensington Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.76 2014/04/17 18:16:54 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.
15if [[ ${___ECLASS_ONCE_KDE4_META} != "recur -_+^+_- spank" ]] ; then 15if [[ ${___ECLASS_ONCE_KDE4_META} != "recur -_+^+_- spank" ]] ; then
16___ECLASS_ONCE_KDE4_META="recur -_+^+_- spank" 16___ECLASS_ONCE_KDE4_META="recur -_+^+_- spank"
17 17
18[[ -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"
19 19
20inherit kde4-base versionator 20inherit kde4-base
21 21
22KDEMETA_EXPF="pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm" 22KDEMETA_EXPF="pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm"
23EXPORT_FUNCTIONS ${KDEMETA_EXPF} 23EXPORT_FUNCTIONS ${KDEMETA_EXPF}
24 24
25# Add dependencies that all packages in a certain module share. 25# Add dependencies that all packages in a certain module share.
128 ESVN_RESTRICT="export" subversion_src_unpack 128 ESVN_RESTRICT="export" subversion_src_unpack
129 subversion_wc_info 129 subversion_wc_info
130 subversion_bootstrap 130 subversion_bootstrap
131 ;; 131 ;;
132 git) 132 git)
133 git-2_src_unpack 133 git-r3_src_unpack
134 ;; 134 ;;
135 esac 135 esac
136 fi 136 fi
137 kde4-meta_src_extract 137 kde4-meta_src_extract
138} 138}
363 363
364# @FUNCTION: kde4-meta_src_prepare 364# @FUNCTION: kde4-meta_src_prepare
365# @DESCRIPTION: 365# @DESCRIPTION:
366# Meta-package build system configuration handling - commenting out targets, etc.. 366# Meta-package build system configuration handling - commenting out targets, etc..
367kde4-meta_src_prepare() { 367kde4-meta_src_prepare() {
368 debug-print-function ${FUNCNAME} "$@" 368 debug-print-function ${FUNCNAME} "$@"
369 369
370 kde4-meta_change_cmakelists 370 kde4-meta_change_cmakelists
371 kde4-base_src_prepare 371 kde4-base_src_prepare
372} 372}
373 373
442 find "${S}"/${i} -name CMakeLists.txt -print0 | \ 442 find "${S}"/${i} -name CMakeLists.txt -print0 | \
443 xargs -0 sed -i \ 443 xargs -0 sed -i \
444 -e 's/^#DONOTCOMPILE //g' \ 444 -e 's/^#DONOTCOMPILE //g' \
445 -e '/install(.*)/I{s/^/#DONOTINSTALL /;}' \ 445 -e '/install(.*)/I{s/^/#DONOTINSTALL /;}' \
446 -e '/^install(/,/)/I{s/^/#DONOTINSTALL /;}' \ 446 -e '/^install(/,/)/I{s/^/#DONOTINSTALL /;}' \
447 -e '/kde4_install_icons(.*)/{s/^/#DONOTINSTALL /;}' || \ 447 -e '/kde4_install_icons(.*)/I{s/^/#DONOTINSTALL /;}' || \
448 die "${LINENO}: sed died in the KMCOMPILEONLY section while processing ${i}" 448 die "${LINENO}: sed died in the KMCOMPILEONLY section while processing ${i}"
449 _change_cmakelists_parent_dirs ${i} 449 _change_cmakelists_parent_dirs ${i}
450 done 450 done
451 451
452 # KMEXTRA section 452 # KMEXTRA section
501 sed -i -e "/^ macro_log_feature(OPENGL_OR_ES_FOUND/s/TRUE/FALSE/" \ 501 sed -i -e "/^ macro_log_feature(OPENGL_OR_ES_FOUND/s/TRUE/FALSE/" \
502 "${S}"/CMakeLists.txt || die "${LINENO}: sed died removing kde-workspace opengl dependency" 502 "${S}"/CMakeLists.txt || die "${LINENO}: sed died removing kde-workspace opengl dependency"
503 fi 503 fi
504 ;; 504 ;;
505 kde-runtime) 505 kde-runtime)
506 sed -e 's/TYPE REQUIRED/TYPE OPTIONAL/' -e '/LibGcrypt/s/REQUIRED//' -i CMakeLists.txt \
507 || die "${LINENO}: sed died in kde-runtime dep reduction section"
508
506 # COLLISION PROTECT section 509 # COLLISION PROTECT section
507 # Only install the kde4 script as part of kde-base/kdebase-data 510 # Only install the kde4 script as part of kde-base/kdebase-data
508 if [[ ${PN} != kdebase-data && -f CMakeLists.txt ]]; then 511 if [[ ${PN} != kdebase-data && -f CMakeLists.txt ]]; then
509 sed -e '/^install(PROGRAMS[[:space:]]*[^[:space:]]*\/kde4[[:space:]]/s/^/#DONOTINSTALL /' \ 512 sed -e '/^install(PROGRAMS[[:space:]]*[^[:space:]]*\/kde4[[:space:]]/s/^/#DONOTINSTALL /' \
510 -i CMakeLists.txt || die "Sed to exclude bin/kde4 failed" 513 -i CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
570# @FUNCTION: kde4-meta_src_test 573# @FUNCTION: kde4-meta_src_test
571# @DESCRIPTION: 574# @DESCRIPTION:
572# Currently just calls its equivalent in kde4-base.eclass(5) if 575# Currently just calls its equivalent in kde4-base.eclass(5) if
573# I_KNOW_WHAT_I_AM_DOING is set. Use this in split ebuilds. 576# I_KNOW_WHAT_I_AM_DOING is set. Use this in split ebuilds.
574kde4-meta_src_test() { 577kde4-meta_src_test() {
575 debug-print-function $FUNCNAME "$@" 578 debug-print-function ${FUNCNAME} "$@"
576 579
577 if [[ $I_KNOW_WHAT_I_AM_DOING ]]; then 580 if [[ $I_KNOW_WHAT_I_AM_DOING ]]; then
578 kde4-base_src_test 581 kde4-base_src_test
579 else 582 else
580 einfo "Tests disabled" 583 einfo "Tests disabled"
583 586
584# @FUNCTION: kde4-meta_src_install 587# @FUNCTION: kde4-meta_src_install
585# @DESCRIPTION: 588# @DESCRIPTION:
586# Function for installing KDE4 split applications. 589# Function for installing KDE4 split applications.
587kde4-meta_src_install() { 590kde4-meta_src_install() {
588 debug-print-function $FUNCNAME "$@" 591 debug-print-function ${FUNCNAME} "$@"
589 592
590 # Search ${S}/${KMMODULE} and install common documentation files found 593 # Search ${S}/${KMMODULE} and install common documentation files found
591 local doc 594 local doc
592 for doc in "${S}/${KMMODULE}"/{AUTHORS,CHANGELOG,ChangeLog*,README*,NEWS,TODO,HACKING}; do 595 for doc in "${S}/${KMMODULE}"/{AUTHORS,CHANGELOG,ChangeLog*,README*,NEWS,TODO,HACKING}; do
593 [[ -f "${doc}" ]] && [[ -s "${doc}" ]] && dodoc "${doc}" 596 [[ -f "${doc}" ]] && [[ -s "${doc}" ]] && dodoc "${doc}"

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76

  ViewVC Help
Powered by ViewVC 1.1.20