Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 419907

Summary: app-i18n/man-pages-fr-3.40.1 version bump
Product: Gentoo Linux Reporter: Fred Passerin <fopossum>
Component: New packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: enhancement CC: pinkbyte
Priority: Normal Keywords: EBUILD
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Ebuild for manpages-fr 3.40.1
Updated ebuild with ~arch
new ebuild
Handling charset problems with nroff and UTF-8

Description Fred Passerin 2012-06-06 12:07:10 UTC
Created attachment 314409 [details]
Ebuild for manpages-fr 3.40.1

Hi.

The french translations of man pages are quite outdated in Gentoo.

Here is the ebuild for installing the last translation made by Debian and already used in Debian and Ubuntu (Maybe RHEL and CentOS too).

This is my firt ebuild contribution so I'll accept all kind of torture if my work is too dirty.

Thanks guys.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-06 12:19:03 UTC
Comment on attachment 314409 [details]
Ebuild for manpages-fr 3.40.1

--- man-pages-fr-2.39.0.ebuild  2011-08-27 17:34:35.000000000 +0200
+++ -   2012-06-06 14:18:15.426126539 +0200
@@ -1,24 +1,22 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/man-pages-fr/man-pages-fr-2.39.0.ebuild,v 1.4 2011/08/26 20:45:34 grobian Exp $
+# $Header: $
 
-DESCRIPTION="A somewhat comprehensive collection of french Linux man pages"
-HOMEPAGE="http://fr.tldp.org/manfr.php"
-SRC_URI="ftp://ftp.win.tue.nl/pub/linux-local/manpages/translations/${P}.tar.bz2"
+DESCRIPTION="French translations of man-pages maintened by Debian"
+HOMEPAGE="https://alioth.debian.org/projects/perkamon/"
+SRC_URI="http://alioth.debian.org/frs/download.php/3722/${P}.tar.bz2"
 
-LICENSE="as-is GPL-2 BSD MIT LDP-1"
+LICENSE="freedist"
 SLOT="0"
 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-linux"
 IUSE=""
 
 RDEPEND="virtual/man"
+DEPEND=""
 
 src_compile() { :; }
 
 src_install() {
-       dodoc LISEZ_MOI changements
-       for x in man? ; do
-               insinto /usr/share/man/fr/${x}
-               doins ${x}/* || die "doins ${x}"
-       done
-}
+    dodoc fr/README.fr
+    doman -i18n=fr fr/man*/* || die "doman failed"
+}

You forgot to drop KEYWORDS to unstable.
Comment 2 Fred Passerin 2012-06-06 12:27:00 UTC
Created attachment 314411 [details]
Updated ebuild with ~arch

So, here is the updated version with KEYWORDS dropped to unstable.

Thanks.
Comment 3 Fred Passerin 2012-06-07 07:57:18 UTC
Created attachment 314505 [details]
new ebuild

Changes on the description and the homepage as requested by perkamon

See http://listes.traduc.org/pipermail/perkamon-fr/2012-June/000143.html thread
Comment 4 Fred Passerin 2012-06-08 11:59:21 UTC
Created attachment 314673 [details]
Handling charset problems with nroff and UTF-8

Hello.

Some problems with UTF-8 and nroff.

Here are corrections :

20,21c20,29
<     dodoc fr/README.fr
<     doman -i18n=fr fr/man*/* || die "doman failed"
---
>       # nroff doesn't deal correctly with UTF-8
>       einfo "Converting man-pages from UTF-8 to ISO-8859-1"
>
>       for f in fr/*/*
>               do iconv -c -f UTF-8 -t ISO-8859-1 $f -o $f.iso || die "iconv failed for $f"

Thanks.
>               mv $f.iso $f
>       done
>
>       dodoc fr/README.fr
>       doman -i18n=fr fr/man*/* || die "doman failed"
Comment 5 Fred Passerin 2012-06-08 12:01:49 UTC
The diff without pollution this time :

20,21c20,29
<     dodoc fr/README.fr
<     doman -i18n=fr fr/man*/* || die "doman failed"
---
>       # nroff doesn't deal correctly with UTF-8
>       einfo "Converting man-pages from UTF-8 to ISO-8859-1"
>
>       for f in fr/*/*
>               do iconv -c -f UTF-8 -t ISO-8859-1 $f -o $f.iso || die "iconv failed for $f"
>               mv $f.iso $f
>       done
>
>       dodoc fr/README.fr
>       doman -i18n=fr fr/man*/* || die "doman failed"
Comment 6 Fred Passerin 2012-07-18 21:15:16 UTC
I did some more testing.

Using man-db (Bug #284822 and #289884) simplifies a lot the ebuild, skipping the need for the iconv phase.
Comment 7 Pacho Ramos gentoo-dev 2013-01-02 21:36:08 UTC
Are you willing to proxy maintain this?
http://www.gentoo.org/proj/en/qa/proxy-maintainers/index.xml
Comment 8 Sergey Popov gentoo-dev 2013-02-15 20:57:07 UTC
+  15 Feb 2013; Sergey Popov <pinkbyte@gentoo.org> +man-pages-fr-3.40.1.ebuild:
+  Version bump, wrt bug #419907 - EAPI 5, add ~amd64-linux keyword. Thanks to
+  Fred Passerin for ebuild updates

I did not find direct links to newer tarballs. If they exists - please provide them here, and i will update ebuild accordingly.
Comment 9 Ulrich Müller gentoo-dev 2013-02-24 10:54:05 UTC
(In reply to comment #1)
> -LICENSE="as-is GPL-2 BSD MIT LDP-1"
> +LICENSE="freedist"

It's really frustrating if I do a license assessment for a package (which in this case was a non-trivial amount of work, since all individual files must be checked), only to find that it's swept off with the next version bump.

Now fixed again.