diff options
author | Sebastian Pipping <sping@gentoo.org> | 2012-02-17 17:13:15 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2012-02-17 17:13:15 +0000 |
commit | af86ae045e0036ef80d9f894c36777b6cb373c7e (patch) | |
tree | 04c8ac5b072b2a240933b56bbda9045952e3a9ca /app-cdr/isomaster/isomaster-1.3.9-r1.ebuild | |
parent | Stable for HPPA (bug #404199). (diff) | |
download | gentoo-2-af86ae045e0036ef80d9f894c36777b6cb373c7e.tar.gz gentoo-2-af86ae045e0036ef80d9f894c36777b6cb373c7e.tar.bz2 gentoo-2-af86ae045e0036ef80d9f894c36777b6cb373c7e.zip |
app-cdr/isomaster: Respect ${LINGUAS} (bug #402679)
(Portage version: 2.1.10.46/cvs/Linux x86_64)
Diffstat (limited to 'app-cdr/isomaster/isomaster-1.3.9-r1.ebuild')
-rw-r--r-- | app-cdr/isomaster/isomaster-1.3.9-r1.ebuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/app-cdr/isomaster/isomaster-1.3.9-r1.ebuild b/app-cdr/isomaster/isomaster-1.3.9-r1.ebuild index 4953ee4f313a..dc11a22f9b6b 100644 --- a/app-cdr/isomaster/isomaster-1.3.9-r1.ebuild +++ b/app-cdr/isomaster/isomaster-1.3.9-r1.ebuild @@ -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/app-cdr/isomaster/isomaster-1.3.9-r1.ebuild,v 1.2 2012/01/21 21:22:10 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-cdr/isomaster/isomaster-1.3.9-r1.ebuild,v 1.3 2012/02/17 17:13:15 sping Exp $ EAPI=4 inherit eutils fdo-mime toolchain-funcs @@ -44,9 +44,21 @@ src_compile() { emake "${myisoconf[@]}" } +_apply_linguas() { + mv "${D}"/usr/share/locale{,_ALL} || die + dodir /usr/share/locale || die + for lingua in ${LINGUAS}; do + [[ -d "${D}"/usr/share/locale_ALL/${lingua} ]] || break + mv "${D}"/usr/share/{locale_ALL/${lingua},locale/} || die + done + rm -R "${D}"/usr/share/locale_ALL || die +} + src_install() { emake "${myisoconf[@]}" DESTDIR="${D}" install dodoc {CHANGELOG,CREDITS,README,TODO}.TXT *.txt + + _apply_linguas # bug 402679 } pkg_postinst() { |