2004-04-08 18:27:19 +00:00
|
|
|
# New ports collection makefile for: p5-Maypole
|
|
|
|
# Date created: Apr 2 2004
|
|
|
|
# Whom: Lars Thegler <lars@thegler.dk>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= Maypole
|
2005-07-22 15:39:19 +00:00
|
|
|
PORTVERSION= 2.10
|
2004-04-08 18:27:19 +00:00
|
|
|
CATEGORIES= www perl5
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
2005-07-22 15:39:19 +00:00
|
|
|
MASTER_SITE_SUBDIR= ../by-authors/id/T/TE/TEEJAY
|
2004-04-08 18:27:19 +00:00
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
|
2004-06-01 12:32:33 +00:00
|
|
|
MAINTAINER= lth@FreeBSD.org
|
2004-04-08 18:27:19 +00:00
|
|
|
COMMENT= MVC web application framework
|
|
|
|
|
2006-05-28 11:44:50 +00:00
|
|
|
RUN_DEPENDS= ${SITE_PERL}/Class/DBI/Loader.pm:${PORTSDIR}/databases/p5-Class-DBI-Loader \
|
2004-04-08 18:27:19 +00:00
|
|
|
${SITE_PERL}/Class/DBI/AbstractSearch.pm:${PORTSDIR}/databases/p5-Class-DBI-AbstractSearch \
|
|
|
|
${SITE_PERL}/Class/DBI/Pager.pm:${PORTSDIR}/databases/p5-Class-DBI-Pager \
|
|
|
|
${SITE_PERL}/Class/DBI/Plugin/RetrieveAll.pm:${PORTSDIR}/databases/p5-Class-DBI-Plugin-RetrieveAll \
|
|
|
|
${SITE_PERL}/Class/DBI/AsForm.pm:${PORTSDIR}/databases/p5-Class-DBI-AsForm \
|
|
|
|
${SITE_PERL}/Class/DBI/FromCGI.pm:${PORTSDIR}/databases/p5-Class-DBI-FromCGI \
|
|
|
|
${SITE_PERL}/Class/DBI/Loader/Relationship.pm:${PORTSDIR}/databases/p5-Class-DBI-Loader-Relationship \
|
|
|
|
${SITE_PERL}/CGI/Untaint.pm:${PORTSDIR}/www/p5-CGI-Untaint \
|
|
|
|
${SITE_PERL}/UNIVERSAL/moniker.pm:${PORTSDIR}/devel/p5-UNIVERSAL-moniker \
|
2006-05-28 11:44:50 +00:00
|
|
|
${SITE_PERL}/UNIVERSAL/require.pm:${PORTSDIR}/devel/p5-UNIVERSAL-require \
|
2004-11-21 10:40:43 +00:00
|
|
|
${SITE_PERL}/Template/Plugin/Class.pm:${PORTSDIR}/www/p5-Template-Plugin-Class \
|
|
|
|
${SITE_PERL}/Class/Accessor/Fast.pm:${PORTSDIR}/devel/p5-Class-Accessor \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit \
|
|
|
|
${SITE_PERL}/Lingua/EN/Inflect/Number.pm:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect-Number \
|
|
|
|
${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI \
|
|
|
|
${SITE_PERL}/Class/Data/Inheritable.pm:${PORTSDIR}/devel/p5-Class-Data-Inheritable \
|
2005-01-08 19:10:49 +00:00
|
|
|
${SITE_PERL}/CGI/Simple.pm:${PORTSDIR}/www/p5-CGI-Simple \
|
2005-07-22 15:39:19 +00:00
|
|
|
${SITE_PERL}/HTTP/Headers.pm:${PORTSDIR}/www/p5-libwww \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
|
2006-05-28 11:44:50 +00:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/Test/MockModule.pm:${PORTSDIR}/devel/p5-Test-MockModule
|
2004-11-21 10:40:43 +00:00
|
|
|
|
|
|
|
OPTIONS= MODPERL "mod_perl support" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_MODPERL)
|
|
|
|
.if defined(WITH_APACHE2)
|
2005-07-22 15:39:19 +00:00
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Apache2/Request.pm:${PORTSDIR}/www/p5-libapreq2
|
2004-11-21 10:40:43 +00:00
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq
|
|
|
|
.endif
|
|
|
|
.endif
|
2004-04-08 18:27:19 +00:00
|
|
|
|
2004-05-02 00:03:02 +00:00
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
PKGMSG_SUB= DOCSDIR=${DOCSDIR} \
|
|
|
|
DATADIR=${DATADIR} \
|
|
|
|
EXAMPLESDIR=${EXAMPLESDIR}
|
|
|
|
|
2004-04-08 18:27:19 +00:00
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
|
|
|
|
MAN3= Apache::MVC.3 \
|
2004-05-02 00:03:02 +00:00
|
|
|
CGI::Maypole.3 \
|
2004-04-08 18:27:19 +00:00
|
|
|
Maypole.3 \
|
2004-11-21 10:40:43 +00:00
|
|
|
Maypole::Application.3 \
|
2004-05-02 00:03:02 +00:00
|
|
|
Maypole::CLI.3 \
|
2004-11-21 10:40:43 +00:00
|
|
|
Maypole::Config.3 \
|
|
|
|
Maypole::Constants.3 \
|
2005-01-08 19:10:49 +00:00
|
|
|
Maypole::Headers.3 \
|
2004-11-21 10:40:43 +00:00
|
|
|
Maypole::Manual.3 \
|
|
|
|
Maypole::Manual::About.3 \
|
|
|
|
Maypole::Manual::Beer.3 \
|
|
|
|
Maypole::Manual::BuySpy.3 \
|
|
|
|
Maypole::Manual::Flox.3 \
|
|
|
|
Maypole::Manual::Model.3 \
|
2005-07-22 15:39:19 +00:00
|
|
|
Maypole::Manual::Plugins.3 \
|
2004-11-21 10:40:43 +00:00
|
|
|
Maypole::Manual::Request.3 \
|
|
|
|
Maypole::Manual::StandardTemplates.3 \
|
|
|
|
Maypole::Manual::View.3 \
|
|
|
|
Maypole::Manual::Workflow.3 \
|
2004-04-08 18:27:19 +00:00
|
|
|
Maypole::Model::Base.3 \
|
|
|
|
Maypole::Model::CDBI.3 \
|
2004-07-17 21:01:13 +00:00
|
|
|
Maypole::Model::CDBI::Plain.3 \
|
2005-07-22 15:39:19 +00:00
|
|
|
Maypole::Session.3 \
|
2004-11-21 10:40:43 +00:00
|
|
|
Maypole::View::Base.3 \
|
|
|
|
Maypole::View::TT.3
|
2004-04-08 18:27:19 +00:00
|
|
|
|
2004-11-21 10:40:43 +00:00
|
|
|
DOC_FILES= ../Manual.pod \
|
|
|
|
About.pod \
|
2004-05-02 00:03:02 +00:00
|
|
|
Beer.pod \
|
|
|
|
BuySpy.pod \
|
|
|
|
Flox.pod \
|
|
|
|
Model.pod \
|
|
|
|
Request.pod \
|
|
|
|
StandardTemplates.pod \
|
|
|
|
View.pod \
|
2004-11-21 10:40:43 +00:00
|
|
|
Workflow.pod
|
2004-08-01 17:41:02 +00:00
|
|
|
EXAMPLE_FILES= BeerDB.pm
|
2004-11-21 10:40:43 +00:00
|
|
|
TEMPLATE_FILES= maypole.css \
|
2004-07-17 21:01:13 +00:00
|
|
|
beer/addnew \
|
|
|
|
factory/addnew \
|
|
|
|
factory/edit \
|
|
|
|
factory/footer \
|
2004-11-21 10:40:43 +00:00
|
|
|
factory/frontpage \
|
2004-07-17 21:01:13 +00:00
|
|
|
factory/header \
|
|
|
|
factory/list \
|
|
|
|
factory/macros \
|
2004-11-21 10:40:43 +00:00
|
|
|
factory/maypole \
|
2004-07-17 21:01:13 +00:00
|
|
|
factory/navbar \
|
|
|
|
factory/pager \
|
|
|
|
factory/search_form \
|
2004-11-21 10:40:43 +00:00
|
|
|
factory/title \
|
2004-07-17 21:01:13 +00:00
|
|
|
factory/view
|
2004-05-02 00:03:02 +00:00
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@ ${SED} ${PKGMSG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
${PKGDIR}/pkg-message > ${PKGMESSAGE}
|
2004-04-08 18:27:19 +00:00
|
|
|
|
2004-05-02 00:03:02 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
2004-08-01 17:41:02 +00:00
|
|
|
.for FILE in ${DOC_FILES}
|
2004-11-21 10:40:43 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/lib/Maypole/Manual/${FILE} ${DOCSDIR}
|
2004-05-02 00:03:02 +00:00
|
|
|
.endfor
|
|
|
|
@ ${MKDIR} ${EXAMPLESDIR}
|
2004-08-01 17:41:02 +00:00
|
|
|
.for FILE in ${EXAMPLE_FILES}
|
2004-05-02 00:03:02 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/ex/${FILE} ${EXAMPLESDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@ ${MKDIR} ${DATADIR}/templates/beer
|
|
|
|
@ ${MKDIR} ${DATADIR}/templates/factory
|
2004-08-01 17:41:02 +00:00
|
|
|
.for FILE in ${TEMPLATE_FILES}
|
2004-07-17 21:01:13 +00:00
|
|
|
@ ${INSTALL_DATA} ${WRKSRC}/templates/${FILE} ${DATADIR}/templates/${FILE}
|
2004-05-02 00:03:02 +00:00
|
|
|
.endfor
|
|
|
|
@ ${CAT} ${PKGMESSAGE}
|
|
|
|
|
2004-04-08 18:27:19 +00:00
|
|
|
.if ${PERL_LEVEL} < 500600
|
2006-05-28 11:44:50 +00:00
|
|
|
IGNORE= requires perl 5.6 or above. Install lang/perl5 or lang/perl5.8 and try again
|
2004-04-08 18:27:19 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|