pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46909: please, pull up devel/sparsehash to latest stable



>Number:         46909
>Category:       pkg
>Synopsis:       please, pull up devel/sparsehash to latest stable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 05 16:35:02 +0000 2012
>Originator:     diro%nixsyspaus.org@localhost
>Release:        NetBSD 6.0_RC1
>Organization:
>Environment:
System: NetBSD gift 6.0_RC1 NetBSD 6.0_RC1 (GIFT) #6: Sat Sep  1 04:44:23 UTC 
2012  root@gift:/usr/obj/sys/arch/amd64/compile/GIFT amd64
Architecture: amd64
Machine: amd64
>Description:
From https://code.google.com/p/sparsehash/ :
        "The google-sparsehash project has been renamed to sparsehash. [...] The
only functional change from sparsehash 1.12 is that I've renamed the google/
include-directory to be sparsehash/ instead. New code should #include
<sparsehash/sparse_hash_map>/etc. I've kept the old names around as forwarding
headers to the new, so `#include <google/sparse_hash_map>` will continue to
work.

Note that the classes and functions remain in the google C++ namespace (I didn't
change that to sparsehash as well);"
>How-To-Repeat:
        I'm packaging pcsx2 and it requires this newer version of sparsehash, 
rather
than the one that's in devel/. It doesn't make sense to maintain two separate
packages in this case, so i didn't import the one i made and tested into
pkgsrc-wip.
>Fix:
DISTNAME=     sparsehash-2.0.2
MASTER_SITES= http://sparsehash.googlecode.com/files/
HOMEPAGE=     http://code.google.com/p/sparsehash/
COMMENT=      Extremely memory-efficient hash_map implementation

It doesn't seem like USE_PKGLOCALEDIR and INSTALL_MAKE_FLAGS are necessary in
this version as 1) there are no other languages/po files installed and 2) the
install now seems to put the docs in the right place. These seem to be the only
necessary changes in the Makefile.

# diff ../../devel/sparsehash/PLIST  PLIST
1c1
< @comment $NetBSD: PLIST,v 1.5 2011/05/29 15:12:26 cheusov Exp $
---
> @comment $NetBSD$
9d8
< include/google/sparsehash/sparseconfig.h
11a11
> include/google/template_util.h
12a13,24
> include/sparsehash/dense_hash_map
> include/sparsehash/dense_hash_set
> include/sparsehash/internal/densehashtable.h
> include/sparsehash/internal/hashtable-common.h
> include/sparsehash/internal/libc_allocator_with_realloc.h
> include/sparsehash/internal/sparseconfig.h
> include/sparsehash/internal/sparsehashtable.h
> include/sparsehash/sparse_hash_map
> include/sparsehash/sparse_hash_set
> include/sparsehash/sparsetable
> include/sparsehash/template_util.h
> include/sparsehash/type_traits.h
14,30c26,42
< share/doc/sparsehash/AUTHORS
< share/doc/sparsehash/COPYING
< share/doc/sparsehash/ChangeLog
< share/doc/sparsehash/INSTALL
< share/doc/sparsehash/NEWS
< share/doc/sparsehash/README
< share/doc/sparsehash/README_windows.txt
< share/doc/sparsehash/TODO
< share/doc/sparsehash/dense_hash_map.html
< share/doc/sparsehash/dense_hash_set.html
< share/doc/sparsehash/designstyle.css
< share/doc/sparsehash/implementation.html
< share/doc/sparsehash/index.html
< share/doc/sparsehash/performance.html
< share/doc/sparsehash/sparse_hash_map.html
< share/doc/sparsehash/sparse_hash_set.html
< share/doc/sparsehash/sparsetable.html
---
> share/doc/${PKGNAME}/AUTHORS
> share/doc/${PKGNAME}/COPYING
> share/doc/${PKGNAME}/ChangeLog
> share/doc/${PKGNAME}/INSTALL
> share/doc/${PKGNAME}/NEWS
> share/doc/${PKGNAME}/README
> share/doc/${PKGNAME}/README_windows.txt
> share/doc/${PKGNAME}/TODO
> share/doc/${PKGNAME}/dense_hash_map.html
> share/doc/${PKGNAME}/dense_hash_set.html
> share/doc/${PKGNAME}/designstyle.css
> share/doc/${PKGNAME}/implementation.html
> share/doc/${PKGNAME}/index.html
> share/doc/${PKGNAME}/performance.html
> share/doc/${PKGNAME}/sparse_hash_map.html
> share/doc/${PKGNAME}/sparse_hash_set.html
> share/doc/${PKGNAME}/sparsetable.html


# cat distinfo
$NetBSD$

SHA1 (sparsehash-2.0.2.tar.gz) = 12c7552400b3e20464b3362286653fc17366643e
RMD160 (sparsehash-2.0.2.tar.gz) = 4da86c970e66c4fd3abb82d9b800267175a18bea
Size (sparsehash-2.0.2.tar.gz) = 340514 bytes


# cat buildlink3.mk
# $NetBSD$

BUILDLINK_TREE+=        sparsehash

.if !defined(SPARSEHASH_BUILDLINK3_MK)
SPARSEHASH_BUILDLINK3_MK:=
BUILDLINK_DEPMETHOD.sparsehash?=        build

BUILDLINK_API_DEPENDS.sparsehash+=      sparsehash>=2.0.2
BUILDLINK_PKGSRCDIR.sparsehash?=        ../../devel/sparsehash
.endif  # SPARSEHASH_BUILDLINK3_MK

BUILDLINK_TREE+=        -sparsehash


# cat DESCR
An extremely memory-efficient hash_map implementation. 2 bits/entry overhead!
The SparseHash library contains several hash-map implementations, including
implementations that optimize for space or speed.

These hashtable implementations are similar in API to SGI's hash_map class and
the tr1 unordered_map class, but with different performance characteristics.
It's easy to replace hash_map or unordered_map by sparse_hash_map or
dense_hash_map in C++ code.

They also contain code to serialize and unserialize from disk.



Home | Main Index | Thread Index | Old Index