From nobody Mon Jul 18 07:01:00 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LmXtN33mxz4WVvV; Mon, 18 Jul 2022 07:01:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LmXtN2cw3z4DP2; Mon, 18 Jul 2022 07:01:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658127660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+Gt6luL0clD60JylmYbSXjcqvx66wzbQXLsQgbEFp4o=; b=LMe7eejDNzic7C6Q3Qs19LV77OSZCA8pyAkCL5l/G/z++hR8gmLiJBLmABuPJFcMaqUAJN F6Ebxp4dObV8K05wUgdLCVNB5DNmgH8sLnEJrLR316O2Vv7vnQ1rFVD7tmMNN6pI8EwVl5 ILoJMKjkGh0IV0QEsXYTTMkKE1AQ6dkn3qZ9PJ0bnkrIVnVp01PY48bsG94es7Jh4MvAEm xh7/rW+pcDFznRdRDTVpcuHzY98KgvOfyXzgFRh9r2VAPW7Ztbq5aD7s8r8F9dz4Nq4C+E ZAWmgicQYcqhnWSecXncGZhTNgcJclZMlaPFAHzv1tVGTfVjewbHEMDfFQ9AdA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LmXtN1hFbzW4Z; Mon, 18 Jul 2022 07:01:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 26I710cH010695; Mon, 18 Jul 2022 07:01:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26I710Uf010673; Mon, 18 Jul 2022 07:01:00 GMT (envelope-from git) Date: Mon, 18 Jul 2022 07:01:00 GMT Message-Id: <202207180701.26I710Uf010673@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nuno Teixeira Subject: git: 5cb56fb0db23 - main - devel/genht: New port: Simple generic hash table implementation in C List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eduardo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5cb56fb0db2319dc56d72143729390b5e9977b63 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658127660; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+Gt6luL0clD60JylmYbSXjcqvx66wzbQXLsQgbEFp4o=; b=ubLqn6cJ0xrurfFxBxUwpErcSx0ZC6YyCxuLJCaWf5gNrii7KHEsFdDuf99X8Wpbrd9E0D 73CKyNTJlP4Kp6a+TmC3AcMRgS/fsH65GFFVYnsdwTnxrG+zTPyc46o9k/clccmXJHzzTP NAZRu6xOUWyACbBS8hF5+GVA+sbIgTfBYBnMU0Z7aFTyEfeYPxX8EC/7kJYBkotUZQtTpH RzmxxvdvhcWZ5BqPU/PrXPu1jkqVbA8J4yyy8nOVCMKcoaLk6+umqq6JqPzurutv/s+gwc cDlX9B3yl63tLUlpdIXBhdZFTtvhanFkmBSS7Io+W3qeBbDPfYp+ba8ZZft5cQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658127660; a=rsa-sha256; cv=none; b=avrtvVzvjd7StTxp0aBAl8GARVyLxiEAw8PeE04oHBJgWVsq3ZWtOAqwxb8lkJ5a2iY/sO /gFPdH7TZdk+1yKfJdw2aeIAPn4hIV00/O42WQ5AlQIb7BngUFqOFvyiZFU+dMwCwcfb8k G1PCtrLr8+LiO2SR5s232eSOOamNZKKVH5BfNohoqz3SssnB8ZaR4HdZPcEdPd5kjbcV6F u/iBsx31pGerqyhSPvrNMyjMKcmTyQ+BvgZgBw312PXETUPyaD9irYBUzcWVXoEMvl0A/1 5tFhxG3ibGKew1shGOk8WpahkR5+pROlKp4RDhNxUjMuucUn4QAzYXb/K92hiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=5cb56fb0db2319dc56d72143729390b5e9977b63 commit 5cb56fb0db2319dc56d72143729390b5e9977b63 Author: Robert Clausecker AuthorDate: 2022-07-18 06:57:56 +0000 Commit: Nuno Teixeira CommitDate: 2022-07-18 07:00:24 +0000 devel/genht: New port: Simple generic hash table implementation in C - submiter becomes maintainer genht is a simple generic hash table implementation in C. Uses open addressing scheme with space doubling. Type generics is achieved by ugly name prefixing macros. WWW: http://www.repo.hu/projects/genht/ PR: 265261 --- devel/Makefile | 1 + devel/genht/Makefile | 28 ++++++++++++++++++++++++++++ devel/genht/distinfo | 3 +++ devel/genht/files/patch-src_Makefile | 11 +++++++++++ devel/genht/pkg-descr | 5 +++++ devel/genht/pkg-plist | 17 +++++++++++++++++ 6 files changed, 65 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 90750a0c477e..c31ba5007a4e 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -759,6 +759,7 @@ SUBDIR += gearmand SUBDIR += generate SUBDIR += gengetopt + SUBDIR += genht SUBDIR += genie SUBDIR += genromfs SUBDIR += getoptions diff --git a/devel/genht/Makefile b/devel/genht/Makefile new file mode 100644 index 000000000000..3da3305f954e --- /dev/null +++ b/devel/genht/Makefile @@ -0,0 +1,28 @@ +PORTNAME= genht +DISTVERSION= 1.1.3 +CATEGORIES= devel +MASTER_SITES= http://www.repo.hu/projects/genht/releases/ + +MAINTAINER= fuz@fuz.su +COMMENT= Simple generic hash table implementation in C + +LICENSE= PD + +USES= tar:bz2 +USE_LDCONFIG= yes + +MAKE_ARGS+= GENHT_CFLAGS='${CFLAGS}' \ + GENHT_LDFLAGS='${STRIP} ${LDFLAGS}' \ + PREFIX=${PREFIX} + +PORTEXAMPLES= Makefile example.c examplev.c + +OPTIONS_DEFINE= EXAMPLES + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} +.for f in ${PORTEXAMPLES} + ${INSTALL_DATA} ${WRKSRC}/doc/$f ${STAGEDIR}${EXAMPLESDIR} +.endfor + +.include diff --git a/devel/genht/distinfo b/devel/genht/distinfo new file mode 100644 index 000000000000..897f4e537d96 --- /dev/null +++ b/devel/genht/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1658043005 +SHA256 (genht-1.1.3.tar.bz2) = 9861a35c30b5d0023c5f50fa8bb44c3e1df15c232de155888faa492f71f3b1cc +SIZE (genht-1.1.3.tar.bz2) = 10936 diff --git a/devel/genht/files/patch-src_Makefile b/devel/genht/files/patch-src_Makefile new file mode 100644 index 000000000000..2e3e0fc32ba1 --- /dev/null +++ b/devel/genht/files/patch-src_Makefile @@ -0,0 +1,11 @@ +--- src/Makefile.orig 2022-07-17 07:03:04 UTC ++++ src/Makefile +@@ -35,7 +35,7 @@ mainsi: mainsi.o htsi.o + $(CC) -o $@ mainsi.o htsi.o $(LDFLAGS) + + $(LIBSO): $(OBJS) +- $(CC) $(LDFLAGS) -shared -dynamic -rdynamic -o $@ $(OBJS) ++ $(CC) $(LDFLAGS) -shared -dynamic -rdynamic -Wl,-soname,$(LIBSO1) -o $@ $(OBJS) + + $(LIBA): $(OBJS) + ar rvu $@ $(OBJS) diff --git a/devel/genht/pkg-descr b/devel/genht/pkg-descr new file mode 100644 index 000000000000..de25a2f368a2 --- /dev/null +++ b/devel/genht/pkg-descr @@ -0,0 +1,5 @@ +genht is a simple generic hash table implementation in C. +Uses open addressing scheme with space doubling. +Type generics is achieved by ugly name prefixing macros. + +WWW: http://www.repo.hu/projects/genht/ diff --git a/devel/genht/pkg-plist b/devel/genht/pkg-plist new file mode 100644 index 000000000000..1da49ed62206 --- /dev/null +++ b/devel/genht/pkg-plist @@ -0,0 +1,17 @@ +include/genht/hash.h +include/genht/ht.c +include/genht/ht.h +include/genht/ht_inlines.h +include/genht/ht_utils.h +include/genht/htip.h +include/genht/htpi.h +include/genht/htpp.h +include/genht/htsi.h +include/genht/htsp.h +include/genht/htss.h +include/genht/siphash24.h +include/genht/version.h +lib/libgenht.a +lib/libgenht.so +lib/libgenht.so.1 +lib/libgenht.so.1.1.3