From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EE64B13829C for ; Tue, 31 May 2016 22:15:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5347221C063; Tue, 31 May 2016 22:15:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9FBC221C063 for ; Tue, 31 May 2016 22:15:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 89EA93408A2 for ; Tue, 31 May 2016 22:15:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0814A963 for ; Tue, 31 May 2016 22:15:48 +0000 (UTC) From: "Andreas Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Hüttel" Message-ID: <1464732940.ee9a5d36267bc6211d2a2ffa76440ec252bbbfec.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/libintl-perl/, dev-perl/libintl-perl/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-perl/libintl-perl/files/libintl-perl-1.240.0-sanity-2.patch dev-perl/libintl-perl/libintl-perl-1.240.0-r2.ebuild X-VCS-Directories: dev-perl/libintl-perl/files/ dev-perl/libintl-perl/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas Hüttel X-VCS-Revision: ee9a5d36267bc6211d2a2ffa76440ec252bbbfec X-VCS-Branch: master Date: Tue, 31 May 2016 22:15:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 16c621d4-ab3b-4872-a372-e5932548971e X-Archives-Hash: 81b843543dde6fdd32b69cccb06b4874 commit: ee9a5d36267bc6211d2a2ffa76440ec252bbbfec Author: Andreas K. Hüttel gentoo org> AuthorDate: Tue May 31 22:14:45 2016 +0000 Commit: Andreas Hüttel gentoo org> CommitDate: Tue May 31 22:15:40 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee9a5d36 dev-perl/libintl-perl: More minimal patching, fixes bug 584636 Package-Manager: portage-2.3.0_rc1 .../files/libintl-perl-1.240.0-sanity-2.patch | 51 ++++++++++++++++++++++ .../libintl-perl/libintl-perl-1.240.0-r2.ebuild | 36 +++++++++++++++ 2 files changed, 87 insertions(+) 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 new file mode 100644 index 0000000..e6adbf1 --- /dev/null +++ b/dev-perl/libintl-perl/files/libintl-perl-1.240.0-sanity-2.patch @@ -0,0 +1,51 @@ +diff -ruN libintl-perl-1.24.orig/Makefile.PL libintl-perl-1.24/Makefile.PL +--- libintl-perl-1.24.orig/Makefile.PL 2015-04-03 15:28:12.000000000 +0200 ++++ libintl-perl-1.24/Makefile.PL 2016-06-01 00:06:12.000000000 +0200 +@@ -163,47 +163,6 @@ + + package MY; + +-# FIXME: This is really a hack! Problem: Depending on the build system, +-# we may or may not build and install the XS version. If the XS version +-# is being built, the directory blib/arch will be populated, if it is +-# not being built, blib/arch will be empty. Unfortunately, if blib/arch +-# is not empty, *all* library files will be installed in the architecture +-# dependent locations, if it is empty, they will be installed in the +-# architecture independent tree. +-# +-# Unfortunately, ExtUtils::MakeMaker does not take care of uninstalling +-# files from previous installations. Consequently, we cannot determine +-# which version of the library will be loaded, since this depends on the +-# current value of @INC. +-# +-# The solution does not really make me happy. The Makefile will be patched, +-# so that instead of ExtUtils::Install a custom module MyInstall.pm will +-# be used. This custom module overwrites the subroutine that detects +-# whether a directory is empty in ExtUtils::Install, and will lie if that +-# directory happens to be "blib/arch". This little hack effectively disables +-# the annoying behavior of ExtUtils::Install (and I sincerely hope that +-# this is portable). +-sub libscan +-{ +- my ($self, $file) = @_; +- +- return if 'MyInstall.pm' eq $file; +- +- $self->SUPER::libscan ($file); +-} +- +-sub tools_other +-{ +- my $self = shift; +- +- my $fragment = $self->SUPER::tools_other (@_); +- +- $fragment =~ s/^MOD_INSTALL\s*=\s*(.*?)-MExtUtils::Install +- /MOD_INSTALL =$1-MMyInstall/msx; +- +- return $fragment; +-} +- + package main; + + my $name = $0; 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 new file mode 100644 index 0000000..e939cdb --- /dev/null +++ b/dev-perl/libintl-perl/libintl-perl-1.240.0-r2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DIST_AUTHOR=GUIDO +DIST_VERSION=1.24 +inherit perl-module + +DESCRIPTION="High-Level Interface to Uniforum Message Translation" +HOMEPAGE="http://guido-flohr.net/projects/libintl-perl ${HOMEPAGE}" + +LICENSE="GPL-3" +SLOT="0" +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" +IUSE="" + +RDEPEND="virtual/libintl" +DEPEND="${RDEPEND} + virtual/perl-ExtUtils-MakeMaker +" + +PATCHES=( "${FILESDIR}/${P}-sanity-2.patch" ) + +src_test() { + if grep -q '^de_' <( locale -a ) ; then + if grep -q '^de_AT$' <( locale -a ) ; then + perl-module_src_test + else + ewarn "Skipping tests, known broken with de_ and without de_AT" + fi + else + perl-module_src_test + fi +}