From owner-svn-ports-head@freebsd.org Mon Apr 16 18:31:43 2018 Return-Path: Delivered-To: svn-ports-head@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 6BD64F9AAE1; Mon, 16 Apr 2018 18:31:43 +0000 (UTC) (envelope-from jwb@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1963269B5E; Mon, 16 Apr 2018 18:31:43 +0000 (UTC) (envelope-from jwb@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 1467920FE1; Mon, 16 Apr 2018 18:31:43 +0000 (UTC) (envelope-from jwb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3GIVgBH067717; Mon, 16 Apr 2018 18:31:42 GMT (envelope-from jwb@FreeBSD.org) Received: (from jwb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3GIVgdi067711; Mon, 16 Apr 2018 18:31:42 GMT (envelope-from jwb@FreeBSD.org) Message-Id: <201804161831.w3GIVgdi067711@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jwb set sender to jwb@FreeBSD.org using -f From: "Jason W. Bacon" Date: Mon, 16 Apr 2018 18:31:42 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: jwb X-SVN-Commit-Paths: in head/math: . multichoose multichoose/files X-SVN-Commit-Revision: 467502 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2018 18:31:43 -0000 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 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