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 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.
Created attachment 314411 [details] Updated ebuild with ~arch So, here is the updated version with KEYWORDS dropped to unstable. Thanks.
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
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"
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"
I did some more testing. Using man-db (Bug #284822 and #289884) simplifies a lot the ebuild, skipping the need for the iconv phase.
Are you willing to proxy maintain this? http://www.gentoo.org/proj/en/qa/proxy-maintainers/index.xml
+ 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.
(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.