svn commit: r311397 - head/devel/p5-Config-Any
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Fri Feb 1 21:00:59 UTC 2013
Author: sunpoet
Date: Fri Feb 1 21:00:58 2013
New Revision: 311397
URL: http://svnweb.freebsd.org/changeset/ports/311397
Log:
- Fix *_DEPENDS:
- Add missing dependencies
- version is already in core since Perl 5.9.0
- Add OPTIONS: INI, JSON, XML and YAML
- Bump PORTREVISION for dependency change
- Cleanup Makefile header
- Reformat pkg-descr
Modified:
head/devel/p5-Config-Any/Makefile (contents, props changed)
head/devel/p5-Config-Any/pkg-descr (contents, props changed)
Modified: head/devel/p5-Config-Any/Makefile
==============================================================================
--- head/devel/p5-Config-Any/Makefile Fri Feb 1 20:58:58 2013 (r311396)
+++ head/devel/p5-Config-Any/Makefile Fri Feb 1 21:00:58 2013 (r311397)
@@ -1,12 +1,9 @@
-# New ports collection makefile for: devel/p5-Config-Any
-# Date created: Sep 3, 2006
-# Whom: Lars Balker Rasmussen <lbr at FreeBSD.org>
-#
+# Created by: Lars Balker Rasmussen <lbr at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= Config-Any
PORTVERSION= 0.23
+PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -14,18 +11,43 @@ PKGNAMEPREFIX= p5-
MAINTAINER= perl at FreeBSD.org
COMMENT= Load class configuration data from a number of file formats
-RUN_DEPENDS= p5-version>=0:${PORTSDIR}/devel/p5-version
-BUILD_DEPENDS:= ${RUN_DEPENDS}
+BUILD_DEPENDS= p5-Config-General>=2.47:${PORTSDIR}/devel/p5-Config-General
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+OPTIONS_DEFINE= INI JSON XML YAML
+OPTIONS_DEFAULT=INI JSON XML YAML
PERL_CONFIGURE= yes
-MAN3= Config::Any.3 \
- Config::Any::Base.3 \
- Config::Any::General.3 \
- Config::Any::INI.3 \
- Config::Any::JSON.3 \
- Config::Any::Perl.3 \
- Config::Any::XML.3 \
- Config::Any::YAML.3
+MAN3= Config::Any.3 \
+ Config::Any::Base.3 \
+ Config::Any::General.3 \
+ Config::Any::INI.3 \
+ Config::Any::JSON.3 \
+ Config::Any::Perl.3 \
+ Config::Any::XML.3 \
+ Config::Any::YAML.3
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MINI}
+BUILD_DEPENDS+= p5-Config-Tiny>=0:${PORTSDIR}/devel/p5-Config-Tiny
+RUN_DEPENDS+= p5-Config-Tiny>=0:${PORTSDIR}/devel/p5-Config-Tiny
+.endif
+
+.if ${PORT_OPTIONS:MJSON}
+BUILD_DEPENDS+= p5-JSON-XS>=0:${PORTSDIR}/converters/p5-JSON-XS
+RUN_DEPENDS+= p5-JSON-XS>=0:${PORTSDIR}/converters/p5-JSON-XS
+.endif
+
+.if ${PORT_OPTIONS:MXML}
+BUILD_DEPENDS+= p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple
+RUN_DEPENDS+= p5-XML-Simple>=0:${PORTSDIR}/textproc/p5-XML-Simple
+.endif
+
+.if ${PORT_OPTIONS:MYAML}
+BUILD_DEPENDS+= p5-YAML-LibYAML>=0:${PORTSDIR}/textproc/p5-YAML-LibYAML
+RUN_DEPENDS+= p5-YAML-LibYAML>=0:${PORTSDIR}/textproc/p5-YAML-LibYAML
+.endif
.include <bsd.port.mk>
Modified: head/devel/p5-Config-Any/pkg-descr
==============================================================================
--- head/devel/p5-Config-Any/pkg-descr Fri Feb 1 20:58:58 2013 (r311396)
+++ head/devel/p5-Config-Any/pkg-descr Fri Feb 1 21:00:58 2013 (r311397)
@@ -1,15 +1,13 @@
-Config::Any provides a facility for Perl applications and libraries to
-load configuration data from multiple different file formats. It sup-
-ports XML, YAML, JSON, Apache-style configuration, Windows INI files,
-and even Perl code.
+Config::Any provides a facility for Perl applications and libraries to load
+configuration data from multiple different file formats. It supports XML, YAML,
+JSON, Apache-style configuration, Windows INI files, and even Perl code.
-The rationale for this module is as follows: Perl programs are deployed
-on many different platforms and integrated with many different systems.
-Systems administrators and end users may prefer different configuration
-formats than the developers. The flexibility inherent in a multiple
-format configuration loader allows different users to make different
-choices, without generating extra work for the developers. As a devel-
-oper you only need to learn a single interface to be able to use the
-power of different configuration formats.
+The rationale for this module is as follows: Perl programs are deployed on many
+different platforms and integrated with many different systems. Systems
+administrators and end users may prefer different configuration formats than the
+developers. The flexibility inherent in a multiple format configuration loader
+allows different users to make different choices, without generating extra work
+for the developers. As a developer you only need to learn a single interface to
+be able to use the power of different configuration formats.
WWW: http://search.cpan.org/dist/Config-Any/
More information about the svn-ports-head
mailing list