mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
update www/p5-CGI-Kwiki: 0.18 -> 0.18_1
- add RUN_DEPENDS with p5-Locale-Maketext - add EXTRA_PATCHES with PERL_LEVEL < 5.00601 PR: 58043 Submitted by: Cheng-Lung Sung <clsung@dragon2.net> (maintainer)
This commit is contained in:
parent
d8ff273b64
commit
bf6b384902
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=91294
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= CGI-Kwiki
|
||||
PORTVERSION= 0.18
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= CGI
|
||||
@ -15,10 +16,11 @@ PKGNAMEPREFIX= p5-
|
||||
MAINTAINER= clsung@dragon2.net
|
||||
COMMENT= A Quickie Wiki Package that's not too Tricky
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
BUILD_DEPENDS= ${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS}
|
||||
RUN_DEPENDS= ${BUILD_DEPENDS} \
|
||||
${SITE_PERL}/Locale/Maketext.pm:${PORTSDIR}/devel/p5-Locale-Maketext
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN1= kwiki-install.1
|
||||
MAN3= CGI::Kwiki.3 \
|
||||
@ -49,6 +51,7 @@ post-configure:
|
||||
-e 'if (/\@\$$\(POD2MAN\)/) { $$_ .= "\tlib/CGI/Kwiki/Config.pm \\\n\t\$$(INST_MAN3DIR)/CGI::Kwiki::Config.\$$(MAN3EXT) \\\n\tlib/CGI/Kwiki/Config_yaml.pm \\\n\t\$$(INST_MAN3DIR)/CGI::Kwiki::Config_yaml.\$$(MAN3EXT) \\\n"};' \
|
||||
${WRKSRC}/Makefile
|
||||
.if ${PERL_LEVEL} < 500601
|
||||
EXTRA_PATCHES= ${FILESDIR}/p5005-patch-CGI-Kwiki-Template.pm
|
||||
post-patch:
|
||||
${PERL} -pi -e '$$_ = "" if /warnings/;' \
|
||||
-e 's/\$$\w+(->\w+)?->\$$\w+\b(?!\()/$$&()/g;' \
|
||||
|
12
www/p5-CGI-Kwiki/files/p5005-patch-CGI-Kwiki-Template.pm
Normal file
12
www/p5-CGI-Kwiki/files/p5005-patch-CGI-Kwiki-Template.pm
Normal file
@ -0,0 +1,12 @@
|
||||
--- lib/CGI/Kwiki/Template.pm.orig Fri Aug 29 09:30:19 2003
|
||||
+++ lib/CGI/Kwiki/Template.pm Wed Oct 15 11:37:23 2003
|
||||
@@ -71,7 +71,8 @@
|
||||
my ($self, $text, $v) = @_;
|
||||
my $re;
|
||||
$text = $self->loc($text);
|
||||
- $re = qr/\[((?:(?>[^\[\]]+)|(??{$re}))*)\]/;
|
||||
+ #$re = qr/\[((?:(?>[^\[\]]+)|(??{$re}))*)\]/;
|
||||
+ $re = qr/\[((?:(?>[^\[\]]+)|\[[^\[\]]*\])*)\]/;
|
||||
$text =~ s{$re}
|
||||
{<a href="[% script %]?$1">$1</a>}g;
|
||||
$text =~ s{\[%\s+(\w+)\s+%\]\n?}
|
Loading…
Reference in New Issue
Block a user