dev-perl/libintl-perl: Sync with gentoo

It's from gentoo commit 71ce13d896cf0ffa2391c5226b73e0907635262e.
This commit is contained in:
Krzesimir Nowak 2022-03-02 17:28:15 +01:00
parent 0cc613a6ee
commit 86fc0c28ae
6 changed files with 35 additions and 112 deletions

View File

@ -1,2 +1 @@
DIST libintl-perl-1.24.tar.gz 605626 BLAKE2B 6949f895ba54853704d5470e8a736e799d74ddbd569378254ac19ada9cc43c644f78bea1949b7a4c0072d4fe54f0744b7ad011539c6a1dd1191c6792c9347f1a SHA512 1c2c5d6d7ab21c45897195952a9f0f6ba26a9bbb7bfef0b5f3e9da282fcf94ab4ee80721164e5e3293d8abda0158e77ffbc331b8bed66aa56dd7fc7a6a91323d DIST libintl-perl-1.32.tar.gz 598209 BLAKE2B 1aa9ef3e2d4c1c15eb5301880e2141864d53e3e8620656276ceb07f0946612d56801021bc78bb132fee910f3ce3e55e3a092cd0305831680a9adcd731249c680 SHA512 fca6c8863dfd36c7604bc80a401e825eb707bc75016521c09006c34c170a41b009d30ec93d7e2a7f61caa1dbdf0333511c3d515d4fdc0fea32242eca68a7e35d
DIST libintl-perl-1.28.tar.gz 470898 BLAKE2B 6217a37f2176869dc945bd64a87a82710645153e3777fb5e4ddc674f179040d2268f326411a578314efafaa0edbd0e67aed99c4da86e20e811e1116d5cf2a86a SHA512 50f0836c1a84a22fcc8fca0fff2faeaae66774ec67b96c09a911c4969e8a610bbf20ba38167c13339b9ad9617e1fca07cb0cb1f12732f973b1cf618d502f59aa

View File

@ -1,51 +0,0 @@
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;

View File

@ -1,35 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
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 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~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
}

View File

@ -1,23 +0,0 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=GUIDO
DIST_VERSION=1.28
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 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~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" )

View File

@ -0,0 +1,33 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_AUTHOR=GUIDO
DIST_VERSION=1.32
DIST_EXAMPLES=("sample/*")
inherit perl-module
DESCRIPTION="High-Level Interface to Uniforum Message Translation"
HOMEPAGE="http://guido-flohr.net/projects/libintl-perl https://metacpan.org/release/libintl-perl"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
IUSE="minimal"
RDEPEND="
virtual/libintl
!minimal? (
dev-perl/File-ShareDir
)
virtual/perl-File-Spec
>=virtual/perl-version-0.770.0
"
DEPEND="${RDEPEND}
"
BDEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
"
PATCHES=( "${FILESDIR}/${PN}-1.280.0-sanity-2.patch" )

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata> <pkgmetadata>
<maintainer type="project"> <maintainer type="project">
<email>perl@gentoo.org</email> <email>perl@gentoo.org</email>