1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/www/p5-CGI-Kwiki/Makefile
Marcelo Araujo 4aaab89f57 - Take advantage of CPAN macro from bsd.sites.mk, change ${MASTER_SITE_PERL_CPAN} to CPAN.
PR:		ports/122674
Submitted by:	Philip M. Gollucci <pgollucci@p6m7g8.com>
Reworked by:	araujo (myself)
Approved by:	portmgr (pav)
2008-04-17 14:30:31 +00:00

55 lines
1.9 KiB
Makefile

# 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= CPAN
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
.endif
.include <bsd.port.post.mk>