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/vdr-plugin-2.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/vdr-plugin-2.eclass')
-rw-r--r-- | eclass/vdr-plugin-2.eclass | 15 |
1 files changed, 14 insertions, 1 deletions
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() { |