diff options
author | Torsten Veller <tove@gentoo.org> | 2010-10-19 16:18:04 +0000 |
---|---|---|
committer | Torsten Veller <tove@gentoo.org> | 2010-10-19 16:18:04 +0000 |
commit | 5c6dcad3b737a3096008e0d3206a47de6d3051c9 (patch) | |
tree | 4510f45f65dc57a3240a808d32250e0c4cc249d0 /app-text/po4a | |
parent | Bump (diff) | |
download | gentoo-2-5c6dcad3b737a3096008e0d3206a47de6d3051c9.tar.gz gentoo-2-5c6dcad3b737a3096008e0d3206a47de6d3051c9.tar.bz2 gentoo-2-5c6dcad3b737a3096008e0d3206a47de6d3051c9.zip |
Version bump (#338520). Tests work with gettext-0.18.1.1 (#341073)
(Portage version: 2.2_rc98/cvs/Linux x86_64)
Diffstat (limited to 'app-text/po4a')
-rw-r--r-- | app-text/po4a/ChangeLog | 8 | ||||
-rw-r--r-- | app-text/po4a/files/compare-po.pl | 37 | ||||
-rw-r--r-- | app-text/po4a/po4a-0.40.1.ebuild | 38 |
3 files changed, 82 insertions, 1 deletions
diff --git a/app-text/po4a/ChangeLog b/app-text/po4a/ChangeLog index 62b10e04aac6..801531b496c8 100644 --- a/app-text/po4a/ChangeLog +++ b/app-text/po4a/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/po4a # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/po4a/ChangeLog,v 1.48 2010/05/08 18:02:00 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/po4a/ChangeLog,v 1.49 2010/10/19 16:18:04 tove Exp $ + +*po4a-0.40.1 (19 Oct 2010) + + 19 Oct 2010; Torsten Veller <tove@gentoo.org> +po4a-0.40.1.ebuild, + +files/compare-po.pl: + Version bump (#338520). Tests work with gettext-0.18.1.1 (#341073) 08 May 2010; Raúl Porcel <armin76@gentoo.org> po4a-0.38.ebuild: alpha/ia64/m68k/s390/sh/sparc stable wrt #312979 diff --git a/app-text/po4a/files/compare-po.pl b/app-text/po4a/files/compare-po.pl new file mode 100644 index 000000000000..c01b9b8f31ee --- /dev/null +++ b/app-text/po4a/files/compare-po.pl @@ -0,0 +1,37 @@ +#! /usr/bin/perl +# Remove header entry of two PO files and compare them + +my $f1 = shift(@ARGV); +my $f2 = shift(@ARGV); + +open IN1, "<", $f1 or die "Unable to read 1st file: $!\n"; +open IN2, "<", $f2 or die "Unable to read 2nd file: $!\n"; +my $inMsgstr = 0; +my $lineno = 0; +while (<IN1>) { + $lineno ++; + if (m/^msgstr/) { + $inMsgstr = 1; + } elsif ($inMsgstr == 1 && $_ !~ /^"/) { + last; + } +} +$inMsgstr = 0; +while (<IN2>) { + if (m/^msgstr/) { + $inMsgstr = 1; + } elsif ($inMsgstr == 1 && $_ !~ /^"/) { + last; + } +} + +# Now compare lines +while (<IN1>) { + $lineno ++; + my $l2 = <IN2> or die "Unexpected EOF found when reading $f2\n"; + $_ eq $l2 or die "Files $f1 and $f2 differ at line $lineno:\n-$_+$l2\n"; +} +close IN1; +die "EOF expected at 2nd file\n" unless eof(IN2); +close IN2; +exit 0; diff --git a/app-text/po4a/po4a-0.40.1.ebuild b/app-text/po4a/po4a-0.40.1.ebuild new file mode 100644 index 000000000000..afdc1c979873 --- /dev/null +++ b/app-text/po4a/po4a-0.40.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/po4a/po4a-0.40.1.ebuild,v 1.1 2010/10/19 16:18:04 tove Exp $ + +EAPI=2 + +inherit perl-app + +DESCRIPTION="Tools for helping translation of documentation" +HOMEPAGE="http://po4a.alioth.debian.org" +SRC_URI="mirror://debian/pool/main/p/po4a/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-solaris ~x86-solaris" +IUSE="test" + +RDEPEND="dev-perl/SGMLSpm + >=sys-devel/gettext-0.13 + app-text/openjade + dev-perl/Locale-gettext + dev-perl/TermReadKey + dev-perl/Text-WrapI18N" +DEPEND="${RDEPEND} + >=virtual/perl-Module-Build-0.34.0201 + test? ( app-text/docbook-sgml-dtd + app-text/docbook-sgml-utils + virtual/tex-base )" + +SRC_TEST="do" +S=${WORKDIR}/${PN}-v${PV} + +src_prepare() { + cp "${FILESDIR}"/compare-po.pl "${S}"/t/ || die + rm "${S}"/Makefile || die + sed -i '/^Makefile$/d' "${S}"/MANIFEST || die + perl-module_src_prepare +} |