Skip to content

Commit

Permalink
Import sysutils/cmb, a combinatorics library/utility from FreeBSD.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ibara committed Dec 17, 2019
1 parent e38a6fe commit ad7f8b7
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
24 changes: 24 additions & 0 deletions sysutils/cmb/Makefile
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions sysutils/cmb/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SHA256 (cmb-3.9.5.tar.gz) = 6cvSHLVnpF25yYBMVwOA838ji1XKwrjvz9UGluycurE=
SIZE (cmb-3.9.5.tar.gz) = 21580
7 changes: 7 additions & 0 deletions sysutils/cmb/pkg/DESCR
Original file line number Diff line number Diff line change
@@ -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 changes: 8 additions & 0 deletions sysutils/cmb/pkg/PLIST
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ad7f8b7

Please sign in to comment.