Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/libintl-perl/, dev-perl/libintl-perl/files/
Date: Tue, 31 May 2016 22:15:56
Message-Id: 1464732940.ee9a5d36267bc6211d2a2ffa76440ec252bbbfec.dilfridge@gentoo
1 commit: ee9a5d36267bc6211d2a2ffa76440ec252bbbfec
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 22:14:45 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 22:15:40 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee9a5d36
7
8 dev-perl/libintl-perl: More minimal patching, fixes bug 584636
9
10 Package-Manager: portage-2.3.0_rc1
11
12 .../files/libintl-perl-1.240.0-sanity-2.patch | 51 ++++++++++++++++++++++
13 .../libintl-perl/libintl-perl-1.240.0-r2.ebuild | 36 +++++++++++++++
14 2 files changed, 87 insertions(+)
15
16 diff --git a/dev-perl/libintl-perl/files/libintl-perl-1.240.0-sanity-2.patch b/dev-perl/libintl-perl/files/libintl-perl-1.240.0-sanity-2.patch
17 new file mode 100644
18 index 0000000..e6adbf1
19 --- /dev/null
20 +++ b/dev-perl/libintl-perl/files/libintl-perl-1.240.0-sanity-2.patch
21 @@ -0,0 +1,51 @@
22 +diff -ruN libintl-perl-1.24.orig/Makefile.PL libintl-perl-1.24/Makefile.PL
23 +--- libintl-perl-1.24.orig/Makefile.PL 2015-04-03 15:28:12.000000000 +0200
24 ++++ libintl-perl-1.24/Makefile.PL 2016-06-01 00:06:12.000000000 +0200
25 +@@ -163,47 +163,6 @@
26 +
27 + package MY;
28 +
29 +-# FIXME: This is really a hack! Problem: Depending on the build system,
30 +-# we may or may not build and install the XS version. If the XS version
31 +-# is being built, the directory blib/arch will be populated, if it is
32 +-# not being built, blib/arch will be empty. Unfortunately, if blib/arch
33 +-# is not empty, *all* library files will be installed in the architecture
34 +-# dependent locations, if it is empty, they will be installed in the
35 +-# architecture independent tree.
36 +-#
37 +-# Unfortunately, ExtUtils::MakeMaker does not take care of uninstalling
38 +-# files from previous installations. Consequently, we cannot determine
39 +-# which version of the library will be loaded, since this depends on the
40 +-# current value of @INC.
41 +-#
42 +-# The solution does not really make me happy. The Makefile will be patched,
43 +-# so that instead of ExtUtils::Install a custom module MyInstall.pm will
44 +-# be used. This custom module overwrites the subroutine that detects
45 +-# whether a directory is empty in ExtUtils::Install, and will lie if that
46 +-# directory happens to be "blib/arch". This little hack effectively disables
47 +-# the annoying behavior of ExtUtils::Install (and I sincerely hope that
48 +-# this is portable).
49 +-sub libscan
50 +-{
51 +- my ($self, $file) = @_;
52 +-
53 +- return if 'MyInstall.pm' eq $file;
54 +-
55 +- $self->SUPER::libscan ($file);
56 +-}
57 +-
58 +-sub tools_other
59 +-{
60 +- my $self = shift;
61 +-
62 +- my $fragment = $self->SUPER::tools_other (@_);
63 +-
64 +- $fragment =~ s/^MOD_INSTALL\s*=\s*(.*?)-MExtUtils::Install
65 +- /MOD_INSTALL =$1-MMyInstall/msx;
66 +-
67 +- return $fragment;
68 +-}
69 +-
70 + package main;
71 +
72 + my $name = $0;
73
74 diff --git a/dev-perl/libintl-perl/libintl-perl-1.240.0-r2.ebuild b/dev-perl/libintl-perl/libintl-perl-1.240.0-r2.ebuild
75 new file mode 100644
76 index 0000000..e939cdb
77 --- /dev/null
78 +++ b/dev-perl/libintl-perl/libintl-perl-1.240.0-r2.ebuild
79 @@ -0,0 +1,36 @@
80 +# Copyright 1999-2016 Gentoo Foundation
81 +# Distributed under the terms of the GNU General Public License v2
82 +# $Id$
83 +
84 +EAPI=6
85 +
86 +DIST_AUTHOR=GUIDO
87 +DIST_VERSION=1.24
88 +inherit perl-module
89 +
90 +DESCRIPTION="High-Level Interface to Uniforum Message Translation"
91 +HOMEPAGE="http://guido-flohr.net/projects/libintl-perl ${HOMEPAGE}"
92 +
93 +LICENSE="GPL-3"
94 +SLOT="0"
95 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris"
96 +IUSE=""
97 +
98 +RDEPEND="virtual/libintl"
99 +DEPEND="${RDEPEND}
100 + virtual/perl-ExtUtils-MakeMaker
101 +"
102 +
103 +PATCHES=( "${FILESDIR}/${P}-sanity-2.patch" )
104 +
105 +src_test() {
106 + if grep -q '^de_' <( locale -a ) ; then
107 + if grep -q '^de_AT$' <( locale -a ) ; then
108 + perl-module_src_test
109 + else
110 + ewarn "Skipping tests, known broken with de_ and without de_AT"
111 + fi
112 + else
113 + perl-module_src_test
114 + fi
115 +}