diff options
Diffstat (limited to 'www/p5-CGI-Kwiki/Makefile')
-rw-r--r-- | www/p5-CGI-Kwiki/Makefile | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/www/p5-CGI-Kwiki/Makefile b/www/p5-CGI-Kwiki/Makefile new file mode 100644 index 000000000000..1e8e84ebb762 --- /dev/null +++ b/www/p5-CGI-Kwiki/Makefile @@ -0,0 +1,60 @@ +# New ports collection makefile for: p5-CGI-Kwiki +# Date created: 14th October 2003 +# Whom: clsung@dragon2.net +# +# $FreeBSD$ +# + +PORTNAME= CGI-Kwiki +PORTVERSION= 0.18 +CATEGORIES= www perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= CGI +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} + +MAN1= kwiki-install.1 +MAN3= CGI::Kwiki.3 \ + CGI::Kwiki::Blog.3 CGI::Kwiki::CGI.3 CGI::Kwiki::Changes.3 \ + CGI::Kwiki::Config.3 CGI::Kwiki::Config_yaml.3 \ + CGI::Kwiki::Cookie.3 CGI::Kwiki::Database.3 \ + CGI::Kwiki::Display.3 CGI::Kwiki::Driver.3 CGI::Kwiki::Edit.3 \ + CGI::Kwiki::Formatter.3 CGI::Kwiki::Import.3 \ + CGI::Kwiki::Javascript.3 CGI::Kwiki::Metadata.3 \ + CGI::Kwiki::New.3 CGI::Kwiki::Pages.3 \ + CGI::Kwiki::Pages::zh_cn.3 CGI::Kwiki::Pages::zh_tw.3 \ + CGI::Kwiki::Plugin.3 CGI::Kwiki::Plugin::Diff.3 \ + CGI::Kwiki::Prefs.3 CGI::Kwiki::Privacy.3 \ + CGI::Kwiki::Scripts.3 CGI::Kwiki::Search.3 \ + CGI::Kwiki::Slides.3 CGI::Kwiki::Style.3 \ + CGI::Kwiki::Template.3 + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500800 +# Damn ExtUtils::MM_Unix, and Damn Module::Install !!! +post-configure: + @${PERL} -pi -e 'if (/MAN3PODS/) { $$_ .= "\tlib/CGI/Kwiki/Config.pm \\\n\tlib/CGI/Kwiki/Config_yaml.pm \\\n" };' \ + -e 'if (/manifypods :/) {$$_ .= "\tlib/CGI/Kwiki/Config.pm \\\n\tlib/CGI/Kwiki/Config_yaml.pm \\\n" };' \ + -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 +post-patch: + ${PERL} -pi -e '$$_ = "" if /warnings/;' \ + -e 's/\$$\w+(->\w+)?->\$$\w+\b(?!\()/$$&()/g;' \ + ${WRKSRC}/lib/CGI/Kwiki/New.pm \ + ${WRKSRC}/lib/CGI/Kwiki/Prefs.pm +.endif +.endif + +.include <bsd.port.post.mk> |