/[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.37 Revision 1.40
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.37 2010/05/17 01:16:39 reavertm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.40 2010/09/11 04:25:23 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.
22case ${KMNAME} in 22case ${KMNAME} in
23 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics) 23 kdebase|kdebase-apps|kdebase-workspace|kdebase-runtime|kdegraphics)
24 COMMONDEPEND+=" >=media-libs/qimageblitz-0.0.4" 24 COMMONDEPEND+=" >=media-libs/qimageblitz-0.0.4"
25 ;; 25 ;;
26 kdepim|kdepim-runtime) 26 kdepim|kdepim-runtime)
27 ! slot_is_at_least 4.4 ${SLOT} && COMMONDEPEND+=" $(add_kdebase_dep kdepimlibs)"
28 case ${PN} in 27 case ${PN} in
29 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker) 28 akregator|kaddressbook|kjots|kmail|knode|knotes|korganizer|ktimetracker)
30 IUSE+=" +kontact" 29 IUSE+=" +kontact"
31 RDEPEND+=" kontact? ( $(add_kdebase_dep kontact) )" 30 RDEPEND+=" kontact? ( $(add_kdebase_dep kontact) )"
32 ;; 31 ;;
202 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed" 201 "${S}"/CMakeLists.txt || die "Sed to exclude bin/kde4 failed"
203 fi 202 fi
204 else 203 else
205 local abort tarball tarfile f extractlist moduleprefix postfix 204 local abort tarball tarfile f extractlist moduleprefix postfix
206 case ${PV} in 205 case ${PV} in
207 4.[34].8[05] | 4.[34].9[0568]) 206 4.[45].8[05] | 4.[45].9[023568])
208 # block for normally packed upstream unstable snapshots 207 # Block for normally packed upstream unstable snapshots
209 KMTARPARAMS+=" --bzip2" # bz2 208 KMTARPARAMS+=" --bzip2" # bz2
210 postfix="bz2" 209 postfix="bz2"
211 ;;
212 4.[34].[6-9]*)
213 # Not passing --xz, as it doesn't work with stable tar
214 KMTARPARAMS+=" --use-compress-program=xz" # xz
215 postfix="xz"
216 ;; 210 ;;
217 *) 211 *)
218 KMTARPARAMS+=" --bzip2" # bz2 212 KMTARPARAMS+=" --bzip2" # bz2
219 postfix="bz2" 213 postfix="bz2"
220 ;; 214 ;;
347 kdepim-version.h" 341 kdepim-version.h"
348 fi 342 fi
349 if has kontact ${IUSE//+} && use kontact; then 343 if has kontact ${IUSE//+} && use kontact; then
350 KMEXTRA+=" 344 KMEXTRA+="
351 kontact/plugins/${PLUGINNAME:-${PN}}/" 345 kontact/plugins/${PLUGINNAME:-${PN}}/"
352 if ! slot_is_at_least 4.4 ${SLOT}; then
353 KMEXTRACTONLY+="
354 kontactinterfaces/"
355 fi
356 fi 346 fi
357 ;; 347 ;;
358 kdeutils) 348 kdeutils)
359 KMEXTRACTONLY+=" 349 KMEXTRACTONLY+="
360 kdeutils-version.h" 350 kdeutils-version.h"
712 debug-print-function $FUNCNAME "$@" 702 debug-print-function $FUNCNAME "$@"
713 703
714 # Search ${S}/${KMMODULE} and install common documentation files found 704 # Search ${S}/${KMMODULE} and install common documentation files found
715 local doc 705 local doc
716 for doc in "${S}/${KMMODULE}"/{AUTHORS,CHANGELOG,ChangeLog*,README*,NEWS,TODO,HACKING}; do 706 for doc in "${S}/${KMMODULE}"/{AUTHORS,CHANGELOG,ChangeLog*,README*,NEWS,TODO,HACKING}; do
717 [[ -s "${doc}" ]] && dodoc "${doc}" 707 [[ -f "${doc}" ]] && [[ -s "${doc}" ]] && dodoc "${doc}"
718 done 708 done
719 709
720 kde4-base_src_install 710 kde4-base_src_install
721} 711}
722 712

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.20