From nobody Mon Jun 5 15:24:05 2023 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 4QZcpG2JZzz4YyCT; Mon, 5 Jun 2023 15:24:06 +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 4QZcpG0cTFz47w1; Mon, 5 Jun 2023 15:24:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685978646; 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=MWpJa4deC/uUEaDZAwMpw++tOnIyH7xUN8NjDaSprbE=; b=ANtvIahiYYekgsWNLvJBOoLBE454x5gOpzxh4Q4frO1pLoVAsMg73UJj9nBZexIRGYWM80 rs5usY1i0MSPDcU2nbdepJ1Nftm7Rxb0qP8jG/s6KdmZCHwLw3J08gZFnjW8Ah1/Y0Bbsx 0gDOeO0139AxOdDeMlt9dNQMQ5QUP4/q1IypGKZgFoe9Ba/k4xslwczHJXxb0d1OxmOAED nkucppriYgyGXlLNPHMtxQsZxZlrCAk5LN6r7TS8nV7Ci5kJM1cfh9BKkj/zdef8tDwLfT RD5ktMSrTaJgDkVoyCmNt3bzn/L5pww/HVUQIYn7Ab+6SBPyvfM/z9bPgLp05Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685978646; 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=MWpJa4deC/uUEaDZAwMpw++tOnIyH7xUN8NjDaSprbE=; b=QwszNUhQZCV0jGNPXRmO6DnAkGKeTSIdkTk/ODsdGXv69Z8yB3rizqwK0wGRDhRh+Q2hJv sAZ+Atk8EDU0M7D/xZC1JOeVd+E5VQAqTupKDArerhLPeWjcd3wpfg18iArVh42Jtobc40 K5ZBgneLeccgCFcSsPHWztv2O1TFlBECX3DRDyauifx9trUkLfh8Gwylyt/lcddk7jGzxV tb3wHscOehCv3GH/x3NT59npvpnDlPb/mRiq1iEfhECtueacoMrwZeN06c/TONiTqfh8aj tTlX4i43tV42Fat9LHyoY6DxjWa1YHoOsH/WQki6MfORqOgzYf59qeu24kMGdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685978646; a=rsa-sha256; cv=none; b=EQmhYRC6ZP9MDf3ZeO8qMa5KbzDfHMk11ysZcsaJq7bCd7hFt9mOKh6pyC5S9aJfB4Fj4I /j5o2mcQoxcgV31iYR5zRR3GevLpkWGAasHFTy1U9M999BuvpI9kigwVKsZihu1f2MrQqB JMwnFNZDoNt56RDNUw/K04u/N7I2C0faEFf/BsRjxUt8jwVBO++i/AhuouqOEsQQwJd9ld Q4V7JwT1ITiNCGdZkBLavOjDRCvpDyW2Q9Qgala3lRO4EzldRp7szRk4puMcNS1X/VRjRd rlR2+rHmvB1dOPHzu48YdVTuSBit2hCcvdEJkzf7tBFXEVmdb8YbhKqGxoIDUA== 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 4QZcpF6pfRzsrh; Mon, 5 Jun 2023 15:24:05 +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 355FO5Yi000077; Mon, 5 Jun 2023 15:24:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 355FO5SZ000076; Mon, 5 Jun 2023 15:24:05 GMT (envelope-from git) Date: Mon, 5 Jun 2023 15:24:05 GMT Message-Id: <202306051524.355FO5SZ000076@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: cd66237c7655 - main - devel/klib: New port: Standalone and lightweight C library 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cd66237c76553835394d95501abc1dbdef795f90 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=cd66237c76553835394d95501abc1dbdef795f90 commit cd66237c76553835394d95501abc1dbdef795f90 Author: Yuri Victorovich AuthorDate: 2023-06-05 15:18:01 +0000 Commit: Yuri Victorovich CommitDate: 2023-06-05 15:24:03 +0000 devel/klib: New port: Standalone and lightweight C library --- devel/Makefile | 1 + devel/klib/Makefile | 26 ++++++++++++++++++++++++++ devel/klib/distinfo | 3 +++ devel/klib/pkg-descr | 10 ++++++++++ devel/klib/pkg-plist | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 86 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 5b8e8b1733ed..9dc1aaa081a9 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1105,6 +1105,7 @@ SUBDIR += kio-extras SUBDIR += kirigami-gallery SUBDIR += kiwix-lib + SUBDIR += klib SUBDIR += kms-cmake-utils SUBDIR += kodi-platform SUBDIR += kokkos diff --git a/devel/klib/Makefile b/devel/klib/Makefile new file mode 100644 index 000000000000..c6559419d987 --- /dev/null +++ b/devel/klib/Makefile @@ -0,0 +1,26 @@ +PORTNAME= klib +DISTVERSION= g20210616 +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Standalone and lightweight C library +WWW= http://attractivechaos.github.io/klib + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +TEST_DEPENDS= check>0:devel/check + +USE_GITHUB= yes +GH_ACCOUNT= attractivechaos +GH_TAGNAME= 9a063b3 + +NO_BUILD= yes +NO_ARCH= yes + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/*.h ${WRKSRC}/*.c ${STAGEDIR}${PREFIX}/include/${PORTNAME} + cd ${WRKSRC} && ${COPYTREE_SHARE} cpp ${STAGEDIR}${PREFIX}/include/${PORTNAME} + +.include diff --git a/devel/klib/distinfo b/devel/klib/distinfo new file mode 100644 index 000000000000..6aa67c8ac6f1 --- /dev/null +++ b/devel/klib/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1685921173 +SHA256 (attractivechaos-klib-g20210616-9a063b3_GH0.tar.gz) = c9fb11aa40955626e6c78b6895f590bae3fd7f3350c1f3b17db89bbb9beb0e73 +SIZE (attractivechaos-klib-g20210616-9a063b3_GH0.tar.gz) = 124373 diff --git a/devel/klib/pkg-descr b/devel/klib/pkg-descr new file mode 100644 index 000000000000..75418d6b7819 --- /dev/null +++ b/devel/klib/pkg-descr @@ -0,0 +1,10 @@ +Klib is a standalone and lightweight C library distributed under MIT/X11 +license. Most components are independent of external libraries, except the +standard C library, and independent of each other. To use a component of +this library, you only need to copy a couple of files to your source code +tree without worrying about library dependencies. + +Klib strives for efficiency and a small memory footprint. Some components, +such as hash table, B-tree, vector and sorting algorithms, are among the most +efficient implementations of similar algorithms or data structures in all +programming languages, in terms of both speed and memory use. diff --git a/devel/klib/pkg-plist b/devel/klib/pkg-plist new file mode 100644 index 000000000000..ec523be83bc2 --- /dev/null +++ b/devel/klib/pkg-plist @@ -0,0 +1,46 @@ +include/klib/bgzf.c +include/klib/bgzf.h +include/klib/cpp/kavl.hpp +include/klib/cpp/khash.hpp +include/klib/cpp/khashl.hpp +include/klib/kalloc.c +include/klib/kalloc.h +include/klib/kavl-lite.h +include/klib/kavl.h +include/klib/kbit.h +include/klib/kbtree.h +include/klib/kdq.h +include/klib/keigen.c +include/klib/keigen.h +include/klib/ketopt.h +include/klib/kexpr.c +include/klib/kexpr.h +include/klib/kgraph.h +include/klib/khash.h +include/klib/khashl.h +include/klib/khmm.c +include/klib/khmm.h +include/klib/klist.h +include/klib/kmath.c +include/klib/kmath.h +include/klib/knetfile.c +include/klib/knetfile.h +include/klib/knhx.c +include/klib/knhx.h +include/klib/kopen.c +include/klib/krmq.h +include/klib/krng.h +include/klib/ksa.c +include/klib/kseq.h +include/klib/kson.c +include/klib/kson.h +include/klib/ksort.h +include/klib/kstring.c +include/klib/kstring.h +include/klib/ksw.c +include/klib/ksw.h +include/klib/kthread.c +include/klib/kthread.h +include/klib/kurl.c +include/klib/kurl.h +include/klib/kvec.h