New package: sparsehash - efficient hash map

Signed-off-by: Markus Rathgeb <[email protected]>
===============================================================================
diff -Naur org/rules/sparsehash.in sparsehash/rules/sparsehash.in
--- org/rules/sparsehash.in     1970-01-01 01:00:00.000000000 +0100
+++ sparsehash/rules/sparsehash.in      2009-08-08 02:32:16.000000000 +0200
@@ -0,0 +1,7 @@
+## SECTION=system_libraries
+
+config SPARSEHASH
+       tristate
+       prompt "sparsehash"
+       help
+         An extremely memory-efficient hash_map implementation.
\ No newline at end of file
diff -Naur org/rules/sparsehash.make sparsehash/rules/sparsehash.make
--- org/rules/sparsehash.make   1970-01-01 01:00:00.000000000 +0100
+++ sparsehash/rules/sparsehash.make    2009-08-08 02:32:16.000000000 +0200
@@ -0,0 +1,68 @@
+# Copyright (C) 2009 by Markus Rathgeb <[email protected]>
+
+
+PACKAGES-$(PTXCONF_SPARSEHASH) += sparsehash
+
+#
+# Paths and names
+#
+SPARSEHASH_NAME     := sparsehash
+SPARSEHASH_VERSION  := 1.5.2
+SPARSEHASH          := $(SPARSEHASH_NAME)-$(SPARSEHASH_VERSION)
+SPARSEHASH_SUFFIX   := tar.gz
+SPARSEHASH_URL      := 
http://google-sparsehash.googlecode.com/files/$(SPARSEHASH).$(SPARSEHASH_SUFFIX)
+SPARSEHASH_SOURCE   := $(SRCDIR)/$(SPARSEHASH).$(SPARSEHASH_SUFFIX)
+SPARSEHASH_DIR      := $(BUILDDIR)/$(SPARSEHASH)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(SPARSEHASH_SOURCE):
+       @$(call targetinfo)
+       @$(call get, SPARSEHASH)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SPARSEHASH_PATH        :=  PATH=$(CROSS_PATH)
+SPARSEHASH_ENV         :=  $(CROSS_ENV)
+
+#
+# autoconf
+#
+SPARSEHASH_AUTOCONF := \
+       $(CROSS_AUTOCONF_USR) \
+       --disable-dependency-tracking
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+sparsehash_targetinstall: $(STATEDIR)/sparsehash.targetinstall
+
+$(STATEDIR)/sparsehash.targetinstall: $(sparsehash_targetinstall_deps_default)
+       @$(call targetinfo, $@)
+
+       @$(call install_init, sparsehash)
+       @$(call install_fixup, sparsehash,PACKAGE,sparsehash)
+       @$(call install_fixup, sparsehash,PRIORITY,optional)
+       @$(call install_fixup, sparsehash,VERSION,$(SPARSEHASH_VERSION))
+       @$(call install_fixup, sparsehash,SECTION,base)
+       @$(call install_fixup, sparsehash,AUTHOR,"Markus Rathgeb 
<[email protected]>")
+       @$(call install_fixup, sparsehash,DEPENDS,)
+       @$(call install_fixup, sparsehash,DESCRIPTION,missing)
+
+       @$(call install_finish, sparsehash)
+
+       @$(call touch, $@)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+sparsehash_clean:
+       rm -rf $(STATEDIR)/sparsehash.*
+       rm -rf $(PKGDIR)/sparsehash_*
+       rm -rf $(SPARSEHASH_DIR)


-- 

Markus Rathgeb
Public Key Server: http://wwwkeys.us.pgp.net/ bzw. hkp://wwwkeys.us.pgp.net/
Public Key Server: http://stinkfoot.org:11371/ bzw. hkp://stinkfoot.org

"Erst nachdem wir alles verloren haben, haben wir die Freiheit, alles zu tun."
"It's only after we've lost everything, that we're free to do anything!" 

Attachment: signature.asc
Description: This is a digitally signed message part.

--
ptxdist mailing list
[email protected]

Reply via email to