5541b7f556
The Data::Currency module provides basic currency formatting and conversion: my $price = 1.23; my $currency = Data::Currency->new($price); print $currency->convert('CAD')->as_string; Each Data::Currency object will stringify to the original value except in string context, where it stringifies to the format specified in format.
25 lines
1,001 B
Makefile
25 lines
1,001 B
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2008/06/23 01:51:57 abs Exp $
|
|
|
|
DISTNAME= Data-Currency-0.04002
|
|
PKGNAME= p5-${DISTNAME}
|
|
CATEGORIES= finance perl5
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/C/CL/CLACO/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://search.cpan.org/perldoc?Data::Currency
|
|
COMMENT= Container class for currency conversion/formatting
|
|
|
|
DEPENDS+= p5-Class-Accessor-Grouped>=0.03:../../devel/p5-Class-Accessor-Grouped
|
|
DEPENDS+= p5-Class-Inspector>=0:../../devel/p5-Class-Inspector
|
|
DEPENDS+= p5-Finance-Currency-Convert-WebserviceX>=0.03:../../finance/p5-Finance-Currency-Convert-WebserviceX
|
|
DEPENDS+= p5-Locale-Codes>=2.07:../../misc/p5-Locale-Codes
|
|
DEPENDS+= p5-Locale-Currency-Format>=1.22:../../finance/p5-Locale-Currency-Format
|
|
DEPENDS+= p5-Scalar-List-Utils>=0:../../devel/p5-Scalar-List-Utils
|
|
|
|
USE_LANGUAGES= # empty
|
|
PERL5_PACKLIST= auto/Data/Currency/.packlist
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
.include "../../lang/perl5/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|