[141917] trunk/dports/perl/p5-locale-gettext

devans at macports.org devans at macports.org
Sat Dec 12 03:33:24 PST 2015


Revision: 141917
          https://trac.macports.org/changeset/141917
Author:   devans at macports.org
Date:     2015-10-30 20:47:00 -0700 (Fri, 30 Oct 2015)
Log Message:
-----------
p5-locale-gettext: update to version 1.07, drop outdated patches now included upstream, minor white space.

Modified Paths:
--------------
    trunk/dports/perl/p5-locale-gettext/Portfile
    trunk/dports/perl/p5-locale-gettext/files/patch-Makefile.PL

Removed Paths:
-------------
    trunk/dports/perl/p5-locale-gettext/files/patch-cpan-rt-35680-1.diff
    trunk/dports/perl/p5-locale-gettext/files/patch-cpan-rt-35680-2.diff

Modified: trunk/dports/perl/p5-locale-gettext/Portfile
===================================================================
--- trunk/dports/perl/p5-locale-gettext/Portfile	2015-10-31 01:45:03 UTC (rev 141916)
+++ trunk/dports/perl/p5-locale-gettext/Portfile	2015-10-31 03:47:00 UTC (rev 141917)
@@ -6,10 +6,10 @@
 PortGroup           perl5 1.0
 
 perl5.branches      5.16 5.18 5.20 5.22
-perl5.setup         Locale-gettext 1.05
-revision            8
+perl5.setup         Locale-gettext 1.07
 set my_name         gettext
 distname            ${my_name}-${perl5.moduleversion}
+worksrcdir          ${perl5.module}-${perl5.moduleversion}
 
 homepage            http://search.cpan.org/dist/gettext/
 license             {Artistic-1 GPL}
@@ -19,23 +19,18 @@
 
 long_description    ${description}
 
-checksums           md5 f3d3f474a1458f37174c410dfef61a46 \
-                    sha1 705f519ad61b4a8c522d8aaf98425e0bd21709f2 \
-                    rmd160 767adfce05b8fe77ddd7d3814951822746cf6e4b
+checksums           rmd160  0f5efafdfa6ede6b766cbb5dac12c980b3566068 \
+                    sha256  909d47954697e7c04218f972915b787bd1244d75e3bd01620bc167d5bbc49c15
 
 if {${perl5.major} != ""} {
-depends_lib-append  port:gettext port:libiconv
+    depends_lib-append \
+                    port:gettext \
+                    port:libiconv
 
-# The first patch below corrects a typo in the documentation. The last two
-# correct a bug discovered by the Debian Project; they come from the CPAN RT
-# ticket tracker (http://rt.cpan.org/Public/Bug/Display.html?id=35680).
-patch.pre_args      -p1
-patchfiles          patch-Makefile.PL \
-                    patch-cpan-rt-35680-1.diff \
-                    patch-cpan-rt-35680-2.diff
+    patchfiles      patch-Makefile.PL
 
 # These clangs don't understand CPATH / LIBRARY_PATH and configure failures result.
-compiler.blacklist-append {clang < 319}
+    compiler.blacklist-append {clang < 319}
 }
 
 livecheck.type      regex

Modified: trunk/dports/perl/p5-locale-gettext/files/patch-Makefile.PL
===================================================================
--- trunk/dports/perl/p5-locale-gettext/files/patch-Makefile.PL	2015-10-31 01:45:03 UTC (rev 141916)
+++ trunk/dports/perl/p5-locale-gettext/files/patch-Makefile.PL	2015-10-31 03:47:00 UTC (rev 141917)
@@ -1,12 +1,12 @@
---- gettext-1.05/Makefile.PL.orig	2005-01-31 10:30:22.000000000 +1100
-+++ gettext-1.05/Makefile.PL	2012-10-03 15:45:12.000000000 +1000
+--- Makefile.PL.orig	2015-10-30 15:37:20.000000000 -0700
++++ Makefile.PL	2015-10-30 15:38:56.000000000 -0700
 @@ -7,6 +7,10 @@
  } else {
  	$cc = $Config{'cc'};
  }
 +my $cflags = '';
 +if (defined($ENV{'CFLAGS'})) {
-+	$cflags = $ENV{'CFLAGS'};
++       $cflags = $ENV{'CFLAGS'};
 +}
  my $libs = '';
  
@@ -17,15 +17,6 @@
      VERSION_FROM => 'gettext.pm', 
 +    CC => $cc,
 +    LD => $cc,
- );
- 
- sub conftest {
-@@ -50,7 +56,7 @@
- 	close TEST;
- 	open(SAVE, ">&STDERR");
- 	open(STDERR, ">/dev/null");
--	system($cc . " -o conftest " . $libs . " conftest.c");
-+	system($cc . " " . $cflags  . " -o conftest " . $libs . " conftest.c");
- 	my $exitstatus = $?;
- 	open(STDERR, ">&SAVE");
- 	if ($exitstatus != 0) {
+     META_MERGE => {
+         resources => {
+             repository => 'https://github.com/vandry/Perl-Locale-gettext',

Deleted: trunk/dports/perl/p5-locale-gettext/files/patch-cpan-rt-35680-1.diff
===================================================================
--- trunk/dports/perl/p5-locale-gettext/files/patch-cpan-rt-35680-1.diff	2015-10-31 01:45:03 UTC (rev 141916)
+++ trunk/dports/perl/p5-locale-gettext/files/patch-cpan-rt-35680-1.diff	2015-10-31 03:47:00 UTC (rev 141917)
@@ -1,14 +0,0 @@
-Fix documentation in manual page
-Index: liblocale-gettext-perl/gettext.pm
-===================================================================
---- liblocale-gettext-perl.orig/gettext.pm	2006-04-13 22:49:49.000000000 +0200
-+++ liblocale-gettext-perl/gettext.pm	2008-02-03 19:53:01.000000000 +0100
-@@ -235,7 +235,7 @@
- gettext(), dgettext(), and dcgettext() attempt to retrieve a string
- matching their C<msgid> parameter within the context of the current
- locale. dcgettext() takes the message's category and the text domain
--as parameters while dcgettext() defaults to the LC_MESSAGES category
-+as parameters while dgettext() defaults to the LC_MESSAGES category
- and gettext() defaults to LC_MESSAGES and uses the current text domain.
- If the string is not found in the database, then C<msgid> is returned.
- 

Deleted: trunk/dports/perl/p5-locale-gettext/files/patch-cpan-rt-35680-2.diff
===================================================================
--- trunk/dports/perl/p5-locale-gettext/files/patch-cpan-rt-35680-2.diff	2015-10-31 01:45:03 UTC (rev 141916)
+++ trunk/dports/perl/p5-locale-gettext/files/patch-cpan-rt-35680-2.diff	2015-10-31 03:47:00 UTC (rev 141917)
@@ -1,25 +0,0 @@
-Locale::Gettext exports by default the various LC_* constants as does the
-POSIX perl module. Up to perl-5.10, their definition was strictly the same
-and didn't cause any harm. Now the POSIX module evolved slightly and the
-symbol redefinition are conflictual and
-generate warnings.
-
-Resolve this by making sure that Locale::Gettext reexports the constants
-coming from the POSIX module.
-
-Fixes Debian bug #479803.
-
- -- Raphael Hertzog <hertzog at debian.org>
-
-Index: liblocale-gettext-perl-1.05/gettext.pm
-===================================================================
---- liblocale-gettext-perl-1.05.orig/gettext.pm	2008-05-07 09:40:23.000000000 +0200
-+++ liblocale-gettext-perl-1.05/gettext.pm	2008-05-07 09:41:04.000000000 +0200
-@@ -32,6 +32,7 @@
- =cut
- 
- use Carp;
-+use POSIX qw(:locale_h);
- 
- require Exporter;
- require DynaLoader;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/b2931c77/attachment.html>


More information about the macports-changes mailing list