svn commit: r533987 - in head/math: . zn_poly
Thierry Thomas
thierry at FreeBSD.org
Mon May 4 20:47:53 UTC 2020
Author: thierry
Date: Mon May 4 20:47:51 2020
New Revision: 533987
URL: https://svnweb.freebsd.org/changeset/ports/533987
Log:
Adding zn_poly, a C library for polynomial arithmetic.
To be used by SageMath.
Added:
head/math/zn_poly/
head/math/zn_poly/Makefile (contents, props changed)
head/math/zn_poly/distinfo (contents, props changed)
head/math/zn_poly/pkg-descr (contents, props changed)
head/math/zn_poly/pkg-plist (contents, props changed)
Modified:
head/math/Makefile
Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile Mon May 4 20:46:54 2020 (r533986)
+++ head/math/Makefile Mon May 4 20:47:51 2020 (r533987)
@@ -959,5 +959,6 @@
SUBDIR += z3
SUBDIR += zegrapher
SUBDIR += zimpl
+ SUBDIR += zn_poly
.include <bsd.port.subdir.mk>
Added: head/math/zn_poly/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/zn_poly/Makefile Mon May 4 20:47:51 2020 (r533987)
@@ -0,0 +1,51 @@
+# Created by: thierry at pompo.net
+# $FreeBSD$
+
+PORTNAME= zn_poly
+PORTVERSION= 0.9.2
+CATEGORIES= math
+MASTER_SITES= https://gitlab.com/sagemath/${PORTNAME}/-/archive/${PORTVERSION}/
+
+MAINTAINER= thierry at FreeBSD.org
+COMMENT= C library for polynomial arithmetic
+
+LICENSE= GPLv2 GPLv3
+LICENSE_COMB= dual
+LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
+LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING
+
+LIB_DEPENDS= libgmp.so:math/gmp
+
+USES= gmake python:build tar:bz2
+
+OPTIONS_DEFINE= DOCS
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS= --prefix="${STAGEDIR}${PREFIX}" \
+ --cppflags="${CPPFLAGS}" \
+ --cflags="${CFLAGS} -fPIC" \
+ --cxxflags="${CXXFLAGS}" \
+ --ldflags="${LDFLAGS}" \
+ --gmp-prefix="${LOCALBASE}"
+MAKEFILE= makefile
+ALL_TARGET= all libzn_poly.so
+USE_LDCONFIG= yes
+TEST_TARGET= check
+
+.if defined(PACKAGE_BUILDING)
+CONFIGURE_ARGS+=--disable-tuning
+.endif
+
+pre-configure:
+ ${REINPLACE_CMD} -e 's|python|${PYTHON_CMD}|' \
+ ${WRKSRC}/${CONFIGURE_SCRIPT}
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/libzn_poly-${PORTVERSION}.so \
+ ${STAGEDIR}${PREFIX}/lib/libzn_poly-${PORTVERSION}.so.0.0.0
+ ${RLN} ${STAGEDIR}${PREFIX}/lib/libzn_poly-${PORTVERSION}.so.0.0.0 \
+ ${STAGEDIR}${PREFIX}/lib/libzn_poly-${PORTVERSION:R}.so.0
+ ${RLN} ${STAGEDIR}${PREFIX}/lib/libzn_poly-${PORTVERSION}.so.0.0.0 \
+ ${STAGEDIR}${PREFIX}/lib/libzn_poly-${PORTVERSION:R}.so
+
+.include <bsd.port.mk>
Added: head/math/zn_poly/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/zn_poly/distinfo Mon May 4 20:47:51 2020 (r533987)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1588608790
+SHA256 (zn_poly-0.9.2.tar.bz2) = 29d88ce19939f53e920adf118d8cd6c8c9594bc8cb71a992a6137bd86f6fb7f5
+SIZE (zn_poly-0.9.2.tar.bz2) = 94785
Added: head/math/zn_poly/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/zn_poly/pkg-descr Mon May 4 20:47:51 2020 (r533987)
@@ -0,0 +1,5 @@
+zn_poly is a C library for polynomial arithmetic in Z/nZ[x], where n is any
+modulus that fits into an unsigned long.
+
+WWW: https://web.maths.unsw.edu.au/~davidharvey/code/zn_poly/
+WWW: https://gitlab.com/sagemath/zn_poly/
Added: head/math/zn_poly/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/zn_poly/pkg-plist Mon May 4 20:47:51 2020 (r533987)
@@ -0,0 +1,6 @@
+include/zn_poly/wide_arith.h
+include/zn_poly/zn_poly.h
+lib/libzn_poly-0.9.2.so.0.0.0
+lib/libzn_poly-0.9.so
+lib/libzn_poly-0.9.so.0
+lib/libzn_poly.a
More information about the svn-ports-all
mailing list