Hash::Merge::Simple will recursively merge two or more hashes and return the result as a new hash reference. The merge function will descend and merge hashes that exist under the same node in both the left and right hash, but doesn't attempt to combine arrays, objects, scalars, or anything else. The rightmost hash also takes precedence, replacing whatever was in the left hash if a conflict occurs. This code was pretty much taken straight from Catalyst::Utils, and modified to handle more than 2 hashes at the same time.
27 lines
599 B
Makefile
27 lines
599 B
Makefile
# New ports collection makefile for: devel/p5-Hash-Merge-Simple
|
|
# Date created: 29 Mar 2009
|
|
# Whom: Lars Balker Rasmussen <lbr@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= Hash-Merge-Simple
|
|
PORTVERSION= 0.04
|
|
CATEGORIES= devel perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= lbr@FreeBSD.org
|
|
COMMENT= Recursively merge two or more hashes, simply
|
|
|
|
RUN_DEPENDS= p5-Clone>=0:${PORTSDIR}/devel/p5-Clone
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
PERL_CONFIGURE= 5.8.1+
|
|
|
|
MAN3= Hash::Merge::Simple.3
|
|
|
|
post-extract:
|
|
@${PERL} -i.bak -ne 'print unless m,^Test::,' ${WRKSRC}/Makefile.PL
|
|
|
|
.include <bsd.port.mk>
|