blob: 29b71aac0ff6037628de88f9a3ee28cddf4a1a8d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# New ports collection makefile for: p5-CGI-Kwiki
# Date created: 14th October 2003
# Whom: clsung@dragon2.net
#
# $FreeBSD$
#
PORTNAME= CGI-Kwiki
PORTVERSION= 0.18
PORTREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= CGI
PKGNAMEPREFIX= p5-
MAINTAINER= clsung@FreeBSD.org
COMMENT= A Quickie Wiki Package that's not too Tricky
BUILD_DEPENDS= ${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm
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 \
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
EXTRA_PATCHES= ${FILESDIR}/p5005-patch-CGI-Kwiki-Template.pm
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
@${FIND} ${WRKSRC} -name \*.orig | ${XARGS} ${RM}
.endif
.endif
.include <bsd.port.post.mk>
|