aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-05-18 03:08:10 +0800
committerpav <pav@FreeBSD.org>2005-05-18 03:08:10 +0800
commitf9b2a82f42741e649b7eec1a056f753260eaf529 (patch)
tree059cd084beaad6c64a52e396b52912ada71a1733 /math
parent275efb664f6f6e9ef43c85427d00300313df7330 (diff)
downloadfreebsd-ports-gnome-f9b2a82f42741e649b7eec1a056f753260eaf529.tar.gz
freebsd-ports-gnome-f9b2a82f42741e649b7eec1a056f753260eaf529.tar.zst
freebsd-ports-gnome-f9b2a82f42741e649b7eec1a056f753260eaf529.zip
New port: math/pecl-big_int
Functions for calculations with arbitrary length integers and bitsets Functions from this package are useful for number theory applications. For example, in two-keys cryptography. PR: ports/81115 Submitted by: Antonio Carlos Venancio Junior <antonio@php.net>
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/pecl-big_int/Makefile40
-rw-r--r--math/pecl-big_int/distinfo2
-rw-r--r--math/pecl-big_int/files/patch-libbig_int-include-big_int.h14
-rw-r--r--math/pecl-big_int/pkg-descr16
-rw-r--r--math/pecl-big_int/pkg-plist12
6 files changed, 85 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index da1ce1e131f1..8fec97e87584 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -183,6 +183,7 @@
SUBDIR += pari-devel
SUBDIR += parmetis
SUBDIR += pear-Structures_Graph
+ SUBDIR += pecl-big_int
SUBDIR += petsc
SUBDIR += petsc-mpich
SUBDIR += pgcalc
diff --git a/math/pecl-big_int/Makefile b/math/pecl-big_int/Makefile
new file mode 100644
index 000000000000..37d22047518d
--- /dev/null
+++ b/math/pecl-big_int/Makefile
@@ -0,0 +1,40 @@
+# Ports collection makefile for: pecl-big_int
+# Date created: 16 May 2005
+# Whom: Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= big_int
+PORTVERSION= 1.0.5
+CATEGORIES= math devel pear
+MASTER_SITES= http://pecl.php.net/get/
+PKGNAMEPREFIX= pecl-
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= PECL
+
+MAINTAINER= antonio@php.net
+COMMENT= Functions for calculations with arbitrary length integers and bitsets
+
+USE_PHP= yes
+USE_PHPEXT= yes
+
+DOCS= CREDITS INSTALL LICENSE README docs/index.html libbig_int/CREDITS \
+ libbig_int/LICENSE
+EXAMPLES= bitset.php example.php rand.php RSA.php std_header.php
+
+CONFIGURE_ARGS= --enable-big-int=shared
+
+.if !defined(NOPORTDOCS)
+post-install:
+ ${MKDIR} ${DOCSDIR}
+ ${MKDIR} ${EXAMPLESDIR}
+. for doc in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+. endfor
+. for test in ${EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/tests/${test} ${EXAMPLESDIR}
+. endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/math/pecl-big_int/distinfo b/math/pecl-big_int/distinfo
new file mode 100644
index 000000000000..a18d399f6597
--- /dev/null
+++ b/math/pecl-big_int/distinfo
@@ -0,0 +1,2 @@
+MD5 (PECL/big_int-1.0.5.tgz) = c27f62e767950c33f109b3a841a60f42
+SIZE (PECL/big_int-1.0.5.tgz) = 45853
diff --git a/math/pecl-big_int/files/patch-libbig_int-include-big_int.h b/math/pecl-big_int/files/patch-libbig_int-include-big_int.h
new file mode 100644
index 000000000000..e1e9be1338de
--- /dev/null
+++ b/math/pecl-big_int/files/patch-libbig_int-include-big_int.h
@@ -0,0 +1,14 @@
+--- libbig_int/include/big_int.h.orig Wed May 11 16:11:09 2005
++++ libbig_int/include/big_int.h Tue May 17 21:01:26 2005
+@@ -77,9 +77,9 @@
+ #endif /* end of BIG_INT_DIGIT_SIZE */
+ #else
+ /*
+- for ANSI C99 compliant comilers, which have stdint.h header
++ for ANSI C99 compliant compilers, which have inttypes.h header
+ */
+-#include <stdint.h>
++#include <inttypes.h>
+ #if (BIG_INT_DIGIT_SIZE == 32)
+ typedef uint32_t big_int_word;
+ typedef uint64_t big_int_dword;
diff --git a/math/pecl-big_int/pkg-descr b/math/pecl-big_int/pkg-descr
new file mode 100644
index 000000000000..2adc2a8b43d1
--- /dev/null
+++ b/math/pecl-big_int/pkg-descr
@@ -0,0 +1,16 @@
+Functions from this package are useful for number theory applications.
+For example, in two-keys cryptography.
+
+See /tests/RSA.php in the package for example of simple implementation of
+RSA-like cryptoalgorithm. See http://chat.finalcombat.com/vayala/big_int/ page
+for more complex implementation of RSA-like crypto, which supports key
+generating, encrypting/decrypting, signing and validating of sign.
+
+The package has many bitset functions, which allow to work with arbitrary
+length bitsets.
+
+This package is much faster than bundled into PHP BCMath and consists almost
+all functions, which are implemented in PHP GMP extension, but it needn't any
+external libraries.
+
+WWW: http://pecl.php.net/package/big_int/
diff --git a/math/pecl-big_int/pkg-plist b/math/pecl-big_int/pkg-plist
new file mode 100644
index 000000000000..982efe9af06e
--- /dev/null
+++ b/math/pecl-big_int/pkg-plist
@@ -0,0 +1,12 @@
+%%PORTDOCS%%%%DOCSDIR%%/CREDITS
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%EXAMPLESDIR%%/RSA.php
+%%PORTDOCS%%%%EXAMPLESDIR%%/bitset.php
+%%PORTDOCS%%%%EXAMPLESDIR%%/example.php
+%%PORTDOCS%%%%EXAMPLESDIR%%/rand.php
+%%PORTDOCS%%%%EXAMPLESDIR%%/std_header.php
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%