diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2012-09-29 19:38:56 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2012-09-29 19:38:56 +0000 |
commit | 930d0c2a051f5c9fb67547db3cbcf60d17109d83 (patch) | |
tree | 37af94fb8bdbf249ac5af9c7a0d50a6adb24abf4 /eclass/vdr-plugin-2.eclass | |
parent | www-client/httrack: 3.46.1 (diff) | |
download | gentoo-2-930d0c2a051f5c9fb67547db3cbcf60d17109d83.tar.gz gentoo-2-930d0c2a051f5c9fb67547db3cbcf60d17109d83.tar.bz2 gentoo-2-930d0c2a051f5c9fb67547db3cbcf60d17109d83.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() { |