svn commit: r392412 - in head/textproc/p5-Text-Reflow: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Jul 18 11:13:32 UTC 2015
Author: sunpoet
Date: Sat Jul 18 11:13:29 2015
New Revision: 392412
URL: https://svnweb.freebsd.org/changeset/ports/392412
Log:
- Update to 1.10
- Add LICENSE
- Strip shared library
- Rename patch file to avoid EXTRA_PATCHES
- Sort PLIST
Changes: http://search.cpan.org/dist/Text-Reflow/Changes
Added:
head/textproc/p5-Text-Reflow/files/patch-Reflow.pm
- copied unchanged from r392151, head/textproc/p5-Text-Reflow/files/5.8-Reflow.pm
Deleted:
head/textproc/p5-Text-Reflow/files/5.8-Reflow.pm
Modified:
head/textproc/p5-Text-Reflow/Makefile
head/textproc/p5-Text-Reflow/distinfo
head/textproc/p5-Text-Reflow/pkg-plist
Modified: head/textproc/p5-Text-Reflow/Makefile
==============================================================================
--- head/textproc/p5-Text-Reflow/Makefile Sat Jul 18 11:13:24 2015 (r392411)
+++ head/textproc/p5-Text-Reflow/Makefile Sat Jul 18 11:13:29 2015 (r392412)
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= Text-Reflow
-PORTVERSION= 1.09
-PORTREVISION= 1
+PORTVERSION= 1.10
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -11,9 +10,13 @@ PKGNAMEPREFIX= p5-
MAINTAINER= perl at FreeBSD.org
COMMENT= Perl module for reflowing text files
+LICENSE= ART10 GPLv1
+LICENSE_COMB= dual
+
USES= perl5
USE_PERL5= configure
-EXTRA_PATCHES= ${PATCHDIR}/5.8-Reflow.pm
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Text/Reflow/Reflow.so
.include <bsd.port.mk>
Modified: head/textproc/p5-Text-Reflow/distinfo
==============================================================================
--- head/textproc/p5-Text-Reflow/distinfo Sat Jul 18 11:13:24 2015 (r392411)
+++ head/textproc/p5-Text-Reflow/distinfo Sat Jul 18 11:13:29 2015 (r392412)
@@ -1,2 +1,2 @@
-SHA256 (Text-Reflow-1.09.tar.gz) = b2a0162d6cec41d9926fcb46a1cf48c81ca197f42bad467aa9eabfb9a73f5912
-SIZE (Text-Reflow-1.09.tar.gz) = 15804
+SHA256 (Text-Reflow-1.10.tar.gz) = efbb9d6774355f3c7aa111ce59cd21a6e2da940e4b49f4955cc1fcb5075c959b
+SIZE (Text-Reflow-1.10.tar.gz) = 16026
Copied: head/textproc/p5-Text-Reflow/files/patch-Reflow.pm (from r392151, head/textproc/p5-Text-Reflow/files/5.8-Reflow.pm)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/p5-Text-Reflow/files/patch-Reflow.pm Sat Jul 18 11:13:29 2015 (r392412, copy of r392151, head/textproc/p5-Text-Reflow/files/5.8-Reflow.pm)
@@ -0,0 +1,63 @@
+--- Reflow.pm.orig 2009-02-07 14:24:01.000000000 +0000
++++ Reflow.pm 2009-02-12 16:47:20.000000000 +0000
+@@ -32,7 +32,7 @@
+
+ $Text::Reflow::VERSION = "1.06";
+
+-bootstrap Text::Reflow $Text::Reflow::VERSION;
++#bootstrap Text::Reflow $Text::Reflow::VERSION;
+
+ # Preloaded methods go here.
+
+@@ -41,17 +41,17 @@
+ # bootstrap Text::Reflow $VERSION;
+ # above, and take the _ from the front of this perl version:
+
+-sub _reflow_trial($$$$$$$$$$) {
++sub reflow_trial($$$$$$$$$$) {
+ my ($optimum, $maximum, $wordcount,
+ $penaltylimit, $semantic, $shortlast,
+ $word_len, $space_len, $extra, $result) = @_;
+ my ($lastbreak, @linkbreak);
+ my ($j, $k, $interval, $penalty, @totalpenalty, $bestsofar);
+ my (@best_linkbreak, $best_lastbreak, $opt);
+- my @optimum = unpack("N*", pack("H*", $optimum));
+- my @word_len = unpack("N*", pack("H*", $word_len));
+- my @space_len = unpack("N*", pack("H*", $space_len));
+- my @extra = unpack("N*", pack("H*", $extra));
++ my @optimum = unpack("j*", pack("H*", $optimum));
++ my @word_len = unpack("j*", pack("H*", $word_len));
++ my @space_len = unpack("j*", pack("H*", $space_len));
++ my @extra = unpack("j*", pack("H*", $extra));
+ my $best = $penaltylimit * 21;
+ foreach $opt (@optimum) {
+ @linkbreak = ();
+@@ -101,7 +101,7 @@
+ }
+ } # Next $opt
+ # Return the best breaks:
+- $result = unpack("H*", pack("N*", ($best_lastbreak, @best_linkbreak)));
++ $result = unpack("H*", pack("j*", ($best_lastbreak, @best_linkbreak)));
+ return($result);
+ }
+
+@@ -511,14 +511,14 @@
+ $linkbreak[$wordcount] = 0;
+ # Create space for the result:
+ my $result = " " x (($wordcount + 2) * 8);
+- $result = reflow_trial(unpack("H*", pack("N*", @$optimum)),
++ $result = reflow_trial(unpack("H*", pack("j*", @$optimum)),
+ $maximum, $wordcount,
+ $penaltylimit, $semantic, $shortlast,
+- unpack("H*", pack("N*", @word_len)),
+- unpack("H*", pack("N*", @space_len)),
+- unpack("H*", pack("N*", @extra)),
++ unpack("H*", pack("j*", @word_len)),
++ unpack("H*", pack("j*", @space_len)),
++ unpack("H*", pack("j*", @extra)),
+ $result);
+- @linkbreak = unpack("N*", pack("H*", $result));
++ @linkbreak = unpack("j*", pack("H*", $result));
+ # Convert @linkbreak from unsigned to signed:
+ @linkbreak = map { $_ > 0xF0000000 ? -((0xFFFFFFFF - $_) + 1) : $_ + 0 } @linkbreak;
+ $lastbreak = shift(@linkbreak);
Modified: head/textproc/p5-Text-Reflow/pkg-plist
==============================================================================
--- head/textproc/p5-Text-Reflow/pkg-plist Sat Jul 18 11:13:24 2015 (r392411)
+++ head/textproc/p5-Text-Reflow/pkg-plist Sat Jul 18 11:13:29 2015 (r392412)
@@ -1,3 +1,4 @@
-%%PERL5_MAN3%%/Text::Reflow.3.gz
+bin/reflow
%%SITE_ARCH%%/Text/Reflow.pm
%%SITE_ARCH%%/auto/Text/Reflow/Reflow.so
+%%PERL5_MAN3%%/Text::Reflow.3.gz
More information about the svn-ports-all
mailing list