diff options
author | abs <abs@pkgsrc.org> | 2008-06-23 01:51:57 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2008-06-23 01:51:57 +0000 |
commit | 5541b7f55657b96bdf0239385b65d7edb382c60d (patch) | |
tree | fbb30665e373b744c693d717c630be27c11b22a6 /finance | |
parent | 07a2e76cf16f76575daa5df5b0506026419a9e19 (diff) | |
download | pkgsrc-5541b7f55657b96bdf0239385b65d7edb382c60d.tar.gz |
Import p5-Data-Currency-0.04002
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.
Diffstat (limited to 'finance')
-rw-r--r-- | finance/p5-Data-Currency/DESCR | 11 | ||||
-rw-r--r-- | finance/p5-Data-Currency/Makefile | 25 | ||||
-rw-r--r-- | finance/p5-Data-Currency/distinfo | 5 |
3 files changed, 41 insertions, 0 deletions
diff --git a/finance/p5-Data-Currency/DESCR b/finance/p5-Data-Currency/DESCR new file mode 100644 index 00000000000..a748d41408a --- /dev/null +++ b/finance/p5-Data-Currency/DESCR @@ -0,0 +1,11 @@ +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. diff --git a/finance/p5-Data-Currency/Makefile b/finance/p5-Data-Currency/Makefile new file mode 100644 index 00000000000..0de80667f5d --- /dev/null +++ b/finance/p5-Data-Currency/Makefile @@ -0,0 +1,25 @@ +# $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" diff --git a/finance/p5-Data-Currency/distinfo b/finance/p5-Data-Currency/distinfo new file mode 100644 index 00000000000..41b145f316f --- /dev/null +++ b/finance/p5-Data-Currency/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/06/23 01:51:57 abs Exp $ + +SHA1 (Data-Currency-0.04002.tar.gz) = e41ad3a8f2a9242c8ed2960ae6d7931c8f8e8409 +RMD160 (Data-Currency-0.04002.tar.gz) = 770c0462108338124c27e16e3cc35eca7f3501e3 +Size (Data-Currency-0.04002.tar.gz) = 23723 bytes |