dev-util/intltool: Revision bump for bug 614698
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Tue, 27 Jun 2017 22:54:58 +0000 (00:54 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Tue, 27 Jun 2017 22:54:58 +0000 (00:54 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-util/intltool/files/intltool-0.51.0-perl-5.26.patch [new file with mode: 0644]
dev-util/intltool/intltool-0.51.0-r2.ebuild [new file with mode: 0644]

diff --git a/dev-util/intltool/files/intltool-0.51.0-perl-5.26.patch b/dev-util/intltool/files/intltool-0.51.0-perl-5.26.patch
new file mode 100644 (file)
index 0000000..4af2ed8
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ruN intltool-0.51.0.orig/intltool-update.in intltool-0.51.0/intltool-update.in
+--- intltool-0.51.0.orig/intltool-update.in    2017-06-28 00:47:20.889269294 +0200
++++ intltool-0.51.0/intltool-update.in 2017-06-28 00:48:14.592271529 +0200
+@@ -1068,7 +1068,7 @@
+       my $untouched = $1;
+       my $sub = "";
+         # Ignore recursive definitions of variables
+-        $sub = $varhash{$2} if defined $varhash{$2} and $varhash{$2} !~ /\${?$2}?/;
++        $sub = $varhash{$2} if defined $varhash{$2} and $varhash{$2} !~ /\$\{?$2}?/;
+ 
+       return SubstituteVariable ("$untouched$sub$rest");
+     }
diff --git a/dev-util/intltool/intltool-0.51.0-r2.ebuild b/dev-util/intltool/intltool-0.51.0-r2.ebuild
new file mode 100644 (file)
index 0000000..d93d95a
--- /dev/null
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Internationalization Tool Collection"
+HOMEPAGE="https://launchpad.net/intltool/"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="
+       dev-lang/perl
+       dev-perl/XML-Parser
+"
+RDEPEND="${DEPEND}
+       sys-devel/gettext
+"
+DOCS=( AUTHORS ChangeLog NEWS README TODO doc/I18N-HOWTO )
+
+PATCHES=(
+       # Fix handling absolute paths in single file key output, bug #470040
+       # https://bugs.launchpad.net/intltool/+bug/1168941
+       "${FILESDIR}"/${PN}-0.50.2-absolute-paths.patch
+       "${FILESDIR}"/${PN}-0.51.0-perl-5.22.patch
+       "${FILESDIR}"/${PN}-0.51.0-perl-5.26.patch
+)