aboutsummaryrefslogtreecommitdiff
path: root/www/p5-CGI-Kwiki
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2003-10-15 07:50:35 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2003-10-15 07:50:35 +0000
commitbf6b384902cdd2d18d5328c709e2c8bac8f2e64c (patch)
tree68e43e334fc69e45feec99c400fbc7b1200596f2 /www/p5-CGI-Kwiki
parentd8ff273b649ade5a96203ea6e063290d7b2182fb (diff)
downloadports-bf6b384902cdd2d18d5328c709e2c8bac8f2e64c.tar.gz
ports-bf6b384902cdd2d18d5328c709e2c8bac8f2e64c.zip
Notes
Diffstat (limited to 'www/p5-CGI-Kwiki')
-rw-r--r--www/p5-CGI-Kwiki/Makefile9
-rw-r--r--www/p5-CGI-Kwiki/files/p5005-patch-CGI-Kwiki-Template.pm12
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?}