From 2057d3ae627c2ecc1abc06651cd8f007a0cd35ec Mon Sep 17 00:00:00 2001 From: jasper Date: Wed, 28 Jun 2006 17:22:52 +0000 Subject: [PATCH] import uthash 1.1 In scripting languages like Perl, hashes are used all the time. In C, hashes don't exist in the language itself. This software provides a hash for C structures. ok alek --- devel/uthash/Makefile | 34 +++++++++++++++++++++++ devel/uthash/distinfo | 4 +++ devel/uthash/patches/patch-tests_Makefile | 16 +++++++++++ devel/uthash/pkg/DESCR | 3 ++ devel/uthash/pkg/PLIST | 13 +++++++++ 5 files changed, 70 insertions(+) create mode 100644 devel/uthash/Makefile create mode 100644 devel/uthash/distinfo create mode 100644 devel/uthash/patches/patch-tests_Makefile create mode 100644 devel/uthash/pkg/DESCR create mode 100644 devel/uthash/pkg/PLIST diff --git a/devel/uthash/Makefile b/devel/uthash/Makefile new file mode 100644 index 00000000000..36f7ec321bf --- /dev/null +++ b/devel/uthash/Makefile @@ -0,0 +1,34 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2006/06/28 17:22:52 jasper Exp $ + +COMMENT= "C macros to add, find and delete items from a hash" + +DISTNAME= uthash-1.1 +CATEGORIES= devel + +HOMEPAGE= http://uthash.sf.net/ +MAINTAINER= Jasper Lievisse Adriaanse + +# BSD +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=uthash/} +EXTRACT_SUFX= .tar.bz2 + +NO_BUILD= Yes +PKG_ARCH= * + +do-install: + ${INSTALL_DATA} ${WRKSRC}/src/uthash.h ${PREFIX}/include + ${INSTALL_MAN} ${WRKSRC}/doc/man/uthash.3 ${PREFIX}/man/man3 + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/uthash/img + ${INSTALL_DATA} ${WRKSRC}/doc/html/*.{css,html} \ + ${PREFIX}/share/doc/uthash + ${INSTALL_DATA} ${WRKSRC}/doc/html/img/* ${PREFIX}/share/doc/uthash/img + +do-regress: + @cd ${WRKSRC}/tests/ && ${MAKE} run_tests + +.include diff --git a/devel/uthash/distinfo b/devel/uthash/distinfo new file mode 100644 index 00000000000..9812468ea30 --- /dev/null +++ b/devel/uthash/distinfo @@ -0,0 +1,4 @@ +MD5 (uthash-1.1.tar.bz2) = 509074ab17d3a89a49f5b4a659fe55d2 +RMD160 (uthash-1.1.tar.bz2) = 6f9a0c18f728ee255344fa772dbb19e4444c61fe +SHA1 (uthash-1.1.tar.bz2) = 082e71508101de15dd65ec445c6ff28f78099b64 +SIZE (uthash-1.1.tar.bz2) = 69368 diff --git a/devel/uthash/patches/patch-tests_Makefile b/devel/uthash/patches/patch-tests_Makefile new file mode 100644 index 00000000000..2cf907faf7e --- /dev/null +++ b/devel/uthash/patches/patch-tests_Makefile @@ -0,0 +1,16 @@ +$OpenBSD: patch-tests_Makefile,v 1.1.1.1 2006/06/28 17:22:52 jasper Exp $ +--- tests/Makefile.orig Wed Jun 28 20:57:17 2006 ++++ tests/Makefile Wed Jun 28 20:57:38 2006 +@@ -3,11 +3,7 @@ FUNCS = BER SAX FNV OAT JEN JSW + UTILS = bkt + PROGS = test1 test2 test3 test4 test5 test6 test7 test8 test9 \ + test10 test11 test12 test13 test14 test15 test16 +-CFLAGS = -I$(HASHDIR) -g +- +-ifeq ($(HASH_DEBUG),1) +-CFLAGS += -DHASH_DEBUG=1 +-endif ++CFLAGS += -I$(HASHDIR) -g + + all: $(PROGS) $(UTILS) $(FUNCS) run_tests + diff --git a/devel/uthash/pkg/DESCR b/devel/uthash/pkg/DESCR new file mode 100644 index 00000000000..e139c5adb33 --- /dev/null +++ b/devel/uthash/pkg/DESCR @@ -0,0 +1,3 @@ +In scripting languages like Perl, hashes are used all the time. In C, +hashes don't exist in the language itself. This software provides a hash +for C structures. diff --git a/devel/uthash/pkg/PLIST b/devel/uthash/pkg/PLIST new file mode 100644 index 00000000000..8fe3c2683bc --- /dev/null +++ b/devel/uthash/pkg/PLIST @@ -0,0 +1,13 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2006/06/28 17:22:52 jasper Exp $ +include/uthash.h +@man man/man3/uthash.3 +share/doc/uthash/ +share/doc/uthash/img/ +share/doc/uthash/img/banner.png +share/doc/uthash/img/banner.svg +share/doc/uthash/img/grad_blue.png +share/doc/uthash/img/grad_blue.svg +share/doc/uthash/index.html +share/doc/uthash/styles.css +share/doc/uthash/userguide.html +share/doc/uthash/uthash.3.html