diff options
author | jaapb <jaapb@pkgsrc.org> | 2013-08-22 14:42:57 +0000 |
---|---|---|
committer | jaapb <jaapb@pkgsrc.org> | 2013-08-22 14:42:57 +0000 |
commit | feb911879bd44d17f65e23a278fd73da010df3c7 (patch) | |
tree | 0a45e6aea2e070aabe39eda6fcf4439ed6aa91c1 /devel/mdds | |
parent | fb85b57e65c11519ad209a71ae8f4db2c0aa5c30 (diff) | |
download | pkgsrc-feb911879bd44d17f65e23a278fd73da010df3c7.tar.gz |
Updated package to its latest version, 0.9.0. Changes (apart from bugfixes)
include:
* all
* added .pc file for pkg-config.
* multi_type_vector
* added another block function template to make it easier to declare
container with 3 custom element types.
* added two variants of release():
* template<typename _T> iterator
release(size_type pos, _T& value)
* template<typename _T> iterator
release(const iterator& pos_hint, size_type pos, _T& value)
* added a variant of release() that takes no arguments. This one
releases all elements and makes the container empty afterward.
* added a new variant of position() that takes const_iterator as
position hint.
* std::pair<const_iterator, size_type>
position(const const_iterator& pos_hint, size_type pos) const
* added compile-time macro MDDS_MULTI_TYPE_VECTOR_USE_DEQUE to allow
users to specify std::deque as the underlying data array. By
default, multi_type_vector uses std::vector as the underlying data
array container.
* added a new variant of swap() that allows partial swapping of
content with another container.
* added static block type identifier so that the numeric block type
ID can be deduced from the block type directly.
* value_type (which is a type of object returned when dereferencing
an iterator) now stores 'position' which is the logical position
of the first element of a block.
* added position_type and const_position_type which are typedefs to
the return types of position() methods.
* added char and unsigned char types to the standard types supported
by default.
* added position() member method that takes a logical element
position and returns a pair of block iterator where the element
resides and its offset within that block.
* added at() static member method to the data block, which calls the
at() method of the underlying std::vector container.
* added release() member method to allow caller to release an object
stored inside a managed block.
* added two templates to ease creation of custom element block
functions when using one or two custom element types.
* added transfer() member method to allow elements in a specified
range to be transferred from one container to another. When
transferring elements stored in a managed element block, the
ownership of those elements is also transferred.
* add variants of set() methods (both single- and multi-value)
insert(), set_empty() and insert_empty() methods that take an
iterator as an additional position hint parameter for block lookup
speed optimization.
* add support for non-const iterators which allow the client code to
modify values directly from the iterators.
* set() methods (both single- and multi-parameter variants),
set_empty(), insert() and insert_empty() methods now return
iterator that references the block to which the values are set or
inserted.
* multi_type_matrix:
* get_numeric(), get_boolean(), and get_string() are made more
efficient.
* added position() method that returns a reference object to an
element (position object).
* added variants of get_numeric(), get_boolean() and get_string()
that retrieves elements from position objects.
* added variants of set() that sets new element values via position
objects.
* add a variant of the position() method that takes an iterator as
positional hint. Note that there is no variant of position() that
takes const_iterator.
* flat_segment_tree
* changed the return type of search_tree from bool to
std::pair<const_iterator,bool>, to make it consistent with the
search() method. Note that this is an API-incompatible change.
Diffstat (limited to 'devel/mdds')
-rw-r--r-- | devel/mdds/Makefile | 9 | ||||
-rw-r--r-- | devel/mdds/PLIST | 6 | ||||
-rw-r--r-- | devel/mdds/buildlink3.mk | 4 | ||||
-rw-r--r-- | devel/mdds/distinfo | 8 |
4 files changed, 16 insertions, 11 deletions
diff --git a/devel/mdds/Makefile b/devel/mdds/Makefile index 3992a050c6f..0e4ad785bd8 100644 --- a/devel/mdds/Makefile +++ b/devel/mdds/Makefile @@ -1,9 +1,8 @@ -# $NetBSD: Makefile,v 1.14 2013/02/15 11:54:02 obache Exp $ +# $NetBSD: Makefile,v 1.15 2013/08/22 14:42:57 jaapb Exp $ # -DISTNAME= mdds_0.6.1 +DISTNAME= mdds_0.9.0 PKGNAME= ${DISTNAME:S/_/-/} -PKGREVISION= 1 CATEGORIES= devel MASTER_SITES= http://multidimalgorithm.googlecode.com/files/ EXTRACT_SUFX= .tar.bz2 @@ -15,7 +14,8 @@ LICENSE= mit USE_LANGUAGES= c++ GNU_CONFIGURE= yes -INSTALLATION_DIRS= include/mdds/hash_container +INSTALLATION_DIRS= include/mdds/hash_container share/pkgconfig +PKGCONFIG_OVERRIDE+= misc/mdds.pc.in do-build: @@ -28,6 +28,7 @@ do-install: ${INSTALL_DATA} $$i \ ${DESTDIR}${PREFIX}/include/mdds/hash_container; \ done + ${INSTALL_DATA} ${WRKSRC}/misc/mdds.pc ${DESTDIR}${PREFIX}/share/pkgconfig BUILDLINK_DEPMETHOD.boost-headers?= build .include "../../devel/boost-headers/buildlink3.mk" diff --git a/devel/mdds/PLIST b/devel/mdds/PLIST index f0b02ab8216..722a3002806 100644 --- a/devel/mdds/PLIST +++ b/devel/mdds/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.3 2012/07/29 20:02:15 wiz Exp $ +@comment $NetBSD: PLIST,v 1.4 2013/08/22 14:42:57 jaapb Exp $ include/mdds/default_deleter.hpp include/mdds/flat_segment_tree.hpp include/mdds/flat_segment_tree_def.inl @@ -15,6 +15,9 @@ include/mdds/mixed_type_matrix_storage_sparse.inl include/mdds/multi_type_matrix.hpp include/mdds/multi_type_matrix_def.inl include/mdds/multi_type_vector.hpp +include/mdds/multi_type_vector_custom_func1.hpp +include/mdds/multi_type_vector_custom_func2.hpp +include/mdds/multi_type_vector_custom_func3.hpp include/mdds/multi_type_vector_def.inl include/mdds/multi_type_vector_itr.hpp include/mdds/multi_type_vector_macro.hpp @@ -26,3 +29,4 @@ include/mdds/quad_node.hpp include/mdds/rectangle_set.hpp include/mdds/rectangle_set_def.inl include/mdds/segment_tree.hpp +share/pkgconfig/mdds.pc diff --git a/devel/mdds/buildlink3.mk b/devel/mdds/buildlink3.mk index b6dd5bf2070..58b31fa57bd 100644 --- a/devel/mdds/buildlink3.mk +++ b/devel/mdds/buildlink3.mk @@ -1,11 +1,11 @@ -# $NetBSD: buildlink3.mk,v 1.1 2011/04/10 11:07:43 wiz Exp $ +# $NetBSD: buildlink3.mk,v 1.2 2013/08/22 14:42:57 jaapb Exp $ BUILDLINK_TREE+= mdds .if !defined(MDDS_BUILDLINK3_MK) MDDS_BUILDLINK3_MK:= -BUILDLINK_API_DEPENDS.mdds+= mdds>=0.5.2 +BUILDLINK_API_DEPENDS.mdds+= mdds>=0.9.0 BUILDLINK_PKGSRCDIR.mdds?= ../../devel/mdds # only contains header files BUILDLINK_DEPMETHOD.mdds?= build diff --git a/devel/mdds/distinfo b/devel/mdds/distinfo index 3d4d5750b8e..0313f8420a2 100644 --- a/devel/mdds/distinfo +++ b/devel/mdds/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.7 2012/10/02 17:27:02 wiz Exp $ +$NetBSD: distinfo,v 1.8 2013/08/22 14:42:57 jaapb Exp $ -SHA1 (mdds_0.6.1.tar.bz2) = e6b6235700c7808196fa84c05281a05047e2fdb0 -RMD160 (mdds_0.6.1.tar.bz2) = 2af2f21b3272a8b81f5814046934d639f7fa1b98 -Size (mdds_0.6.1.tar.bz2) = 128115 bytes +SHA1 (mdds_0.9.0.tar.bz2) = ebb7bee0bf4aace6571033dca226e0ad387487e2 +RMD160 (mdds_0.9.0.tar.bz2) = b5efc760b4e072600625ac5c91f58ac001d8ce91 +Size (mdds_0.9.0.tar.bz2) = 144681 bytes |