View | Details | Raw Unified | Return to bug 205824
Collapse All | Expand All

(-)misc/p5-Text-FIGlet/Makefile (-1 / +11 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	Text-FIGlet
4
PORTNAME=	Text-FIGlet
5
PORTVERSION=	2.19.3
5
PORTVERSION=	2.19.3
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	misc perl5
7
CATEGORIES=	misc perl5
8
MASTER_SITES=	CPAN
8
MASTER_SITES=	CPAN
9
PKGNAMEPREFIX=	p5-
9
PKGNAMEPREFIX=	p5-
Lines 22-25 Link Here
22
USE_PERL5=	configure
22
USE_PERL5=	configure
23
USES=		perl5 tar:tgz
23
USES=		perl5 tar:tgz
24
24
25
post-patch:
26
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
27
	${WRKSRC}/bin/figlet.pl \
28
	${WRKSRC}/bin/showfigfonts.pl \
29
	${WRKSRC}/lib/Text/FIGlet/Control.pm \
30
	${WRKSRC}/lib/Text/FIGlet/Font.pm \
31
	${WRKSRC}/lib/Text/FIGlet/Illuminated.pm \
32
	${WRKSRC}/lib/Text/FIGlet/Ransom.pm \
33
	${WRKSRC}/lib/Text/FIGlet.pm
34
25
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)misc/p5-Text-FIGlet/files/patch-bin_figlet.pl (+11 lines)
Line 0 Link Here
1
--- bin/figlet.pl.orig	2013-04-02 03:07:34 UTC
2
+++ bin/figlet.pl
3
@@ -334,7 +334,7 @@ It should reside in the directory specif
4
 =item FIGLIB
5
 
6
 The default location of fonts.
7
-If undefined the default is F</usr/games/lib/figlet>
8
+If undefined the default is F<%%PREFIX%%/share/figlet>
9
 
10
 =back
11
 
(-)misc/p5-Text-FIGlet/files/patch-bin_showfigfonts.pl (+11 lines)
Line 0 Link Here
1
--- bin/showfigfonts.pl.orig	2009-01-23 02:31:14 UTC
2
+++ bin/showfigfonts.pl
3
@@ -37,7 +37,7 @@ my %figify = (
4
 	      -w=>$opts{w}),
5
 
6
 
7
-$opts{d} ||= $ENV{FIGLIB} || '/usr/games/lib/figlet/';
8
+$opts{d} ||= $ENV{FIGLIB} || '%%PREFIX%%/share/figlet/';
9
 my @fonts;
10
 find(sub {
11
 	return unless -f && /.[ft]lf$/;
(-)misc/p5-Text-FIGlet/files/patch-lib_Text_FIGlet.pm (+29 lines)
Line 0 Link Here
1
--- lib/Text/FIGlet.pm.orig	2013-04-07 18:20:18 UTC
2
+++ lib/Text/FIGlet.pm
3
@@ -186,7 +186,7 @@ Text::FIGlet can print in a variety of f
4
 right-to-left, with adjacent characters kerned and I<smushed> together in
5
 various ways. FIGlet fonts are stored in separate files, which can be
6
 identified by the suffix I<.flf>. Most FIGlet font files will be stored in
7
-FIGlet's default font directory F</usr/games/lib/figlet>. Support for TOIlet
8
+FIGlet's default font directory F<%%PREFIX%%/share/figlet>. Support for TOIlet
9
 fonts I<*.tlf>, which are typically in the same location, has also been added.
10
 
11
 Text::FIGlet can also use control files, which tell it to map input characters
12
@@ -218,7 +218,7 @@ into a single font as a L<Text::FIGlet::
13
 
14
 Whence to load files.
15
 
16
-Defaults to F</usr/games/lib/figlet>
17
+Defaults to F<%%PREFIX%%/share/figlet>
18
 
19
 =back
20
 
21
@@ -278,7 +278,7 @@ It should reside in the directory specif
22
 =item FIGLIB
23
 
24
 The default location of fonts.
25
-If undefined the default is F</usr/games/lib/figlet>
26
+If undefined the default is F<%%PREFIX%%/share/figlet>
27
 
28
 =back
29
 
(-)misc/p5-Text-FIGlet/files/patch-lib_Text_FIGlet_Control.pm (+20 lines)
Line 0 Link Here
1
--- lib/Text/FIGlet/Control.pm.orig	2009-10-12 00:00:31 UTC
2
+++ lib/Text/FIGlet/Control.pm
3
@@ -24,7 +24,7 @@ sub new{
4
     else{
5
 	$self->{$s} = shift; }
6
   }
7
-  $self->{-d} ||= $ENV{FIGLIB}  || '/usr/games/lib/figlet/';
8
+  $self->{-d} ||= $ENV{FIGLIB}  || '%%PREFIX%%/share/figlet/';
9
   $self->{"_\\"} = 1 if $^O =~ /MSWin32|DOS/i;
10
 
11
 
12
@@ -180,7 +180,7 @@ will make use of these environment varia
13
 =item FIGLIB
14
 
15
 The default location of fonts.
16
-If undefined the default is F</usr/games/lib/figlet>
17
+If undefined the default is F<%%PREFIX%%/share/figlet>
18
 
19
 =back
20
 
(-)misc/p5-Text-FIGlet/files/patch-lib_Text_FIGlet_Font.pm (+38 lines)
Line 0 Link Here
1
--- lib/Text/FIGlet/Font.pm.orig	2013-04-20 02:20:11 UTC
2
+++ lib/Text/FIGlet/Font.pm
3
@@ -18,7 +18,7 @@ sub new{
4
   my $self = {_maxLen=>0, -U=>-1, -m=>-2, @_};
5
   $self->{-m} = -3 if defined($self->{-m}) && $self->{-m} eq '-0';
6
   $self->{-f} ||= $ENV{FIGFONT} || 'standard';
7
-  $self->{-d} ||= $ENV{FIGLIB}  || '/usr/games/lib/figlet/';
8
+  $self->{-d} ||= $ENV{FIGLIB}  || '%%PREFIX%%/share/figlet/';
9
   _load_font($self);
10
   bless($self);
11
 }
12
@@ -370,7 +370,7 @@ B<Text::FIGlet::Font> can print in a var
13
 right-to-left, with adjacent glyphs kerned and smushed together in various
14
 ways. FIGlet fonts are stored in separate files, which can be identified by
15
 the suffix I<.flf>. Most FIGlet font files will be stored in FIGlet's default
16
-font directory F</usr/games/lib/figlet>. Support for TOIlet fonts I<.tlf>,
17
+font directory F<%%PREFIX%%/share/figlet>. Support for TOIlet fonts I<.tlf>,
18
 which are typically in the same location, has also been added.
19
 
20
 This implementation is known to work with perl 5.005, 5.6 and 5.8, including
21
@@ -386,7 +386,7 @@ support for Unicode (UTF-8) in all three
22
 
23
 Whence to load files.
24
 
25
-Defaults to F</usr/games/lib/figlet>
26
+Defaults to F<%%PREFIX%%/share/figlet>
27
 
28
 =item B<-D=E<gt>>I<boolean>
29
 
30
@@ -554,7 +554,7 @@ It should reside in the directory specif
31
 =item FIGLIB
32
 
33
 The default location of fonts.
34
-If undefined the default is F</usr/games/lib/figlet>
35
+If undefined the default is F<%%PREFIX%%/share/figlet>
36
 
37
 =back
38
 
(-)misc/p5-Text-FIGlet/files/patch-lib_Text_FIGlet_Illuminated.pm (+11 lines)
Line 0 Link Here
1
--- lib/Text/FIGlet/Illuminated.pm.orig	2013-04-02 00:35:39 UTC
2
+++ lib/Text/FIGlet/Illuminated.pm
3
@@ -184,7 +184,7 @@ It should reside in the directory specif
4
 =item FIGLIB
5
 
6
 The default location of fonts.
7
-If undefined the default is F</usr/games/lib/figlet>
8
+If undefined the default is F<%%PREFIX%%/share/figlet>
9
 
10
 =back
11
 
(-)misc/p5-Text-FIGlet/files/patch-lib_Text_FIGlet_Ransom.pm (+11 lines)
Line 0 Link Here
1
--- lib/Text/FIGlet/Ransom.pm.orig	2013-04-02 00:32:30 UTC
2
+++ lib/Text/FIGlet/Ransom.pm
3
@@ -310,7 +310,7 @@ will make use of these environment varia
4
 =item FIGLIB
5
 
6
 The default location of fonts.
7
-If undefined the default is F</usr/games/lib/figlet>
8
+If undefined the default is F<%%PREFIX%%/share/figlet>
9
 
10
 =back
11
 

Return to bug 205824