pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/p5-HTML-Mason Add required dependency on devel/p5-...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e947d4c8889b
branches: trunk
changeset: 487044:e947d4c8889b
user: seb <seb%pkgsrc.org@localhost>
date: Fri Jan 07 22:29:59 2005 +0000
description:
Add required dependency on devel/p5-Cache-Cache.
Drop apparently unneeded dependency on databases/p5-MLDBM.
Dependency on www/p5-libapreq is only required if HTML-Mason is
intended to be used with mod_perl and apache: add 'modperl' as a
bsd.options.mk framework option and include dependency on www/p5-libapreq
as needed. Also support apache13 or apache2.
The 'modperl' option is the default.
XXX ap2-perl install Apache::Filter perl module version 0.01 and
this module wants at least version 1.021. So I do not know if the
apache2/ap2-perl setup is really supported.
Bump PKGREVISION.
diffstat:
www/p5-HTML-Mason/Makefile | 28 ++++++++++++++++++++++++----
1 files changed, 24 insertions(+), 4 deletions(-)
diffs (52 lines):
diff -r 19d6ba518a86 -r e947d4c8889b www/p5-HTML-Mason/Makefile
--- a/www/p5-HTML-Mason/Makefile Fri Jan 07 18:55:16 2005 +0000
+++ b/www/p5-HTML-Mason/Makefile Fri Jan 07 22:29:59 2005 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.13 2004/12/20 11:31:13 grant Exp $
+# $NetBSD: Makefile,v 1.14 2005/01/07 22:29:59 seb Exp $
DISTNAME= HTML-Mason-1.28
PKGNAME= p5-${DISTNAME}
+PKGREVISION= 2
SVR4_PKGNAME= p5hma
-PKGREVISION= 1
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=HTML/}
@@ -11,14 +11,34 @@
HOMEPAGE= http://www.masonhq.com/
COMMENT= Perl-based web site development and delivery system
-DEPENDS+= p5-MLDBM>=2.0:../../databases/p5-MLDBM
+DEPENDS+= p5-Cache-Cache>=1.0:../../devel/p5-Cache-Cache
DEPENDS+= p5-Params-Validate>=0.04:../../devel/p5-Params-Validate
DEPENDS+= p5-Exception-Class>=1.14:../../devel/p5-Exception-Class
DEPENDS+= p5-Class-Container>=0.10:../../devel/p5-Class-Container
-DEPENDS+= p5-libapreq>=0.32:../../www/p5-libapreq
USE_BUILDLINK3= YES
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/HTML/Mason/.packlist
+# In case apache.mk is included below which will result in USE_PERL5
+# being set to 'build' explicitly set it to 'run' here.
+USE_PERL5= run
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.p5-HTML-Mason
+PKG_SUPPORTED_OPTIONS= modperl
+PKG_DEFAULT_OPTIONS+= modperl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmodperl)
+. include "../../mk/apache.mk"
+. if ${PKG_APACHE} == "apache13"
+DEPENDS+= p5-libapreq>=0.32:../../www/p5-libapreq
+.include "../../www/ap-perl/buildlink3.mk"
+. elif ${PKG_APACHE} == "apache2"
+DEPENDS+= p5-libapreq2-[0-9]*:../../www/p5-libapreq2
+.include "../../www/ap2-perl/buildlink3.mk"
+. endif
+.endif
+
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index