# New ports collection makefile for: p5-Maypole # Date created: Apr 2 2004 # Whom: Lars Thegler # # $FreeBSD$ PORTNAME= Maypole PORTVERSION= 1.7 PORTREVISION= 1 CATEGORIES= www perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= ../by-authors/id/S/SI/SIMON/ PKGNAMEPREFIX= p5- MAINTAINER= lth@FreeBSD.org COMMENT= MVC web application framework BUILD_DEPENDS= ${SITE_PERL}/Class/DBI/Loader.pm:${PORTSDIR}/databases/p5-Class-DBI-Loader \ ${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 \ ${SITE_PERL}/UNIVERSAL/require.pm:${PORTSDIR}/devel/p5-UNIVERSAL-exports \ ${SITE_PERL}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq \ ${SITE_PERL}/Template/Plugin/Class.pm:${PORTSDIR}/www/p5-Template-Plugin-Class PKGMESSAGE= ${WRKDIR}/pkg-message PKGMSG_SUB= DOCSDIR=${DOCSDIR} \ DATADIR=${DATADIR} \ EXAMPLESDIR=${EXAMPLESDIR} PERL_CONFIGURE= yes MAN3= Apache::MVC.3 \ CGI::Maypole.3 \ Maypole.3 \ Maypole::CLI.3 \ Maypole::Model::Base.3 \ Maypole::Model::CDBI.3 \ Maypole::Model::CDBI::Plain.3 \ Maypole::View::Mason.3 \ Maypole::View::TT.3 \ Maypole::Workflow.3 DOC_FILES= About.pod \ Beer.pod \ BuySpy.pod \ Flox.pod \ Model.pod \ Overview.pod \ Request.pod \ StandardTemplates.pod \ Templates.pod \ View.pod \ makedoc.pl EXAMPLE_FILES= BeerDB.pm TEMPLATE_FILES= beerdb.css \ beer/addnew \ custom/frontpage \ custom/header \ factory/addnew \ factory/edit \ factory/footer \ factory/header \ factory/list \ factory/macros \ factory/navbar \ factory/pager \ factory/search_form \ factory/view pre-patch: @ ${SED} ${PKGMSG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${PKGDIR}/pkg-message > ${PKGMESSAGE} post-install: .if !defined(NOPORTDOCS) @ ${MKDIR} ${DOCSDIR} .for FILE in ${DOC_FILES} @ ${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR} .endfor @ ${MKDIR} ${EXAMPLESDIR} .for FILE in ${EXAMPLE_FILES} @ ${INSTALL_DATA} ${WRKSRC}/ex/${FILE} ${EXAMPLESDIR} .endfor .endif @ ${MKDIR} ${DATADIR}/templates/beer @ ${MKDIR} ${DATADIR}/templates/custom @ ${MKDIR} ${DATADIR}/templates/factory .for FILE in ${TEMPLATE_FILES} @ ${INSTALL_DATA} ${WRKSRC}/templates/${FILE} ${DATADIR}/templates/${FILE} .endfor @ ${CAT} ${PKGMESSAGE} .include .if ${PERL_LEVEL} < 500600 IGNORE= "Perl 5.6 or newer required. Install lang/perl5 or lang/perl5.8 and try again." .endif .include