diff options
Diffstat (limited to 'print/p5-PostScript')
-rw-r--r-- | print/p5-PostScript/Makefile | 2 | ||||
-rw-r--r-- | print/p5-PostScript/files/patch-TextBlock.pm | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/print/p5-PostScript/Makefile b/print/p5-PostScript/Makefile index 64ad3f52bf46..9f1e12caedd1 100644 --- a/print/p5-PostScript/Makefile +++ b/print/p5-PostScript/Makefile @@ -3,7 +3,7 @@ PORTNAME= PostScript PORTVERSION= 0.06 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= print perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/print/p5-PostScript/files/patch-TextBlock.pm b/print/p5-PostScript/files/patch-TextBlock.pm new file mode 100644 index 000000000000..0c4edd6d175e --- /dev/null +++ b/print/p5-PostScript/files/patch-TextBlock.pm @@ -0,0 +1,11 @@ +--- TextBlock.pm.orig 1999-08-11 14:04:36 UTC ++++ TextBlock.pm +@@ -54,7 +54,7 @@ sub numElements { + # Returns the number of elements in the TextBlock + # + my $self = shift; +- return $#{@$self}+1; ++ return scalar(@$self); + } + + sub Write { |