summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2015-10-07 12:33:16 +0000
committeradam <adam@pkgsrc.org>2015-10-07 12:33:16 +0000
commit23fc0d3e6bd06a31405369ff31a97d7610fde125 (patch)
treecfd7fe6db8bb10d0e7851a3aa805d7677fe6c1e4 /devel
parentb9d78be0c0e15476fada997f4a72c85441d06eff (diff)
downloadpkgsrc-23fc0d3e6bd06a31405369ff31a97d7610fde125.tar.gz
This is a hash table, implemented in C, supporting constant-time
add/find/remove of C structures. Any structure having a unique, arbitrarily-typed key member can be hashed by adding a UT_hash_handle member to the structure and calling these macros.
Diffstat (limited to 'devel')
-rw-r--r--devel/uthash/DESCR4
-rw-r--r--devel/uthash/Makefile20
-rw-r--r--devel/uthash/PLIST27
-rw-r--r--devel/uthash/buildlink3.mk13
-rw-r--r--devel/uthash/distinfo5
5 files changed, 69 insertions, 0 deletions
diff --git a/devel/uthash/DESCR b/devel/uthash/DESCR
new file mode 100644
index 00000000000..0e0bae6d6e0
--- /dev/null
+++ b/devel/uthash/DESCR
@@ -0,0 +1,4 @@
+This is a hash table, implemented in C, supporting constant-time
+add/find/remove of C structures. Any structure having a unique,
+arbitrarily-typed key member can be hashed by adding a UT_hash_handle
+member to the structure and calling these macros.
diff --git a/devel/uthash/Makefile b/devel/uthash/Makefile
new file mode 100644
index 00000000000..fe470bc67ce
--- /dev/null
+++ b/devel/uthash/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2015/10/07 12:33:16 adam Exp $
+
+DISTNAME= uthash-1.9.9
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=troydhanson/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://troydhanson.github.io/uthash/
+COMMENT= Hash table, implemented in C
+LICENSE= 2-clause-bsd
+
+NO_BUILD= yes
+INSTALLATION_DIRS+= include share/doc/uthash
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${DESTDIR}${PREFIX}/share/doc/uthash
+ ${INSTALL_DATA} ${WRKSRC}/src/*.h ${DESTDIR}${PREFIX}/include
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/uthash/PLIST b/devel/uthash/PLIST
new file mode 100644
index 00000000000..fe2513d287f
--- /dev/null
+++ b/devel/uthash/PLIST
@@ -0,0 +1,27 @@
+@comment $NetBSD: PLIST,v 1.1 2015/10/07 12:33:16 adam Exp $
+include/utarray.h
+include/uthash.h
+include/utlist.h
+include/utstring.h
+share/doc/uthash/ChangeLog.html
+share/doc/uthash/ChangeLog.txt
+share/doc/uthash/Makefile
+share/doc/uthash/banner.png
+share/doc/uthash/banner.svg
+share/doc/uthash/google315d692c9c632ed0.html
+share/doc/uthash/index.html
+share/doc/uthash/license.html
+share/doc/uthash/rss.png
+share/doc/uthash/styles.css
+share/doc/uthash/todo.txt
+share/doc/uthash/userguide.html
+share/doc/uthash/userguide.txt
+share/doc/uthash/utarray.html
+share/doc/uthash/utarray.txt
+share/doc/uthash/uthash-mini.png
+share/doc/uthash/uthash-mini.svg
+share/doc/uthash/uthash.png
+share/doc/uthash/utlist.html
+share/doc/uthash/utlist.txt
+share/doc/uthash/utstring.html
+share/doc/uthash/utstring.txt
diff --git a/devel/uthash/buildlink3.mk b/devel/uthash/buildlink3.mk
new file mode 100644
index 00000000000..137b458a2c6
--- /dev/null
+++ b/devel/uthash/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2015/10/07 12:33:16 adam Exp $
+
+BUILDLINK_TREE+= uthash
+
+.if !defined(UTHASH_BUILDLINK3_MK)
+UTHASH_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.uthash+= uthash>=1.9.9
+BUILDLINK_PKGSRCDIR.uthash?= ../../devel/uthash
+BUILDLINK_DEPMETHOD.uthash?= build
+.endif # UTHASH_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -uthash
diff --git a/devel/uthash/distinfo b/devel/uthash/distinfo
new file mode 100644
index 00000000000..bb09b88e4ba
--- /dev/null
+++ b/devel/uthash/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2015/10/07 12:33:16 adam Exp $
+
+SHA1 (uthash-1.9.9.tar.gz) = 562f583d365ab21dc5dc0963241bea415fd26012
+RMD160 (uthash-1.9.9.tar.gz) = 031d5e7655238992595d9996c6c97d8796e79283
+Size (uthash-1.9.9.tar.gz) = 225620 bytes