Import sysutils/cmb, a combinatorics library/utility from FreeBSD.

ok kn@

cmb is a combinatorics library/utility.

It is both a novel algorithm and the fastest implementation we have for
complex combinatorics. It is faster than python's itertools, faster than
numpy, faster than Perl, faster than Perl XS, faster than comb in R.

It is a port of cmb(1)/cmb(3) from FreeBSD.
This commit is contained in:
bcallah 2019-12-17 03:36:07 +00:00
parent e38a6fe7ee
commit ad7f8b7047
4 changed files with 41 additions and 0 deletions

24
sysutils/cmb/Makefile Normal file
View File

@ -0,0 +1,24 @@
# $OpenBSD: Makefile,v 1.1.1.1 2019/12/17 03:36:07 bcallah Exp $
COMMENT = combinatorics library/utility from FreeBSD
DISTNAME = cmb-3.9.5
CATEGORIES = sysutils
SHARED_LIBS += cmb 0.0 # 0.0
HOMEPAGE = https://github.com/ibara/cmb
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# BSD
PERMIT_PACKAGE = Yes
WANTLIB += c crypto m
MASTER_SITES = https://github.com/ibara/cmb/releases/download/${DISTNAME}/
NO_TEST = Yes
post-install:
${INSTALL_DATA} ${WRKSRC}/lib/libcmb/cmb.h ${PREFIX}/include
.include <bsd.port.mk>

2
sysutils/cmb/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (cmb-3.9.5.tar.gz) = 6cvSHLVnpF25yYBMVwOA838ji1XKwrjvz9UGluycurE=
SIZE (cmb-3.9.5.tar.gz) = 21580

7
sysutils/cmb/pkg/DESCR Normal file
View File

@ -0,0 +1,7 @@
cmb is a combinatorics library/utility.
It is both a novel algorithm and the fastest implementation we have for
complex combinatorics. It is faster than python's itertools, faster than
numpy, faster than Perl, faster than Perl XS, faster than comb in R.
It is a port of cmb(1)/cmb(3) from FreeBSD.

8
sysutils/cmb/pkg/PLIST Normal file
View File

@ -0,0 +1,8 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/12/17 03:36:07 bcallah Exp $
@bin bin/cmb
include/cmb.h
@static-lib lib/libcmb.a
@lib lib/libcmb.so.${LIBcmb_VERSION}
@static-lib lib/libcmb_p.a
@man man/man1/cmb.1
@man man/man3/cmb.3