diff options
author | Andreas Hüttel <dilfridge@gentoo.org> | 2010-11-24 23:54:55 +0000 |
---|---|---|
committer | Andreas Hüttel <dilfridge@gentoo.org> | 2010-11-24 23:54:55 +0000 |
commit | 9ea05d6d4707e94ed2234f5e108a04fec314b17d (patch) | |
tree | fc753502fbd74fd72abdb76734a51fe377fabfc1 /eclass | |
parent | more prefix fixes, thanks Andrew Davis, bug #342419 (diff) | |
download | historical-9ea05d6d4707e94ed2234f5e108a04fec314b17d.tar.gz historical-9ea05d6d4707e94ed2234f5e108a04fec314b17d.tar.bz2 historical-9ea05d6d4707e94ed2234f5e108a04fec314b17d.zip |
Restrict patching of dtd reference to ebuilds outside kde-proper
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kde4-base.eclass | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass index 109b97dd605c..47eb7f189ce4 100644 --- a/eclass/kde4-base.eclass +++ b/eclass/kde4-base.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.76 2010/10/27 21:24:22 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.77 2010/11/24 23:54:55 dilfridge Exp $ # @ECLASS: kde4-base.eclass # @MAINTAINER: @@ -656,11 +656,13 @@ kde4-base_src_prepare() { load_library_dependencies fi - # Hack for manuals relying on outdated DTD - find "${S}" -name "*.docbook" \ - -exec sed -i -r \ - -e 's:-//KDE//DTD DocBook XML V4\.1(\..)?-Based Variant V1\.[01]//EN:-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN:g' {} + \ - || die 'failed to fix DocBook variant version' + # Hack for manuals relying on outdated DTD, only outside kde-base/koffice/... + if [ -z ${KDEBASE} ]; then + find "${S}" -name "*.docbook" \ + -exec sed -i -r \ + -e 's:-//KDE//DTD DocBook XML V4\.1(\..)?-Based Variant V1\.[01]//EN:-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN:g' {} + \ + || die 'failed to fix DocBook variant version' + fi } # @FUNCTION: kde4-base_src_configure |