diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2012-09-29 19:38:56 +0000 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2012-09-29 19:38:56 +0000 |
commit | 6737343b6b4159cbe87a234213a2e450acd4c164 (patch) | |
tree | 66db33392958f89e7e5bfcec924dfabf63898fa8 /eclass | |
parent | www-client/httrack: 3.46.1 (diff) | |
download | historical-6737343b6b4159cbe87a234213a2e450acd4c164.tar.gz historical-6737343b6b4159cbe87a234213a2e450acd4c164.tar.bz2 historical-6737343b6b4159cbe87a234213a2e450acd4c164.zip |
added helper function to remove i18n.h includes, if media-plugins/vdr-* are still use the obsoleted i18n handling and unsupported to gettext handling
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ChangeLog | 6 | ||||
-rw-r--r-- | eclass/vdr-plugin-2.eclass | 15 |
2 files changed, 19 insertions, 2 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog index dd8f30a861e5..c6a0b6c0a297 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for eclass directory # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.420 2012/09/28 15:18:04 ulm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.421 2012/09/29 19:38:56 hd_brummy Exp $ + + 29 Sep 2012; Joerg Bornkessel <hd_brummy@gentoo.org> vdr-plugin-2.eclass: + added helper function to remove i18n.h includes, if media-plugins/vdr-* are + still use the obsoleted i18n handling and unsupported to gettext handling 28 Sep 2012; Ulrich Müller <ulm@gentoo.org> eutils.eclass: Test for the EAPI explicitly, because it isn't guaranteed that package diff --git a/eclass/vdr-plugin-2.eclass b/eclass/vdr-plugin-2.eclass index 05dcdefa8d6d..cceb2e6a9834 100644 --- a/eclass/vdr-plugin-2.eclass +++ b/eclass/vdr-plugin-2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin-2.eclass,v 1.12 2012/09/27 16:35:42 axs Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin-2.eclass,v 1.13 2012/09/29 19:38:56 hd_brummy Exp $ # @ECLASS: vdr-plugin-2.eclass # @MAINTAINER: @@ -316,6 +316,19 @@ vdr_i18n() { dev_check "please review, may be in subdir... \n" fi } + +remove_i18n_include() { + # remove uneeded i18.n includes + # call 'remove_i18n_include bla foo' + + local f + for f; do + sed -i "${f}" \ + -e "s:^#include[[:space:]]*\"i18n.h\"://:" + done + + dev_check "removed i18n.h for ${@}" +} # end new vdr-plugin-2.eclass content vdr-plugin-2_copy_source_tree() { |