/[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.34 Revision 1.35
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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.34 2010/03/15 03:35:39 reavertm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.35 2010/05/15 15:19:04 reavertm 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.
338 KMEXTRACTONLY+=" 338 KMEXTRACTONLY+="
339 config-enterprise.h.cmake 339 config-enterprise.h.cmake
340 kleopatra/ConfigureChecks.cmake" 340 kleopatra/ConfigureChecks.cmake"
341 if slot_is_at_least 4.5 ${SLOT}; then 341 if slot_is_at_least 4.5 ${SLOT}; then
342 KMEXTRACTONLY+=" 342 KMEXTRACTONLY+="
343 CTestCustom.cmake
343 kdepim-version.h.cmake" 344 kdepim-version.h.cmake"
344 else 345 else
345 KMEXTRACTONLY+=" 346 KMEXTRACTONLY+="
346 kdepim-version.h" 347 kdepim-version.h"
347 fi 348 fi
616 "${S}"/CMakeLists.txt || \ 617 "${S}"/CMakeLists.txt || \
617 die "${LINENO}: sed died in collision prevention section" 618 die "${LINENO}: sed died in collision prevention section"
618 ;; 619 ;;
619 *) ;; 620 *) ;;
620 esac 621 esac
622 # koffice 2.1.[8-9][0-9] and 9999
623 case ${PV} in
624 2.1.8[0-9]|2.1.9[0-9]|9999)
625 sed -e '/^option(BUILD/s/ON/OFF/' \
626 -e '/^if(NOT BUILD_kchart/,/^endif(NOT BUILD_kchart/d' \
627 -e '/^if(BUILD_koreport/,/^endif(BUILD_koreport/d' \
628 -e 's/set(SHOULD_BUILD_F_OFFICE TRUE)/set(SHOULD_BUILD_F_OFFICE FALSE)/' \
629 -i "${S}"/CMakeLists.txt || die "sed died while fixing cmakelists"
630 if [[ ${PN} != koffice-data ]] && [[ ${PV} == 9999 ]]; then
631 sed -e '/config-opengl.h/d' \
632 -i "${S}"/CMakeLists.txt || die "sed died while fixing cmakelists"
633
634 fi
635 ;;
636 *) ;;
637 esac
621 esac 638 esac
622 639
623 popd > /dev/null 640 popd > /dev/null
624} 641}
625 642
645 -DWITH_Boost=OFF 662 -DWITH_Boost=OFF
646 -DWITH_LibTidy=OFF 663 -DWITH_LibTidy=OFF
647 "${mycmakeargs[@]}" 664 "${mycmakeargs[@]}"
648 ) 665 )
649 ;; 666 ;;
667 koffice)
668 case ${PV} in
669 2.1.8[0-9]|2.1.9[0-9]|9999)
670 if [[ ${PN} != "kchart" ]]; then
671 mycmakeargs=(
672 -DBUILD_koreport=OFF
673 "${mycmakeargs[@]}"
674 )
675 fi
676 ;;
677 esac
678 ;;
650 esac 679 esac
651 680
652 kde4-base_src_configure 681 kde4-base_src_configure
653} 682}
654 683
680# @DESCRIPTION: 709# @DESCRIPTION:
681# Function for installing KDE4 split applications. 710# Function for installing KDE4 split applications.
682kde4-meta_src_install() { 711kde4-meta_src_install() {
683 debug-print-function $FUNCNAME "$@" 712 debug-print-function $FUNCNAME "$@"
684 713
714 # Search ${S}/${KMMODULE} and install any "AUTHORS ChangeLog* README* NEWS TODO HACKING" found
715 local doc
716 for doc in AUTHORS ChangeLog* README* NEWS TODO HACKING; do
717 [[ -s "${S}/${KMMODULE}/${doc}" ]] && dodoc "${S}/${KMMODULE}/${doc}"
718 done
719
685 kde4-base_src_install 720 kde4-base_src_install
686}
687
688# @FUNCTION: kde4-meta_src_make_doc
689# @DESCRIPTION:
690# This function searches in ${S}/${KMMODULE},
691# and tries to install "AUTHORS ChangeLog* README* NEWS TODO" if these files exist.
692kde4-meta_src_make_doc() {
693 debug-print-function ${FUNCNAME} "$@"
694
695 local doc
696 for doc in AUTHORS ChangeLog* README* NEWS TODO; do
697 [[ -s ${KMMODULE}/${doc} ]] && newdoc "${KMMODULE}/${doc}" "${doc}.${KMMODULE##*/}"
698 done
699
700 kde4-base_src_make_doc
701} 721}
702 722
703# @FUNCTION: kde4-meta_pkg_postinst 723# @FUNCTION: kde4-meta_pkg_postinst
704# @DESCRIPTION: 724# @DESCRIPTION:
705# Invoke kbuildsycoca4. 725# Invoke kbuildsycoca4.

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

  ViewVC Help
Powered by ViewVC 1.1.20