summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando J. Pereda <ferdy@gentoo.org>2005-06-22 15:05:22 +0000
committerFernando J. Pereda <ferdy@gentoo.org>2005-06-22 15:05:22 +0000
commitbaf19e049e18c37c31f5a7e140e740c3926f761a (patch)
tree70ab91ca47949f15aad38b43f84bcbc1aecec1a8 /app-i18n/manpages-es
parentInitial import. (diff)
downloadgentoo-2-baf19e049e18c37c31f5a7e140e740c3926f761a.tar.gz
gentoo-2-baf19e049e18c37c31f5a7e140e740c3926f761a.tar.bz2
gentoo-2-baf19e049e18c37c31f5a7e140e740c3926f761a.zip
fix every man page encoding
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-i18n/manpages-es')
-rw-r--r--app-i18n/manpages-es/ChangeLog6
-rw-r--r--app-i18n/manpages-es/manpages-es-1.55.ebuild28
2 files changed, 26 insertions, 8 deletions
diff --git a/app-i18n/manpages-es/ChangeLog b/app-i18n/manpages-es/ChangeLog
index ae8218193516..b686b30cfafd 100644
--- a/app-i18n/manpages-es/ChangeLog
+++ b/app-i18n/manpages-es/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-i18n/manpages-es
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/manpages-es/ChangeLog,v 1.9 2005/06/22 10:43:15 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/manpages-es/ChangeLog,v 1.10 2005/06/22 15:05:22 ferdy Exp $
+
+ 22 Jun 2005; Fernando J. Pereda <ferdy@gentoo.org>
+ manpages-es-1.55.ebuild:
+ fix every man page encoding
22 Jun 2005; David Holm <dholm@gentoo.org> manpages-es-1.55.ebuild:
Added to ~ppc.
diff --git a/app-i18n/manpages-es/manpages-es-1.55.ebuild b/app-i18n/manpages-es/manpages-es-1.55.ebuild
index 08ac25305539..e9ffaa440e80 100644
--- a/app-i18n/manpages-es/manpages-es-1.55.ebuild
+++ b/app-i18n/manpages-es/manpages-es-1.55.ebuild
@@ -1,13 +1,16 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/manpages-es/manpages-es-1.55.ebuild,v 1.2 2005/06/22 10:43:15 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/manpages-es/manpages-es-1.55.ebuild,v 1.3 2005/06/22 15:05:22 ferdy Exp $
-S1=${WORKDIR}/man-pages-es-${PV}
-S2=${WORKDIR}/man-pages-es-extra-0.8a
+manpages=man-pages-es-${PV}
+manpagesextra=man-pages-es-extra-0.8a
+
+S1=${WORKDIR}/${manpages}
+S2=${WORKDIR}/${manpagesextra}
DESCRIPTION="A somewhat comprehensive collection of Linux spanish man page translations"
-SRC_URI="http://ditec.um.es/~piernas/manpages-es/man-pages-es-${PV}.tar.bz2
- http://ditec.um.es/~piernas/manpages-es/man-pages-es-extra-0.8a.tar.gz"
+SRC_URI="http://ditec.um.es/~piernas/manpages-es/${manpages}.tar.bz2
+ http://ditec.um.es/~piernas/manpages-es/${manpagesextra}.tar.gz"
HOMEPAGE="http://ditec.um.es/~piernas/manpages-es/index.html"
IUSE=""
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~x86"
@@ -23,9 +26,20 @@ src_compile() {
}
src_install() {
+ local d f
+
# Wipe useless files
rm -f {${S1},${S2}}/man?/{LEAME,README}
- dodir /usr/share/man/es/
- cp -R {${S1},${S2}}/man?/ ${D}/usr/share/man/es/
+ dodir /usr/share/man/es/man{1,2,3,4,5,6,7,8}
+
+ # This is needed because manpages-es has broken encodings upstream
+ for d in {${S1},${S2}} ; do
+ cd ${d}
+ file -i man?/* | while read f ; do
+ iconv -f ${f##*=} \
+ -t iso8859-1 ${d}/${f%%:*} \
+ -o ${D}/usr/share/man/es/${f%%:*}
+ done
+ done
}