/[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.107 Revision 1.108
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-base.eclass,v 1.107 2011/09/07 17:34:04 alexxy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.108 2011/10/06 14:13:29 alexxy 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
567 else 567 else
568 _kmname=${PN} 568 _kmname=${PN}
569 fi 569 fi
570 570
571 # default branching 571 # default branching
572 case ${PV} in 572 [[ ${PV} != 9999* && ${KDEBASE} == kde-base ]] && \
573 9999*) ;;
574 *)
575 # set EGIT_BRANCH and EGIT_COMMIT to $(get_kde_version)
576 # every package is listed explicitly now, as upstream
577 # seems to love being different :(
578 case ${_kmname} in
579 ark|blinken|cantor|filelight|kalgebra|kalzium|kanagram|kbruch| \
580 kcalc|kcharselect|kdeplasma-addons|kdepim|kdepim-runtime|kdepimlibs| \
581 kdf|kfloppy|kgeography|kgpg|khangman|kig|kiten|klettres|kmplot|kremotecontrol| \
582 kstars|ktimer|ktouch|kturtle|kwallet|kwordquiz|libkdeedu|mobipocket| \
583 okular|parley|printer-applet|rocs|step|superkaramba|sweeper)
584 EGIT_BRANCH="$(get_kde_version)"
585 ;;
586 marble)
587 EGIT_BRANCH="kde-$(get_kde_version)"
588 ;;
589 gwenview|jovie|kaccessible|kamera|kate|kcolorchooser|kde-baseapps| \
590 kde-runtime|kde-workspace|kgamma| \
591 kdegraphics-strigi-analyzer|kdegraphics-thumbnailers| \
592 kdelibs|kimono|kmag|kmousetool|kmouth|kolourpaint|konsole|korundum| \
593 kross-interpreters|kruler|ksaneplugin|ksnapshot| \
594 libkdcraw|libkexiv2|libkipi|libksane|perlqt|perlkde| \
595 pykde4|qtruby|qyoto|smokegen|smokekde|smokeqt|svgpart)
596 EGIT_BRANCH="KDE/$(get_kde_version)" 573 EGIT_BRANCH="KDE/$(get_kde_version)"
597 ;;
598 *)
599 ewarn "Unknown KMNAME ${_kmname}: Guessing branch name 'KDE/$(get_kde_version)'"
600 EGIT_BRANCH="KDE/$(get_kde_version)" ;;
601 esac
602 ;;
603 esac
604 574
605 # default repo uri 575 # default repo uri
606 EGIT_REPO_URI="${EGIT_MIRROR}/${_kmname}" 576 EGIT_REPO_URI="${EGIT_MIRROR}/${_kmname}"
607 577
608 debug-print "${FUNCNAME}: Repository: ${EGIT_REPO_URI}" 578 debug-print "${FUNCNAME}: Repository: ${EGIT_REPO_URI}"
747 load_library_dependencies 717 load_library_dependencies
748 fi 718 fi
749 719
750 # Replace KDE4Workspace library targets 720 # Replace KDE4Workspace library targets
751 find "${S}" -name CMakeLists.txt \ 721 find "${S}" -name CMakeLists.txt \
722 -exec sed -i -r \
752 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_TASKMANAGER_(LIBRARY|LIBS)\}/taskmanager/g' {} + \ 723 -e 's/\$\{KDE4WORKSPACE_TASKMANAGER_(LIBRARY|LIBS)\}/taskmanager/g' \
753 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KWORKSPACE_(LIBRARY|LIBS)\}/kworkspace/g' {} + \ 724 -e 's/\$\{KDE4WORKSPACE_KWORKSPACE_(LIBRARY|LIBS)\}/kworkspace/g' \
754 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROLIFACES_(LIBRARY|LIBS)\}/solidcontrolifaces/g' {} + \ 725 -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROLIFACES_(LIBRARY|LIBS)\}/solidcontrolifaces/g' \
755 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROL_(LIBRARY|LIBS)\}/solidcontrol/g' {} + \ 726 -e 's/\$\{KDE4WORKSPACE_SOLIDCONTROL_(LIBRARY|LIBS)\}/solidcontrol/g' \
756 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_PROCESSUI_(LIBRARY|LIBS)\}/processui/g' {} + \ 727 -e 's/\$\{KDE4WORKSPACE_PROCESSUI_(LIBRARY|LIBS)\}/processui/g' \
757 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_LSOFUI_(LIBRARY|LIBS)\}/lsofui/g' {} + \ 728 -e 's/\$\{KDE4WORKSPACE_LSOFUI_(LIBRARY|LIBS)\}/lsofui/g' \
758 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_PLASMACLOCK_(LIBRARY|LIBS)\}/plasmaclock/g' {} + \ 729 -e 's/\$\{KDE4WORKSPACE_PLASMACLOCK_(LIBRARY|LIBS)\}/plasmaclock/g' \
759 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERYCLIENT_(LIBRARY|LIBS)\}/nepomukqueryclient/g' {} + \ 730 -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERYCLIENT_(LIBRARY|LIBS)\}/nepomukqueryclient/g' \
760 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERY_(LIBRARY|LIBS)\}/nepomukquery/g' {} + \ 731 -e 's/\$\{KDE4WORKSPACE_NEPOMUKQUERY_(LIBRARY|LIBS)\}/nepomukquery/g' \
761 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KSCREENSAVER_(LIBRARY|LIBS)\}/kscreensaver/g' {} + \ 732 -e 's/\$\{KDE4WORKSPACE_KSCREENSAVER_(LIBRARY|LIBS)\}/kscreensaver/g' \
762 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_WEATHERION_(LIBRARY|LIBS)\}/weather_ion/g' {} + \ 733 -e 's/\$\{KDE4WORKSPACE_WEATHERION_(LIBRARY|LIBS)\}/weather_ion/g' \
763 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KWINEFFECTS_(LIBRARY|LIBS)\}/kwineffects/g' {} + \ 734 -e 's/\$\{KDE4WORKSPACE_KWINEFFECTS_(LIBRARY|LIBS)\}/kwineffects/g' \
764 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KDECORATIONS_(LIBRARY|LIBS)\}/kdecorations/g' {} + \ 735 -e 's/\$\{KDE4WORKSPACE_KDECORATIONS_(LIBRARY|LIBS)\}/kdecorations/g' \
765 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KSGRD_(LIBRARY|LIBS)\}/ksgrd/g' {} + \ 736 -e 's/\$\{KDE4WORKSPACE_KSGRD_(LIBRARY|LIBS)\}/ksgrd/g' \
766 -exec sed -i -r -e 's/\$\{KDE4WORKSPACE_KEPHAL_(LIBRARY|LIBS)\}/kephal/g' {} + \ 737 -e 's/\$\{KDE4WORKSPACE_KEPHAL_(LIBRARY|LIBS)\}/kephal/g' \
738 {} + \
767 || die 'failed to replace KDE4Workspace library targets' 739 || die 'failed to replace KDE4Workspace library targets'
768 740
769 # Hack for manuals relying on outdated DTD, only outside kde-base/koffice/... 741 # Hack for manuals relying on outdated DTD, only outside kde-base/koffice/...
770 if [[ -z ${KDEBASE} ]]; then 742 if [[ -z ${KDEBASE} ]]; then
771 find "${S}" -name "*.docbook" \ 743 find "${S}" -name "*.docbook" \

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.108

  ViewVC Help
Powered by ViewVC 1.1.20