From 99fb20d762b30b3cffe1f03173c2fea0c7ed4092 Mon Sep 17 00:00:00 2001 From: miwi Date: Sun, 5 Aug 2007 21:03:15 +0000 Subject: Classes that represent and manipulate fractions (x = a/b). The Math_FractionOp static class contains definitions for: - basic arithmetic operations - comparing fractions - greatest common divisor (gcd) and least common multiple (lcm) of two integers - simplifying (reducing) and getting the reciprocal of a fraction - converting a float to fraction. WWW: http://pear.php.net/package/Math_Fraction/ --- devel/pear-Math_Fraction/Makefile | 26 ++++++++++++++++++++++++++ devel/pear-Math_Fraction/distinfo | 3 +++ devel/pear-Math_Fraction/pkg-descr | 11 +++++++++++ 3 files changed, 40 insertions(+) create mode 100644 devel/pear-Math_Fraction/Makefile create mode 100644 devel/pear-Math_Fraction/distinfo create mode 100644 devel/pear-Math_Fraction/pkg-descr (limited to 'devel/pear-Math_Fraction') diff --git a/devel/pear-Math_Fraction/Makefile b/devel/pear-Math_Fraction/Makefile new file mode 100644 index 000000000000..05671e408763 --- /dev/null +++ b/devel/pear-Math_Fraction/Makefile @@ -0,0 +1,26 @@ +# Ports collection makefile for: pear-Math_Fraction +# Date created: 05 August 2007 +# Whom: Martin Wilke +# +# $FreeBSD$ +# + +PORTNAME= Math_Fraction +PORTVERSION= 0.4.1 +CATEGORIES= devel www pear + +MAINTAINER= miwi@FreeBSD.org +COMMENT= Classes that represent and manipulate fractions. + +BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear +RUN_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear + +CATEGORY= Math +FILES= Fraction.php FractionOp.php + +EXAMPLES= using_fractionop.php +_EXAMPLESDIR= docs/examples + +.include +.include "${PORTSDIR}/devel/pear/bsd.pear.mk" +.include diff --git a/devel/pear-Math_Fraction/distinfo b/devel/pear-Math_Fraction/distinfo new file mode 100644 index 000000000000..ad8334b049d0 --- /dev/null +++ b/devel/pear-Math_Fraction/distinfo @@ -0,0 +1,3 @@ +MD5 (PEAR/Math_Fraction-0.4.1.tgz) = 351f230b32ec265cb48ff08165bf9652 +SHA256 (PEAR/Math_Fraction-0.4.1.tgz) = 00109cc650596dae902a62cc5d018e1ddb4b6458d803a4271308566dff87d855 +SIZE (PEAR/Math_Fraction-0.4.1.tgz) = 4171 diff --git a/devel/pear-Math_Fraction/pkg-descr b/devel/pear-Math_Fraction/pkg-descr new file mode 100644 index 000000000000..017511abc032 --- /dev/null +++ b/devel/pear-Math_Fraction/pkg-descr @@ -0,0 +1,11 @@ +Classes that represent and manipulate fractions (x = a/b). + +The Math_FractionOp static class contains definitions for: +- basic arithmetic operations +- comparing fractions +- greatest common divisor (gcd) and least common multiple (lcm) + of two integers +- simplifying (reducing) and getting the reciprocal of a fraction +- converting a float to fraction. + +WWW: http://pear.php.net/package/Math_Fraction/ -- cgit