Date: Mon, 16 Apr 2018 18:31:42 +0000 (UTC) From: "Jason W. Bacon" <jwb@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467502 - in head/math: . multichoose multichoose/files Message-ID: <201804161831.w3GIVgdi067711@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jwb Date: Mon Apr 16 18:31:42 2018 New Revision: 467502 URL: https://svnweb.freebsd.org/changeset/ports/467502 Log: math/multichoose: Generate multiset combinations (n multichoose k) Approved by: jrm (mentor) Differential Revision: https://reviews.freebsd.org/D15104 Added: head/math/multichoose/ head/math/multichoose/Makefile (contents, props changed) head/math/multichoose/distinfo (contents, props changed) head/math/multichoose/files/ head/math/multichoose/files/Makefile (contents, props changed) head/math/multichoose/pkg-descr (contents, props changed) head/math/multichoose/pkg-plist (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Mon Apr 16 18:15:30 2018 (r467501) +++ head/math/Makefile Mon Apr 16 18:31:42 2018 (r467502) @@ -342,6 +342,7 @@ SUBDIR += msieve SUBDIR += mtl SUBDIR += mtrxmath + SUBDIR += multichoose SUBDIR += mumps SUBDIR += mumps-edf SUBDIR += mumps-mpich Added: head/math/multichoose/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/multichoose/Makefile Mon Apr 16 18:31:42 2018 (r467502) @@ -0,0 +1,22 @@ +# $FreeBSD$ + +PORTNAME= multichoose +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.3-2 +DISTVERSIONSUFFIX= -g3b8d14e +CATEGORIES= math + +MAINTAINER= jwb@FreeBSD.org +COMMENT= Generate multiset combinations (n multichoose k) + +LICENSE= MIT + +USES= python shebangfix +SHEBANG_FILES= *.py +USE_GITHUB= yes +GH_ACCOUNT= ekg + +MAKEFILE= ${FILESDIR}/Makefile +INSTALL_TARGET= install-strip + +.include <bsd.port.mk> Added: head/math/multichoose/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/multichoose/distinfo Mon Apr 16 18:31:42 2018 (r467502) @@ -0,0 +1,3 @@ +TIMESTAMP = 1523601462 +SHA256 (ekg-multichoose-v1.0.3-2-g3b8d14e_GH0.tar.gz) = 31eaeb816842094468c8204f9eb96bc825f2e60bc8528d593002ebb66532548e +SIZE (ekg-multichoose-v1.0.3-2-g3b8d14e_GH0.tar.gz) = 6555 Added: head/math/multichoose/files/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/multichoose/files/Makefile Mon Apr 16 18:31:42 2018 (r467502) @@ -0,0 +1,46 @@ + +# Use ?= to allow overriding from the env or command-line, e.g. +# +# make CXXFLAGS="-O3 -fPIC" install +# +# Package managers will override many of these variables automatically, so +# this is aimed at making it easy to create packages (Debian packages, +# FreeBSD ports, MacPorts, pkgsrc, etc.) + +CC ?= cc +CXX ?= c++ +DESTDIR ?= stage +PREFIX ?= /usr/local +MKDIR ?= mkdir +INSTALL ?= install -c +STRIP ?= strip +AR ?= ar + +BINS = multichoose cmultichoose multipermute + +all: ${BINS} + +#multichoose_recursive: multichoose_recursive.cpp +# ${CXX} multichoose_recursive.cpp -o multichoose_recursive + +multichoose: multichoose.cpp multichoose.h + ${CXX} multichoose.cpp -o multichoose + +multipermute: multipermute.cpp multipermute.h + ${CXX} multipermute.cpp -o multipermute + +cmultichoose: multichoose.c + ${CC} multichoose.c -o cmultichoose + +install: all + ${MKDIR} -p ${DESTDIR}${PREFIX}/bin + ${MKDIR} -p ${DESTDIR}${PREFIX}/include/multichoose + ${INSTALL} ${BINS} ${DESTDIR}${PREFIX}/bin + ${INSTALL} *.py ${DESTDIR}${PREFIX}/bin + ${INSTALL} *.h ${DESTDIR}${PREFIX}/include/multichoose + +install-strip: install + ${STRIP} ${DESTDIR}${PREFIX}/bin/*e + +clean: + rm -rf ${BINS} ${DESTDIR} Added: head/math/multichoose/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/multichoose/pkg-descr Mon Apr 16 18:31:42 2018 (r467502) @@ -0,0 +1,6 @@ +Efficient loopless multiset combination generation algorithm which is +(approximately) described in "Loopless algorithms for generating permutations, +combinations, and other combinatorial configurations." G Ehrlich - Journal of +the ACM (JACM), 1973. (Algorithm 7.) + +WWW: https://github.com/ekg/multichoose Added: head/math/multichoose/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/multichoose/pkg-plist Mon Apr 16 18:31:42 2018 (r467502) @@ -0,0 +1,7 @@ +bin/cmultichoose +bin/multichoose +bin/multichoose.py +bin/multipermute +bin/multipermute.py +include/multichoose/multichoose.h +include/multichoose/multipermute.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804161831.w3GIVgdi067711>