Skip to content

Commit

Permalink
devel/libcdada: new port in prepartion for net-mgmt/pmacct update
Browse files Browse the repository at this point in the history
Small library that offers basic data structures (list, set, map...)
in a pure C API for user-space applications. Key features:

- Easy to use, portable
- No "magic" MACROs, and no need to modify your data structures
  (except, perhaps, for __attribute__((packed)))
- Stable and well-tested backend engine (libstdc++) for most of
  the data structures
- Reasonable performance - comparable to libstdc++
  • Loading branch information
opsec committed Feb 27, 2023
1 parent a3dee70 commit a1a26e6
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -1155,6 +1155,7 @@
SUBDIR += libburn
SUBDIR += libcbor
SUBDIR += libccid
SUBDIR += libcdada
SUBDIR += libcdb
SUBDIR += libcds
SUBDIR += libcfu
Expand Down
19 changes: 19 additions & 0 deletions devel/libcdada/Makefile
@@ -0,0 +1,19 @@
PORTNAME= libcdada
DISTVERSION= 0.4.0
CATEGORIES= devel

MAINTAINER= pi@FreeBSD.org
COMMENT= Basic data structures in C as libstdc++ wrapper
WWW= https://github.com/msune/libcdada

LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

USES= autoreconf pkgconfig python:3.8+ shebangfix
SHEBANG_FILES= tools/cdada-gen
USE_GITHUB= yes
GNU_CONFIGURE= yes
GH_ACCOUNT= msune
GH_TAGNAME= 4eb0b61

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/libcdada/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1677488705
SHA256 (msune-libcdada-0.4.0-4eb0b61_GH0.tar.gz) = 05271adabadbdc9c77a78fefbe8eb30aaebdfa7e8345fc41de8947555070b410
SIZE (msune-libcdada-0.4.0-4eb0b61_GH0.tar.gz) = 1777253
9 changes: 9 additions & 0 deletions devel/libcdada/pkg-descr
@@ -0,0 +1,9 @@
Small library that offers basic data structures (list, set, map...)
in a pure C API for user-space applications. Key features:

- Easy to use, portable
- No "magic" MACROs, and no need to modify your data structures
(except, perhaps, for __attribute__((packed)))
- Stable and well-tested backend engine (libstdc++) for most of
the data structures
- Reasonable performance - comparable to libstdc++
26 changes: 26 additions & 0 deletions devel/libcdada/pkg-plist
@@ -0,0 +1,26 @@
bin/cdada-gen
include/cdada.h
include/cdada/__common_internal.h
include/cdada/__list_internal.h
include/cdada/__map_internal.h
include/cdada/__queue_internal.h
include/cdada/__set_internal.h
include/cdada/__stack_internal.h
include/cdada/bbitmap.h
include/cdada/list.h
include/cdada/list_custom_cc.h
include/cdada/map.h
include/cdada/map_custom_cc.h
include/cdada/queue.h
include/cdada/queue_custom_cc.h
include/cdada/set.h
include/cdada/set_custom_cc.h
include/cdada/stack.h
include/cdada/stack_custom_cc.h
include/cdada/str.h
include/cdada/utils.h
include/cdada/version.h
lib/libcdada.a
lib/libcdada.so
lib/libcdada.so.0
lib/libcdada.so.0.0.0

0 comments on commit a1a26e6

Please sign in to comment.