diff options
author | Ben de Groot <yngwin@gentoo.org> | 2012-07-26 09:01:10 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2012-07-26 09:01:10 +0000 |
commit | fca2fb549b5bc51c92b57705d03bf9326bf7634e (patch) | |
tree | 3030709521d2146e19aa52ecee11605e7940b85a /media-video | |
parent | Add locales needed for minitube (diff) | |
download | gentoo-2-fca2fb549b5bc51c92b57705d03bf9326bf7634e.tar.gz gentoo-2-fca2fb549b5bc51c92b57705d03bf9326bf7634e.tar.bz2 gentoo-2-fca2fb549b5bc51c92b57705d03bf9326bf7634e.zip |
Use l10n.eclass for handling locales.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/minitube/ChangeLog | 6 | ||||
-rw-r--r-- | media-video/minitube/minitube-1.7.1.ebuild | 19 | ||||
-rw-r--r-- | media-video/minitube/minitube-1.8.ebuild | 18 |
3 files changed, 19 insertions, 24 deletions
diff --git a/media-video/minitube/ChangeLog b/media-video/minitube/ChangeLog index e9b05529a955..72f1d2f9cf1d 100644 --- a/media-video/minitube/ChangeLog +++ b/media-video/minitube/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-video/minitube # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/minitube/ChangeLog,v 1.69 2012/07/02 18:48:57 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/minitube/ChangeLog,v 1.70 2012/07/26 09:01:10 yngwin Exp $ + + 26 Jul 2012; Ben de Groot <yngwin@gentoo.org> minitube-1.7.1.ebuild, + minitube-1.8.ebuild: + Use l10n.eclass for handling locales. 02 Jul 2012; Markos Chandras <hwoarang@gentoo.org> +files/minitube-1.8-gcc4.7.patch, minitube-1.8.ebuild: diff --git a/media-video/minitube/minitube-1.7.1.ebuild b/media-video/minitube/minitube-1.7.1.ebuild index e8b9baa97b75..4adf6e3510c4 100644 --- a/media-video/minitube/minitube-1.7.1.ebuild +++ b/media-video/minitube/minitube-1.7.1.ebuild @@ -1,13 +1,13 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/minitube/minitube-1.7.1.ebuild,v 1.3 2012/04/06 18:41:01 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/minitube/minitube-1.7.1.ebuild,v 1.4 2012/07/26 09:01:10 yngwin Exp $ EAPI=4 -LANGS="ca da el en_US es es_AR es_ES fr gl hr hu ia id it nb nl pl pt pt_BR - ro ru sl sq sr sv_SE te tr zh_CN" -LANGSLONG="ca_ES de_DE fi_FI he_IL id_ID ka_GE pl_PL uk_UA" +PLOCALES="ar ca ca_ES da de_DE el en_US es es_AR es_ES fi fi_FI fr gl he_IL hr +hu ia id id_ID it jv ka_GE nb nl nn pl pl_PL pt pt_BR ro ru sk sl sq sr sv_SE +te tr uk_UA zh_CN" -inherit qt4-r2 +inherit l10n qt4-r2 DESCRIPTION="Qt4 YouTube Client" HOMEPAGE="http://flavio.tordini.org/minitube" @@ -39,13 +39,8 @@ src_prepare() { qt4-r2_src_prepare # Remove unneeded translations - local lang= trans= - for lang in ${LANGS}; do - use linguas_${lang} && trans+=" ${lang}.ts" - done - for lang in ${LANGSLONG}; do - use linguas_${lang%_*} && trans+=" ${lang}.ts" - done + local trans= + trans=$(l10n_get_locales) if [[ -n ${trans} ]]; then sed -i -e "/^TRANSLATIONS/s/+=.*/+=${trans}/" locale/locale.pri || die fi diff --git a/media-video/minitube/minitube-1.8.ebuild b/media-video/minitube/minitube-1.8.ebuild index ba91ba0ebbaf..5c8635036f15 100644 --- a/media-video/minitube/minitube-1.8.ebuild +++ b/media-video/minitube/minitube-1.8.ebuild @@ -1,12 +1,13 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/minitube/minitube-1.8.ebuild,v 1.2 2012/07/02 18:48:57 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/minitube/minitube-1.8.ebuild,v 1.3 2012/07/26 09:01:10 yngwin Exp $ EAPI=4 -LANGS="ar ca da el en es es_AR es_ES fi fr gl hr hu ia id it nb nl nn pl pt pt_BR ro ru sk sl sq sr sv_SE te tr zh_CN" -LANGSLONG="ca_ES de_DE fi_FI he_IL id_ID ka_GE pl_PL uk_UA" +PLOCALES="ar ca ca_ES da de_DE el en es es_AR es_ES fi fi_FI fr gl he_IL hr hu +ia id id_ID it jv ka_GE nb nl nn pl pl_PL pt pt_BR ro ru sk sl sq sr sv_SE te +tr uk_UA zh_CN" -inherit qt4-r2 +inherit l10n qt4-r2 DESCRIPTION="Qt4 YouTube Client" HOMEPAGE="http://flavio.tordini.org/minitube" @@ -38,13 +39,8 @@ src_prepare() { qt4-r2_src_prepare # Remove unneeded translations - local lang= trans= - for lang in ${LANGS}; do - use linguas_${lang} && trans+=" ${lang}.ts" - done - for lang in ${LANGSLONG}; do - use linguas_${lang%_*} && trans+=" ${lang}.ts" - done + local trans= + trans=$(l10n_get_locales) if [[ -n ${trans} ]]; then sed -i -e "/^TRANSLATIONS/s/+=.*/+=${trans}/" locale/locale.pri || die fi |