diff options
author | daichi <daichi@FreeBSD.org> | 2003-10-15 15:50:35 +0800 |
---|---|---|
committer | daichi <daichi@FreeBSD.org> | 2003-10-15 15:50:35 +0800 |
commit | 8b765df0c9ccfc7481e64d239d4428ba290049d9 (patch) | |
tree | c4b5ffd8c98bfa73f9cb39c9b67ee758031fe803 /www/p5-CGI-Kwiki | |
parent | 0bb85db558dcf482a1d78e86d260ff789805cd6a (diff) | |
download | freebsd-ports-gnome-8b765df0c9ccfc7481e64d239d4428ba290049d9.tar.gz freebsd-ports-gnome-8b765df0c9ccfc7481e64d239d4428ba290049d9.tar.zst freebsd-ports-gnome-8b765df0c9ccfc7481e64d239d4428ba290049d9.zip |
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)
Diffstat (limited to 'www/p5-CGI-Kwiki')
-rw-r--r-- | www/p5-CGI-Kwiki/Makefile | 9 | ||||
-rw-r--r-- | www/p5-CGI-Kwiki/files/p5005-patch-CGI-Kwiki-Template.pm | 12 |
2 files changed, 18 insertions, 3 deletions
diff --git a/www/p5-CGI-Kwiki/Makefile b/www/p5-CGI-Kwiki/Makefile index 1e8e84ebb762..7022dcbd0784 100644 --- a/www/p5-CGI-Kwiki/Makefile +++ b/www/p5-CGI-Kwiki/Makefile @@ -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;' \ diff --git a/www/p5-CGI-Kwiki/files/p5005-patch-CGI-Kwiki-Template.pm b/www/p5-CGI-Kwiki/files/p5005-patch-CGI-Kwiki-Template.pm new file mode 100644 index 000000000000..23bf24573e53 --- /dev/null +++ b/www/p5-CGI-Kwiki/files/p5005-patch-CGI-Kwiki-Template.pm @@ -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?} |