From owner-svn-ports-all@freebsd.org Mon May 4 20:47:53 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4D1652C2D85; Mon, 4 May 2020 20:47:53 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49GFL11LYlz3J9Q; Mon, 4 May 2020 20:47:53 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2944B2332; Mon, 4 May 2020 20:47:53 +0000 (UTC) (envelope-from thierry@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 044Klr4v070893; Mon, 4 May 2020 20:47:53 GMT (envelope-from thierry@FreeBSD.org) Received: (from thierry@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 044Klqkd070888; Mon, 4 May 2020 20:47:52 GMT (envelope-from thierry@FreeBSD.org) Message-Id: <202005042047.044Klqkd070888@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: thierry set sender to thierry@FreeBSD.org using -f From: Thierry Thomas Date: Mon, 4 May 2020 20:47:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r533987 - in head/math: . zn_poly X-SVN-Group: ports-head X-SVN-Commit-Author: thierry X-SVN-Commit-Paths: in head/math: . zn_poly X-SVN-Commit-Revision: 533987 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2020 20:47:53 -0000 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 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@pompo.net +# $FreeBSD$ + +PORTNAME= zn_poly +PORTVERSION= 0.9.2 +CATEGORIES= math +MASTER_SITES= https://gitlab.com/sagemath/${PORTNAME}/-/archive/${PORTVERSION}/ + +MAINTAINER= thierry@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 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