Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

3
math/fgmp/DESCR Normal file
View File

@@ -0,0 +1,3 @@
FGMP is Mark Henderson's public domain implementation of a subset of
the GNU gmp library with the same API. The fgmp library also includes
a couple of extra routines.

30
math/fgmp/Makefile Normal file
View File

@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.6 2012/09/11 23:04:19 asau Exp $
DISTNAME= fgmp-1.0b5-src-10.10
PKGNAME= fgmp-1.0b5
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_BACKUP}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://hpux.cs.utah.edu/hppd/hpux/Maths/Misc/fgmp-1.0b5/
COMMENT= Minimalist free re-implementation of GNU multi-precision routines
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LIBTOOL= yes
NO_CONFIGURE= yes
INSTALLATION_DIRS= include lib
do-build:
cd ${WRKSRC} && ( \
${LIBTOOL} --mode=compile ${CC} -O -c gmp.c; \
${LIBTOOL} --mode=link ${CC} -o libfgmp.la gmp.lo \
-rpath ${PREFIX}/lib -version-info 1:0; \
)
do-install:
cd ${WRKSRC} && ${LIBTOOL} --mode=install ${INSTALL_LIB} libfgmp.la \
${DESTDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/gmp.h ${DESTDIR}${PREFIX}/include/fgmp.h
.include "../../mk/bsd.pkg.mk"

3
math/fgmp/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2007/01/03 07:53:37 agc Exp $
include/fgmp.h
lib/libfgmp.la

7
math/fgmp/distinfo Normal file
View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.2 2007/01/04 19:37:51 agc Exp $
SHA1 (fgmp-1.0b5-src-10.10.tar.gz) = ff34ef4033958ad3ad130b74aea8b7e16acfb6bc
RMD160 (fgmp-1.0b5-src-10.10.tar.gz) = b85db676643fab4b5af18372fb719b6946cf11cf
Size (fgmp-1.0b5-src-10.10.tar.gz) = 13429 bytes
SHA1 (patch-aa) = 78b2dc3acd641e9b5b96e7de2f4ab12d71028ed1
SHA1 (patch-ab) = c42db304c0412d0d7be1f6724eb8ee93c550cdb9

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-aa,v 1.1.1.1 2007/01/03 07:53:37 agc Exp $
Silence compiler warnings
--- gmp.h 2006/12/29 14:27:44 1.1
+++ gmp.h 2006/12/29 14:28:02
@@ -21,6 +21,7 @@
*/
#include <stdio.h>
+#include <string.h>
#include <sys/types.h>
/* for malloc and free */

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-ab,v 1.1 2007/01/04 19:37:51 agc Exp $
Fix a bug in the random routines which don't set the 'sn' flag
--- gmp.c 2007/01/04 13:17:13 1.1
+++ gmp.c 2007/01/04 13:15:45
@@ -1230,6 +1230,7 @@
}
if (oflow)
(x->p)[digits-1] &= (((mp_limb)1 << oflow) - 1);
+ x->sn = 1;
}
void mpz_random2(x,size)
MP_INT *x; unsigned int size;
@@ -1251,6 +1252,7 @@
}
if (oflow)
(x->p)[digits-1] &= (((mp_limb)1 << oflow) - 1);
+ x->sn = 1;
}
size_t mpz_size(x)