From owner-svn-ports-all@freebsd.org Wed Mar 20 16:31:35 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A7FB1558852; Wed, 20 Mar 2019 16:31:35 +0000 (UTC) (envelope-from swills@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 297AC6E64A; Wed, 20 Mar 2019 16:31:34 +0000 (UTC) (envelope-from swills@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 C6CB42345B; Wed, 20 Mar 2019 16:31:33 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2KGVXMY088324; Wed, 20 Mar 2019 16:31:33 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2KGVW4b088318; Wed, 20 Mar 2019 16:31:32 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201903201631.x2KGVW4b088318@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Wed, 20 Mar 2019 16:31:32 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r496352 - in head/math: . libnormaliz libnormaliz/files X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: in head/math: . libnormaliz libnormaliz/files X-SVN-Commit-Revision: 496352 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 297AC6E64A X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.95)[-0.949,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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: Wed, 20 Mar 2019 16:31:35 -0000 Author: swills Date: Wed Mar 20 16:31:32 2019 New Revision: 496352 URL: https://svnweb.freebsd.org/changeset/ports/496352 Log: math/libnormaliz: create port Normaliz is an open source tool for computations in affine monoids, vector configurations, lattice polytopes, and rational cones. Computation goals: - convex hulls and dual cones; - conversion from generators to constraints and vice versa; - projections of cones and polyhedra; - triangulations, disjoint decompositions and Stanley decompositions; - Hilbert basis of rational, not necessarily pointed cones; - normalization of affine monoids; - lattice points of rational polytopes and (unbounded) polyhedra; - Euclidean and lattice normalized volumes of polytopes; - Hilbert (or Ehrhart) series and (quasi) polynomials under Z-gradings (for example, for rational polytopes); - generalized (or weighted) Ehrhart series and Lebesgue integrals of polynomials over rational polytopes. WWW: https://www.normaliz.uni-osnabrueck.de PR: 231806 Submitted by: Lorenzo Salvadore Added: head/math/libnormaliz/ head/math/libnormaliz/Makefile (contents, props changed) head/math/libnormaliz/distinfo (contents, props changed) head/math/libnormaliz/files/ head/math/libnormaliz/files/patch-source_libnormaliz_Makefile.classic (contents, props changed) head/math/libnormaliz/files/patch-source_libnormaliz_nmz__integral.cpp (contents, props changed) head/math/libnormaliz/pkg-descr (contents, props changed) head/math/libnormaliz/pkg-plist (contents, props changed) Modified: head/math/Makefile (contents, props changed) Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Wed Mar 20 16:31:19 2019 (r496351) +++ head/math/Makefile Wed Mar 20 16:31:32 2019 (r496352) @@ -334,6 +334,7 @@ SUBDIR += liblbfgs SUBDIR += libmesh SUBDIR += libmissing + SUBDIR += libnormaliz SUBDIR += libocas SUBDIR += liborigin SUBDIR += libpgmath Added: head/math/libnormaliz/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/libnormaliz/Makefile Wed Mar 20 16:31:32 2019 (r496352) @@ -0,0 +1,50 @@ +# $FreeBSD$ + +PORTNAME= libnormaliz +DISTVERSIONPREFIX= v +DISTVERSION= 3.6.3 +CATEGORIES= math + +MAINTAINER= phascolarctos@protonmail.ch +COMMENT= Computations in affin monoids, vector configurations etc + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= ${LOCALBASE}/include/boost/dynamic_bitset.hpp:devel/boost-libs \ + ${LOCALBASE}/include/gmpxx.h:math/gmp + +USES= gmake +USE_GITHUB= yes + +GH_ACCOUNT= Normaliz +GH_PROJECT= Normaliz + +BUILD_WRKSRC= ${WRKSRC}/source/libnormaliz +INSTALL_WRKSRC= ${WRKSRC}/source/libnormaliz + +CXXFLAGS+= -I ${LOCALBASE}/include +MAKEFILE= Makefile.classic + +OPTIONS_DEFINE= COCOA DOCS FLINT OPENMP +COCOA_DESC= Link with libcocoa.a (might cause circular dependency) +FLINT_DESC= Link with libflint.a +COCOA_BUILD_DEPENDS= ${LOCALBASE}/lib/libcocoa.a:math/cocoalib +COCOA_CXXFLAGS= -DNMZ_COCOA -DCoCoA_THREADSAFE_HACK +COCOA_LDFLAGS= ${LOCALBASE}/lib -lcocoa +FLINT_BUILD_DEPENDS= ${LOCALBASE}/lib/libflint.so:math/flint2 +FLINT_CXXFLAGS= -DNMZ_FLINT +FLINT_LDFLAGS= -L ${LOCALBASE}/lib -lflint -lmpfr +OPENMP_BUILD_DEPENDS= ${LOCALBASE}/lib/libomp.so:devel/openmp +OPENMP_CXXFLAGS= -fopenmp + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/include/libnormaliz + ${INSTALL_DATA} ${INSTALL_WRKSRC}/libnormaliz.a ${STAGEDIR}${PREFIX}/lib + cd ${INSTALL_WRKSRC} && ${INSTALL_DATA} cone.h cone_property.h convert.h general.h HilbertSeries.h integer.h libnormaliz.h map_operations.h matrix.h my_omp.h normaliz_exception.h sublattice_representation.h vector_operations.h version.h nmz_integrate.h ${STAGEDIR}${PREFIX}/include/libnormaliz + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/doc/Normaliz.pdf ${STAGEDIR}${DOCSDIR} + +.include Added: head/math/libnormaliz/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/libnormaliz/distinfo Wed Mar 20 16:31:32 2019 (r496352) @@ -0,0 +1,3 @@ +TIMESTAMP = 1536314303 +SHA256 (Normaliz-Normaliz-v3.6.3_GH0.tar.gz) = 1c3dad1f5256c92dde21b0eea1423afe95d98863c90f5e4cb429ffa71ba57f54 +SIZE (Normaliz-Normaliz-v3.6.3_GH0.tar.gz) = 9923720 Added: head/math/libnormaliz/files/patch-source_libnormaliz_Makefile.classic ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/libnormaliz/files/patch-source_libnormaliz_Makefile.classic Wed Mar 20 16:31:32 2019 (r496352) @@ -0,0 +1,10 @@ +--- source/libnormaliz/Makefile.classic.orig 2018-08-21 13:25:10 UTC ++++ source/libnormaliz/Makefile.classic +@@ -1,7 +1,6 @@ + ## + ## Makefile for libnormaliz + ## +-include ../Makefile.configuration + + INSTALLHDRS = cone.h cone_property.h convert.h general.h HilbertSeries.h integer.h libnormaliz.h map_operations.h matrix.h my_omp.h normaliz_exception.h sublattice_representation.h vector_operations.h version.h nmz_integrate.h + Added: head/math/libnormaliz/files/patch-source_libnormaliz_nmz__integral.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/libnormaliz/files/patch-source_libnormaliz_nmz__integral.cpp Wed Mar 20 16:31:32 2019 (r496352) @@ -0,0 +1,11 @@ +--- source/libnormaliz/nmz_integral.cpp.orig 2018-09-25 05:50:07 UTC ++++ source/libnormaliz/nmz_integral.cpp +@@ -403,7 +403,7 @@ try{ + vector test_grading=C.getSublattice().to_sublattice_dual_no_div(C.getGrading()); + Integer corr_factor=v_gcd(test_grading); + mpz_class corr_mpz=convertTo(corr_factor); +- I*=BigInt(corr_mpz.get_mpz_t()); ++ I*=BigIntFromMPZ(corr_mpz.get_mpz_t()); + + string result="Integral"; + if(do_virt_mult) Added: head/math/libnormaliz/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/libnormaliz/pkg-descr Wed Mar 20 16:31:32 2019 (r496352) @@ -0,0 +1,18 @@ +Normaliz is an open source tool for computations in affine monoids, +vector configurations, lattice polytopes, and rational cones. + +Computation goals: +- convex hulls and dual cones; +- conversion from generators to constraints and vice versa; +- projections of cones and polyhedra; +- triangulations, disjoint decompositions and Stanley decompositions; +- Hilbert basis of rational, not necessarily pointed cones; +- normalization of affine monoids; +- lattice points of rational polytopes and (unbounded) polyhedra; +- Euclidean and lattice normalized volumes of polytopes; +- Hilbert (or Ehrhart) series and (quasi) polynomials under Z-gradings +(for example, for rational polytopes); +- generalized (or weighted) Ehrhart series and Lebesgue integrals of +polynomials over rational polytopes. + +WWW: https://www.normaliz.uni-osnabrueck.de Added: head/math/libnormaliz/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/libnormaliz/pkg-plist Wed Mar 20 16:31:32 2019 (r496352) @@ -0,0 +1,17 @@ +include/libnormaliz/HilbertSeries.h +include/libnormaliz/cone.h +include/libnormaliz/cone_property.h +include/libnormaliz/convert.h +include/libnormaliz/general.h +include/libnormaliz/integer.h +include/libnormaliz/libnormaliz.h +include/libnormaliz/map_operations.h +include/libnormaliz/matrix.h +include/libnormaliz/my_omp.h +include/libnormaliz/nmz_integrate.h +include/libnormaliz/normaliz_exception.h +include/libnormaliz/sublattice_representation.h +include/libnormaliz/vector_operations.h +include/libnormaliz/version.h +lib/libnormaliz.a +%%PORTDOCS%%%%DOCSDIR%%/Normaliz.pdf