/[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.60 Revision 1.64
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.60 2012/03/06 22:23:51 dilfridge Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-meta.eclass,v 1.64 2012/05/08 22:00:49 dilfridge 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.
208 ;; 208 ;;
209 esac 209 esac
210 else 210 else
211 local abort tarball tarfile f extractlist postfix 211 local abort tarball tarfile f extractlist postfix
212 212
213 if [[ ${PV} == 4.8.1 ]]; then 213 if [[ ${PV} =~ 4.8.[12345] ]]; then
214 postfix="xz" 214 postfix="xz"
215 KMTARPARAMS+=" --xz" 215 KMTARPARAMS+=" --xz"
216 else 216 else
217 postfix="bz2" 217 postfix="bz2"
218 KMTARPARAMS+=" --bzip2" 218 KMTARPARAMS+=" --bzip2"
251 # @ECLASS-VARIABLE: KDE4_STRICTER 251 # @ECLASS-VARIABLE: KDE4_STRICTER
252 # @DESCRIPTION: 252 # @DESCRIPTION:
253 # Print out all issues found executing tar / kmextract files 253 # Print out all issues found executing tar / kmextract files
254 # Set on if you want to find issues in kde-base ebuild unpack sequences 254 # Set on if you want to find issues in kde-base ebuild unpack sequences
255 [[ -n ${KDE4_STRICTER} ]] && echo 'tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist}' 255 [[ -n ${KDE4_STRICTER} ]] && echo 'tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist}'
256 if [[ ${I_KNOW_WHAT_I_AM_DOING} ]]; then
257 # to make the devs happy - bug 338397
258 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} || ewarn "tar extract command failed at least partially - continuing anyway"
259 else
260 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null || echo "tar extract command failed at least partially - continuing anyway" 256 tar -xpf "${tarfile}" ${KMTARPARAMS} ${extractlist} 2> /dev/null || echo "tar extract command failed at least partially - continuing anyway"
261 fi
262 257
263 # Default $S is based on $P; rename the extracted directory to match $S if necessary 258 # Default $S is based on $P; rename the extracted directory to match $S if necessary
264 if [[ ${KMNAME} != ${PN} ]]; then 259 if [[ ${KMNAME} != ${PN} ]]; then
265 mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"" 260 mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\""
266 fi 261 fi
571 fi 566 fi
572 if [[ ${PN} != plasma-workspace ]]; then 567 if [[ ${PN} != plasma-workspace ]]; then
573 sed -e '/KActivities/s/REQUIRED//' \ 568 sed -e '/KActivities/s/REQUIRED//' \
574 -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace dep reduction section" 569 -i CMakeLists.txt || die "${LINENO}: sed died in kde-workspace dep reduction section"
575 fi 570 fi
571 if [[ "${PN}" != "kwin" ]]; then
572 sed -i -e "/^ macro_log_feature(OPENGL_OR_ES_FOUND/s/TRUE/FALSE/" \
573 "${S}"/CMakeLists.txt || die "${LINENO}: sed died removing kde-workspace opengl dependency"
574 fi
576 ;; 575 ;;
577 kdebase-runtime | kde-runtime) 576 kdebase-runtime | kde-runtime)
578 # COLLISION PROTECT section 577 # COLLISION PROTECT section
579 # Only install the kde4 script as part of kde-base/kdebase-data 578 # Only install the kde4 script as part of kde-base/kdebase-data
580 if [[ ${PN} != kdebase-data && -f CMakeLists.txt ]]; then 579 if [[ ${PN} != kdebase-data && -f CMakeLists.txt ]]; then

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.64

  ViewVC Help
Powered by ViewVC 1.1.20