summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2020-05-19 14:44:42 +0000
committerriastradh <riastradh@pkgsrc.org>2020-05-19 14:44:42 +0000
commit09c3491d566b36018756f0c9add80eb4875c8454 (patch)
tree055d5e83a2352ffc38614809daea244e2530b7a3 /math
parent8dc122a7b7ba48111be498309ff02bd01e515944 (diff)
downloadpkgsrc-09c3491d566b36018756f0c9add80eb4875c8454.tar.gz
fplll: Import fplll-5.3.2 as math/fplll
fplll is a library of floating-point lattice algorithms. Derived from wip/fplll.
Diffstat (limited to 'math')
-rw-r--r--math/Makefile3
-rw-r--r--math/fplll/DESCR10
-rw-r--r--math/fplll/Makefile27
-rw-r--r--math/fplll/PLIST53
-rw-r--r--math/fplll/buildlink3.mk15
-rw-r--r--math/fplll/distinfo6
6 files changed, 113 insertions, 1 deletions
diff --git a/math/Makefile b/math/Makefile
index 96147dcfbac..bacee84667e 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.460 2020/05/19 14:44:04 riastradh Exp $
+# $NetBSD: Makefile,v 1.461 2020/05/19 14:44:42 riastradh Exp $
COMMENT= Mathematics
@@ -161,6 +161,7 @@ SUBDIR+= fftw2
SUBDIR+= fftwf
SUBDIR+= fgmp
SUBDIR+= fityk
+SUBDIR+= fplll
SUBDIR+= fricas
SUBDIR+= galculator
SUBDIR+= gap
diff --git a/math/fplll/DESCR b/math/fplll/DESCR
new file mode 100644
index 00000000000..92cc048023c
--- /dev/null
+++ b/math/fplll/DESCR
@@ -0,0 +1,10 @@
+The library contains implementations of several lattice algorithms.
+The implementation relies of floating-point orthogonalization, and
+LLL is central to the code, hence the name.
+
+Other algorithms provided by the library include
+
+ - BKZ/BKZ-2.0 with support of slide reduction and self dual BKZ.
+ - Kannan-Fincke-Pohst algorithm that finds the shortest non-zero
+ lattic vector.
+ - GaussSieve algorithm for the same problem as above.
diff --git a/math/fplll/Makefile b/math/fplll/Makefile
new file mode 100644
index 00000000000..bddb1fdd0ae
--- /dev/null
+++ b/math/fplll/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2020/05/19 14:44:42 riastradh Exp $
+#
+
+DISTNAME= fplll-5.3.2
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GITHUB:=fplll/}
+GITHUB_PROJECT= ${DISTNAME:S/-${PKGVERSION}//}
+
+MAINTAINER= alnsn@NetBSD.org
+HOMEPAGE= https://perso.ens-lyon.fr/damien.stehle/\#software
+COMMENT= Lattice algorithms using floating-point arithmetic
+LICENSE= gnu-lgpl-v2.1
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= gmake autoconf automake
+USE_LANGUAGES= c c++
+
+TEST_TARGET= check
+
+pre-configure:
+ cd ${WRKSRC} && ./autogen.sh
+
+.include "../../devel/gmp/buildlink3.mk"
+BUILDLINK_API_DEPENDS.mpfr+= mpfr>=2.0.3
+.include "../../math/mpfr/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/fplll/PLIST b/math/fplll/PLIST
new file mode 100644
index 00000000000..3ea5832f666
--- /dev/null
+++ b/math/fplll/PLIST
@@ -0,0 +1,53 @@
+@comment $NetBSD: PLIST,v 1.1 2020/05/19 14:44:42 riastradh Exp $
+bin/fplll
+bin/latsieve
+bin/latticegen
+include/fplll.h
+include/fplll/bkz.h
+include/fplll/bkz_param.h
+include/fplll/defs.h
+include/fplll/enum/enumerate.h
+include/fplll/enum/enumerate_base.h
+include/fplll/enum/enumerate_ext.h
+include/fplll/enum/evaluator.h
+include/fplll/fplll.h
+include/fplll/fplll_config.h
+include/fplll/gso.h
+include/fplll/gso_gram.h
+include/fplll/gso_interface.h
+include/fplll/hlll.h
+include/fplll/householder.h
+include/fplll/io/thread_pool.hpp
+include/fplll/lll.h
+include/fplll/nr/dpe.h
+include/fplll/nr/matrix.cpp
+include/fplll/nr/matrix.h
+include/fplll/nr/nr.h
+include/fplll/nr/nr_FP.inl
+include/fplll/nr/nr_FP_d.inl
+include/fplll/nr/nr_FP_dd.inl
+include/fplll/nr/nr_FP_dpe.inl
+include/fplll/nr/nr_FP_ld.inl
+include/fplll/nr/nr_FP_misc.inl
+include/fplll/nr/nr_FP_mpfr.inl
+include/fplll/nr/nr_FP_qd.inl
+include/fplll/nr/nr_Z.inl
+include/fplll/nr/nr_Z_d.inl
+include/fplll/nr/nr_Z_l.inl
+include/fplll/nr/nr_Z_misc.inl
+include/fplll/nr/nr_Z_mpz.inl
+include/fplll/nr/nr_rand.inl
+include/fplll/nr/numvect.h
+include/fplll/pruner/pruner.h
+include/fplll/pruner/pruner_simplex.h
+include/fplll/sieve/sampler_basic.h
+include/fplll/sieve/sieve_common.h
+include/fplll/sieve/sieve_gauss.h
+include/fplll/sieve/sieve_gauss_str.h
+include/fplll/svpcvp.h
+include/fplll/threadpool.h
+include/fplll/util.h
+include/fplll/wrapper.h
+lib/libfplll.la
+lib/pkgconfig/fplll.pc
+share/fplll/strategies/default.json
diff --git a/math/fplll/buildlink3.mk b/math/fplll/buildlink3.mk
new file mode 100644
index 00000000000..edb996ecb6b
--- /dev/null
+++ b/math/fplll/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/05/19 14:44:42 riastradh Exp $
+
+BUILDLINK_TREE+= fplll
+
+.if !defined(FPLLL_BUILDLINK3_MK)
+FPLLL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.fplll+= fplll>=5.3.2
+BUILDLINK_PKGSRCDIR.fplll?= ../../math/fplll
+
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../math/mpfr/buildlink3.mk"
+.endif # FPLLL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -fplll
diff --git a/math/fplll/distinfo b/math/fplll/distinfo
new file mode 100644
index 00000000000..20803299d82
--- /dev/null
+++ b/math/fplll/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/05/19 14:44:42 riastradh Exp $
+
+SHA1 (fplll-5.3.2.tar.gz) = 418c0153be2d63657a5c83b65d39552cea4f6b35
+RMD160 (fplll-5.3.2.tar.gz) = 35c3c84fe45ff6f9b2677cbd207f4a80e8a32ba8
+SHA512 (fplll-5.3.2.tar.gz) = 6436aae93994e223260b5b6c28aa767796d6626988bf14baad51244ce7c3a329cdf48b7705781fdcf5ca8960064ff5a6b96c62a8d774b8563b9117c70c527708
+Size (fplll-5.3.2.tar.gz) = 1025192 bytes