ports/103467: [PATCH] textproc/p5-Number-Format: update to 1.52

Gea-Suan Lin gslin at gslin.org
Fri Sep 22 00:50:24 UTC 2006


>Number:         103467
>Category:       ports
>Synopsis:       [PATCH] textproc/p5-Number-Format: update to 1.52
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 22 00:50:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 03:43:48 CST 2006
>Description:
- Update to 1.52

Removed file(s):
- files/patch-t-locale.t

Port maintainer (perl at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- p5-Number-Format-1.52.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/textproc/p5-Number-Format/Makefile /home/staff/gslin/work/ports/p5-Number-Format/Makefile
--- /usr/ports/textproc/p5-Number-Format/Makefile	Thu Apr 27 22:17:32 2006
+++ /home/staff/gslin/work/ports/p5-Number-Format/Makefile	Fri Sep 22 08:48:23 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=		Number-Format
-PORTVERSION=		1.51
+PORTVERSION=		1.52
 CATEGORIES=		textproc perl5
 MASTER_SITES=		${MASTER_SITE_PERL_CPAN}
 MASTER_SITE_SUBDIR=	Number
@@ -22,6 +22,7 @@
 .include <bsd.port.pre.mk>
 
 post-patch:
+	${PERL} -pi -e 's/en_US/en_US.US-ASCII/' ${WRKSRC}/t/*.t
 .if ${PERL_LEVEL} < 500800
 	${PERL} -pi -e '$$_="" if m{5.008}' ${WRKSRC}/Format.pm
 .endif
diff -ruN --exclude=CVS /usr/ports/textproc/p5-Number-Format/distinfo /home/staff/gslin/work/ports/p5-Number-Format/distinfo
--- /usr/ports/textproc/p5-Number-Format/distinfo	Thu Apr 27 22:17:32 2006
+++ /home/staff/gslin/work/ports/p5-Number-Format/distinfo	Fri Sep 22 08:42:13 2006
@@ -1,3 +1,3 @@
-MD5 (Number-Format-1.51.tar.gz) = 0191de22501fa4df10a58a400bd79977
-SHA256 (Number-Format-1.51.tar.gz) = 5b02975dd39379cf472af5f04b6f684fca131a5dce56bbac81d9a469e17edc84
-SIZE (Number-Format-1.51.tar.gz) = 16340
+MD5 (Number-Format-1.52.tar.gz) = 20aba083241f721dc4e0e8dc501ab1c1
+SHA256 (Number-Format-1.52.tar.gz) = 0c465fc6eade7b8150dde58040c56759e5c3022c2b09c7540a0e273c9fd226f2
+SIZE (Number-Format-1.52.tar.gz) = 16363
diff -ruN --exclude=CVS /usr/ports/textproc/p5-Number-Format/files/patch-Format.pm /home/staff/gslin/work/ports/p5-Number-Format/files/patch-Format.pm
--- /usr/ports/textproc/p5-Number-Format/files/patch-Format.pm	Thu Apr 27 22:17:32 2006
+++ /home/staff/gslin/work/ports/p5-Number-Format/files/patch-Format.pm	Fri Sep 22 08:43:54 2006
@@ -1,13 +1,11 @@
---- Format.pm.orig	Thu Apr 27 00:47:37 2006
-+++ Format.pm	Thu Apr 27 21:59:09 2006
-@@ -643,8 +643,8 @@
-     $decimal .= '0'x($precision - length $decimal);
+--- Format.pm.orig	Fri Sep 22 08:43:28 2006
++++ Format.pm	Fri Sep 22 08:43:35 2006
+@@ -644,7 +644,7 @@
  
      # Combine it all back together and return it.
--    $self->{int_curr_symbol} =~ s/\s+$/ /;
+     $self->{int_curr_symbol} =~ s/\s*$/ /;
 -    my $result = ($self->{int_curr_symbol} .
-+    $self->{int_curr_symbol} =~ s/\s+$//;
-+    my $result = ($self->{int_curr_symbol} . ' ' .
++    my $result = ($self->{int_curr_symbol} . ' '
                    ($precision ?
                     join($self->{mon_decimal_point}, $integer, $decimal) :
                     $integer));
diff -ruN --exclude=CVS /usr/ports/textproc/p5-Number-Format/files/patch-t-locale.t /home/staff/gslin/work/ports/p5-Number-Format/files/patch-t-locale.t
--- /usr/ports/textproc/p5-Number-Format/files/patch-t-locale.t	Thu Apr 27 22:17:32 2006
+++ /home/staff/gslin/work/ports/p5-Number-Format/files/patch-t-locale.t	Thu Jan  1 08:00:00 1970
@@ -1,11 +0,0 @@
---- t/locale.t.orig	Thu Apr 27 21:59:24 2006
-+++ t/locale.t	Thu Apr 27 21:59:32 2006
-@@ -34,7 +34,7 @@
- }
- print "ok 2\n";
- 
--setlocale(&LC_ALL, "en_US");
-+setlocale(&LC_ALL, "en_US.US-ASCII");
- my $english = new Number::Format();
- print "not " unless ($english->format_price(123456.789) eq 'USD 123,456.79');
- print "ok 3\n";
--- p5-Number-Format-1.52.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list