New port: devel/gcem: C++ header-only library for Generalized Constant Expression Math

This commit is contained in:
Yuri Victorovich 2020-09-01 20:58:02 +00:00
parent c5e326320e
commit e009c44ed6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547296
5 changed files with 110 additions and 0 deletions

View file

@ -713,6 +713,7 @@
SUBDIR += gcc-arm-embedded
SUBDIR += gcc-msp430-ti-toolchain
SUBDIR += gccmakedep
SUBDIR += gcem
SUBDIR += gconf2
SUBDIR += gconf2-reference
SUBDIR += gconfmm26

27
devel/gcem/Makefile Normal file
View file

@ -0,0 +1,27 @@
# $FreeBSD$
PORTNAME= gcem
DISTVERSIONPREFIX= v
DISTVERSION= 1.12.0-23
DISTVERSIONSUFFIX= -ga167868
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ header-only library for Generalized Constant Expression Math
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= kthohr
NO_ARCH= yes
do-test:
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DGCEM_BUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} gcem_tests && \
(cd tests && ./exp.test)
.include <bsd.port.mk>

3
devel/gcem/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1598993030
SHA256 (kthohr-gcem-v1.12.0-23-ga167868_GH0.tar.gz) = 9c04032faa98cff6a8a4647fb52974a8e7751794266cd97e97266151a614874f
SIZE (kthohr-gcem-v1.12.0-23-ga167868_GH0.tar.gz) = 53307

14
devel/gcem/pkg-descr Normal file
View file

@ -0,0 +1,14 @@
GCE-Math (Generalized Constant Expression Math) is a templated C++ library
enabling compile-time computation of mathematical functions.
Features:
* The library is written in C++11 constexpr format, and is C++11/14/17
compatible.
* Continued fraction expansions and series expansions are implemented using
recursive templates.
* The gcem:: syntax is identical to the C++ standard library (std::).
* Tested and accurate to floating-point precision against the C++ standard
library.
* Released under a permissive, non-GPL license.
WWW: https://github.com/kthohr/gcem

65
devel/gcem/pkg-plist Normal file
View file

@ -0,0 +1,65 @@
include/gcem.hpp
include/gcem_incl/abs.hpp
include/gcem_incl/acos.hpp
include/gcem_incl/acosh.hpp
include/gcem_incl/asin.hpp
include/gcem_incl/asinh.hpp
include/gcem_incl/atan.hpp
include/gcem_incl/atan2.hpp
include/gcem_incl/atanh.hpp
include/gcem_incl/beta.hpp
include/gcem_incl/binomial_coef.hpp
include/gcem_incl/ceil.hpp
include/gcem_incl/copysign.hpp
include/gcem_incl/cos.hpp
include/gcem_incl/cosh.hpp
include/gcem_incl/erf.hpp
include/gcem_incl/erf_inv.hpp
include/gcem_incl/exp.hpp
include/gcem_incl/expm1.hpp
include/gcem_incl/factorial.hpp
include/gcem_incl/find_exponent.hpp
include/gcem_incl/find_fraction.hpp
include/gcem_incl/find_whole.hpp
include/gcem_incl/floor.hpp
include/gcem_incl/fmod.hpp
include/gcem_incl/gcd.hpp
include/gcem_incl/gcem_options.hpp
include/gcem_incl/incomplete_beta.hpp
include/gcem_incl/incomplete_beta_inv.hpp
include/gcem_incl/incomplete_gamma.hpp
include/gcem_incl/incomplete_gamma_inv.hpp
include/gcem_incl/is_even.hpp
include/gcem_incl/is_finite.hpp
include/gcem_incl/is_inf.hpp
include/gcem_incl/is_nan.hpp
include/gcem_incl/is_odd.hpp
include/gcem_incl/lbeta.hpp
include/gcem_incl/lcm.hpp
include/gcem_incl/lgamma.hpp
include/gcem_incl/lmgamma.hpp
include/gcem_incl/log.hpp
include/gcem_incl/log1p.hpp
include/gcem_incl/log2.hpp
include/gcem_incl/log_binomial_coef.hpp
include/gcem_incl/mantissa.hpp
include/gcem_incl/max.hpp
include/gcem_incl/min.hpp
include/gcem_incl/neg_zero.hpp
include/gcem_incl/pow.hpp
include/gcem_incl/pow_integral.hpp
include/gcem_incl/quadrature/gauss_legendre_30.hpp
include/gcem_incl/quadrature/gauss_legendre_50.hpp
include/gcem_incl/round.hpp
include/gcem_incl/sgn.hpp
include/gcem_incl/signbit.hpp
include/gcem_incl/sin.hpp
include/gcem_incl/sinh.hpp
include/gcem_incl/sqrt.hpp
include/gcem_incl/tan.hpp
include/gcem_incl/tanh.hpp
include/gcem_incl/tgamma.hpp
include/gcem_incl/trunc.hpp
lib/cmake/gcem/gcemConfig.cmake
lib/cmake/gcem/gcemConfigVersion.cmake
lib/cmake/gcem/gcemTargets.cmake