summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Perier <mrpouet@gentoo.org>2009-10-25 19:43:23 +0100
committerRomain Perier <mrpouet@gentoo.org>2009-10-25 19:43:23 +0100
commit05cdad39e005d0018592c9926aaf48195978cd76 (patch)
tree33773ea2309b9d7d515f6c166943da0cfd132f0b
parentapp-i18n/man-pages-fr: install man-pages in man/fr using i18n arg (doman) (diff)
downloadmrpouet-05cdad39e005d0018592c9926aaf48195978cd76.tar.gz
mrpouet-05cdad39e005d0018592c9926aaf48195978cd76.tar.bz2
mrpouet-05cdad39e005d0018592c9926aaf48195978cd76.zip
app-i18n/man-pages-fr: Add a convertion from UTF-8 to ISO-8859-1
-rw-r--r--app-i18n/man-pages-fr/Manifest2
-rw-r--r--app-i18n/man-pages-fr/man-pages-fr-3.22.1.ebuild11
2 files changed, 10 insertions, 3 deletions
diff --git a/app-i18n/man-pages-fr/Manifest b/app-i18n/man-pages-fr/Manifest
index 3bd7a62..9d7644c 100644
--- a/app-i18n/man-pages-fr/Manifest
+++ b/app-i18n/man-pages-fr/Manifest
@@ -1,3 +1,3 @@
DIST manpages-fr_3.22.1-3.diff.gz 3698748 RMD160 6f09f625f4fc2677125399a9d629280b732b83f5 SHA1 8b3d50c483364ee7080fc1b986393e15917891d5 SHA256 716f532cbfc2b986fa44913b6a450d75a5d0fc508bde12a33a0c956bb4b9f4e3
DIST manpages-fr_3.22.1.orig.tar.gz 1298653 RMD160 0857bc4f90ca7aa168cc3a9dae5d6eab2f6f6eae SHA1 807fef34a6bca92ec5efa8bde430ae79e9bff555 SHA256 cee179efc76c766e2dea2475a72512aed86d3a818380da5a9b0d3acb8a4909f7
-EBUILD man-pages-fr-3.22.1.ebuild 880 RMD160 13b8f4d1a9844726c2f0766a9289326b24688c95 SHA1 b6bc7e7aa368662adf673b738e6caa1368aa6512 SHA256 52a96ab0cd39d7116029307bdbc93352464f8afc05b8054d83d58a9014d287c6
+EBUILD man-pages-fr-3.22.1.ebuild 1085 RMD160 dc3deb65abb21c86f51043fff504f889787b0272 SHA1 21b8e48c6ed4589e14e98d075657b4e053a6c19b SHA256 40fd3b778579c88200f1e026b9ab1b7ef36ceaf493b3505f77400b7a431ff7b4
diff --git a/app-i18n/man-pages-fr/man-pages-fr-3.22.1.ebuild b/app-i18n/man-pages-fr/man-pages-fr-3.22.1.ebuild
index d3f55ec..2a0e281 100644
--- a/app-i18n/man-pages-fr/man-pages-fr-3.22.1.ebuild
+++ b/app-i18n/man-pages-fr/man-pages-fr-3.22.1.ebuild
@@ -33,6 +33,13 @@ src_unpack() {
epatch "${WORKDIR}/${MY_P}-${PATCH_LEVEL}.diff"
}
src_install() {
- doman -i18n=fr $(echo {manpages,manpages-dev}/fr/*/*) || die "doman 1 failed"
- doman -i18n=fr $(echo manpagesfr/*/*) || die "doman 2 failed"
+ local man_pages="$(echo {manpages,manpages-dev}/fr/*/*) $(echo manpagesfr/*/*)"
+
+ # nroff has some difficulties with charset=utf-8
+ einfo "Converting man-pages to ISO-8859-1"
+ for f in $man_pages; do
+ iconv -c -f UTF-8 -t ISO-8859-1 $f -o $f.tmp || die "iconv failed for $f"
+ mv $f.tmp $f
+ done
+ doman -i18n=fr $man_pages || die "doman failed"
}