Index: head/math/Makefile =================================================================== --- head/math/Makefile +++ head/math/Makefile @@ -263,6 +263,7 @@ SUBDIR += hs-statistics SUBDIR += hs-vector-space SUBDIR += igraph + SUBDIR += intervaltree SUBDIR += ipopt SUBDIR += ised SUBDIR += jacal Index: head/math/intervaltree/Makefile =================================================================== --- head/math/intervaltree/Makefile +++ head/math/intervaltree/Makefile @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= intervaltree +DISTVERSION= g20151213 +CATEGORIES= wip math + +MAINTAINER= jwb@FreeBSD.org +COMMENT= Minimal C++ interval tree implementation + +LICENSE= MIT + +USE_GITHUB= yes +GH_ACCOUNT= ekg +GH_TAGNAME= 8fc4be91866237995e1105689d84bece619f4663 + +INSTALL_TARGET= install-strip +PLIST_FILES= bin/interval_tree_test include/${PORTNAME}/IntervalTree.h + +.include + +.if ${ARCH} == i386 +post-patch: + ${REINPLACE_CMD} -e 's|||g' \ + ${WRKSRC}/interval_tree_test.cpp +.endif + +.include Index: head/math/intervaltree/distinfo =================================================================== --- head/math/intervaltree/distinfo +++ head/math/intervaltree/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1523601658 +SHA256 (ekg-intervaltree-g20151213-8fc4be91866237995e1105689d84bece619f4663_GH0.tar.gz) = 126f0d0d313e43cd32a07b3a2e573112f4a0e69f5d1618fa38185b93c0f6a696 +SIZE (ekg-intervaltree-g20151213-8fc4be91866237995e1105689d84bece619f4663_GH0.tar.gz) = 71387 Index: head/math/intervaltree/pkg-descr =================================================================== --- head/math/intervaltree/pkg-descr +++ head/math/intervaltree/pkg-descr @@ -0,0 +1,6 @@ +An interval tree can be used to efficiently find a set of numeric intervals +overlapping or containing another interval. This library provides a basic +implementation of an interval tree using C++ templates, allowing the insertion +of arbitrary types into the tree. + +WWW: https://github.com/ekg/intervaltree