From 5713a5dbc880ff2df168e11e5d08a4d34c11a152 Mon Sep 17 00:00:00 2001 From: sunpoet Date: Tue, 15 Nov 2011 15:48:53 +0000 Subject: - Update to 0.06 - Add OPTIONS - Use bsd.port.options.mk Changes: http://search.cpan.org/dist/Data-Random/Changes Feature safe: yes --- devel/p5-Data-Random/Makefile | 26 +++++++++++++++++--------- devel/p5-Data-Random/distinfo | 4 ++-- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/devel/p5-Data-Random/Makefile b/devel/p5-Data-Random/Makefile index a1e765e82710..85f75452faad 100644 --- a/devel/p5-Data-Random/Makefile +++ b/devel/p5-Data-Random/Makefile @@ -1,10 +1,12 @@ # New Ports Collection Makefile for: p5-Data-Random # Date created: 2004-07-07 # Whom: Anton Berezin +# # $FreeBSD$ +# PORTNAME= Data-Random -PORTVERSION= 0.05 +PORTVERSION= 0.06 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -12,23 +14,29 @@ PKGNAMEPREFIX= p5- MAINTAINER= perl@FreeBSD.org COMMENT= Perl module for generating random data +OPTIONS= DATE_CALC "Support for rand_date()" on \ + GD "Support for rand_image()" off + PERL_CONFIGURE= yes -.include +MAN3= Data::Random.3 Data::Random::WordList.3 + +.include -# define WITHOUT_DATE_CALC to disable support for rand_date() .if !defined(WITHOUT_DATE_CALC) -EXTRA_DEPENDS+= ${SITE_PERL}/Date/Calc.pm:${PORTSDIR}/devel/p5-Date-Calc +BUILD_DEPENDS+= p5-Date-Calc>=0:${PORTSDIR}/devel/p5-Date-Calc +RUN_DEPENDS+= p5-Date-Calc>=0:${PORTSDIR}/devel/p5-Date-Calc .endif -# define WITH_GD to enable support for rand_image() .if defined(WITH_GD) -EXTRA_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/GD.pm:${PORTSDIR}/graphics/p5-GD +BUILD_DEPENDS+= p5-GD>=0:${PORTSDIR}/graphics/p5-GD +RUN_DEPENDS+= p5-GD>=0:${PORTSDIR}/graphics/p5-GD .endif -BUILD_DEPENDS+= ${EXTRA_DEPENDS} -RUN_DEPENDS+= ${EXTRA_DEPENDS} +.include -MAN3= Data::Random.3 Data::Random::WordList.3 +.if ${PERL_LEVEL} < 501001 +TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple +.endif .include diff --git a/devel/p5-Data-Random/distinfo b/devel/p5-Data-Random/distinfo index e83537fc86a0..ae407a618065 100644 --- a/devel/p5-Data-Random/distinfo +++ b/devel/p5-Data-Random/distinfo @@ -1,2 +1,2 @@ -SHA256 (Data-Random-0.05.tar.gz) = 1def0ac0147009d3ff07140a7cd6fb0672469af118b8eda530dcd15f21747362 -SIZE (Data-Random-0.05.tar.gz) = 147055 +SHA256 (Data-Random-0.06.tar.gz) = c9def0badf01dc2d182f44dea5c950baa7657e351faa954eb1142cd1e69b7c5f +SIZE (Data-Random-0.06.tar.gz) = 165081 -- cgit