From nobody Fri Mar 04 05:18:02 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 E17501A057EB; Fri, 4 Mar 2022 05:18:02 +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 4K8x2L63F9z3Pkg; Fri, 4 Mar 2022 05:18:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646371082; 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=Rgr5sMLbASwluttol/aTZxRO1x2Sv74pxJsx8gWgyQU=; b=A1NKhJIdv9X/m+BPPo7lIj7pTkZyKEH4cSRPmdSBSOWaIph8XlViNof0CsxLCvylHLzMM6 inbB5d3mZ6w7n7GHBLWNewG3Cm0dCTZ1OKJI2HAlpHuWjC/NEaTEP8r4AwfQ0C2n53NY4R QmA8uhmq6M1woE93mkBR0Kx4o7WjErSej3Xsxr18J9H620GwmkYkvIdJys4sbrCtuZbiaA GWcchCZYDdkoYfpaNGDRyuYe9QLy6Fx9p8RuHAcG6YM2kt+pI2FKBMqgCNCO0rzz/L77Ye K+Jr+SKj9iXTfTbQa76LsdN4D851SaYx9JEzhkoc9/7ZdcsJfH12WXPP5tHUtw== 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 AF83625CB7; Fri, 4 Mar 2022 05:18:02 +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 2245I2uE098530; Fri, 4 Mar 2022 05:18:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2245I2Ef098529; Fri, 4 Mar 2022 05:18:02 GMT (envelope-from git) Date: Fri, 4 Mar 2022 05:18:02 GMT Message-Id: <202203040518.2245I2Ef098529@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Tobias C. Berner" Subject: git: c6d8fb35db81 - main - textproc/libxmlb: New port - Library to help create and query binary XML blobs 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: tcberner X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c6d8fb35db81eaa939c3354462ce16171f8ffb98 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1646371082; 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=Rgr5sMLbASwluttol/aTZxRO1x2Sv74pxJsx8gWgyQU=; b=tFp6Csz6G8gPBZ3gimmU7G/aJzuTmLippPI1O31F2oTviEQ+osKaxgA8gEMjtKlt61CczF 7xWrX3Lm3KfQh2k3KI/si9ulNPe/ucWnNfMoREodJhrYCMUKw61UTLgr2NO7HPL1RXrMAJ /CWENd/94INSxNktE8oZNN6zpbcUwtWTLGEsJmmes4kFt0vW2RG6nB7fMGPjqIb5j8f0D3 0BtRwzw+iVwt8W/uq/Lf3CwQIZtmatvzdxDYU0DMKpH/oDa/W36grz6kOCuEmmCBe5W7iE avMEinb2K8SS2Rnp8ImWaTOT6LRmOAbL/KD7LVjb+VESXbC26eD33tPjuEmyzQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1646371082; a=rsa-sha256; cv=none; b=wSyKMH85ATw+wkK3nNi0rt+IMeL/+Yo3tOw8yi+XWWBvR3rzSMZRCDDm4Y9y+22D2v9xLy CYuuQODPN1pAE9oT8c5abhIzXw1RpG4dqBDPCXYNE5R3yh9jphUiUUZrJ3qDwx+CirmXrr vfxPAIe/ekZw3QyoCwOC74JqKSKQiysRJ+ijq4OZbMIHE3hQmIVQlpqQHqSO/lHwCDRMIt 5WEb4oFvKvr4cgQsxi6fisNI5rOuQ62t0Z2SD3npCLQchCMB4UJRXNIjXpFjXKOOkFmagJ cNnEhW31eVnAE51OBXlhuu4y5GHBLbDgT/W0IqHdqMoYLtF2k2emE+TuoSQFEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tcberner: URL: https://cgit.FreeBSD.org/ports/commit/?id=c6d8fb35db81eaa939c3354462ce16171f8ffb98 commit c6d8fb35db81eaa939c3354462ce16171f8ffb98 Author: Tobias C. Berner AuthorDate: 2022-03-04 05:09:04 +0000 Commit: Tobias C. Berner CommitDate: 2022-03-04 05:16:56 +0000 textproc/libxmlb: New port - Library to help create and query binary XML blobs XML is slow to parse and strings inside the document cannot be memory mapped as they do not have a trailing NUL char. The libxmlb library takes XML source, and converts it to a structured binary representation with a deduplicated string table -- where the strings have the NULs included. This allows an application to mmap the binary XML file, do an XPath query and return some strings without actually parsing the entire document. This is all done using (almost) zero allocations and no actual copying of the binary data. WWW: https://github.com/hughsie/libxmlb PR: 258541 --- textproc/Makefile | 1 + textproc/libxmlb/Makefile | 20 +++++++++++++++ textproc/libxmlb/distinfo | 3 +++ textproc/libxmlb/pkg-descr | 10 ++++++++ textproc/libxmlb/pkg-plist | 62 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 96 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 1df606532a40..4061d74103a3 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -409,6 +409,7 @@ SUBDIR += libxdiff SUBDIR += libxml++26 SUBDIR += libxml2 + SUBDIR += libxmlb SUBDIR += libxmlbird SUBDIR += libxode SUBDIR += libxslt diff --git a/textproc/libxmlb/Makefile b/textproc/libxmlb/Makefile new file mode 100644 index 000000000000..1c546add1dc1 --- /dev/null +++ b/textproc/libxmlb/Makefile @@ -0,0 +1,20 @@ +PORTNAME= libxmlb +DISTVERSION= 0.3.6 +CATEGORIES= textproc + +MAINTAINER= desktop@FreeBSD.org +COMMENT= Library to help create and query binary XML blobs + +LICENSE= LGPL21 + +BUILD_DEPENDS= gtkdoc-scan:textproc/gtk-doc +LIB_DEPENDS= libstemmer.so:textproc/snowballstemmer + +USES= gnome meson pkgconfig localbase:ldflags +USE_GITHUB= yes +GH_ACCOUNT= hughsie +USE_GNOME= glib20 introspection:build + +MESON_ARGS= -Dstemmer=true + +.include diff --git a/textproc/libxmlb/distinfo b/textproc/libxmlb/distinfo new file mode 100644 index 000000000000..ff2d6125997b --- /dev/null +++ b/textproc/libxmlb/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1646369692 +SHA256 (hughsie-libxmlb-0.3.6_GH0.tar.gz) = cb529d055c63d705bafd17b5fab8e36153292533668a0aba853514ed0e42862c +SIZE (hughsie-libxmlb-0.3.6_GH0.tar.gz) = 118521 diff --git a/textproc/libxmlb/pkg-descr b/textproc/libxmlb/pkg-descr new file mode 100644 index 000000000000..b9b3b9fb6d21 --- /dev/null +++ b/textproc/libxmlb/pkg-descr @@ -0,0 +1,10 @@ +XML is slow to parse and strings inside the document cannot be memory mapped as +they do not have a trailing NUL char. The libxmlb library takes XML source, and +converts it to a structured binary representation with a deduplicated string +table -- where the strings have the NULs included. + +This allows an application to mmap the binary XML file, do an XPath query and +return some strings without actually parsing the entire document. This is all +done using (almost) zero allocations and no actual copying of the binary data. + +WWW: https://github.com/hughsie/libxmlb diff --git a/textproc/libxmlb/pkg-plist b/textproc/libxmlb/pkg-plist new file mode 100644 index 000000000000..690ff7416eab --- /dev/null +++ b/textproc/libxmlb/pkg-plist @@ -0,0 +1,62 @@ +include/libxmlb-2/libxmlb/xb-builder-fixup.h +include/libxmlb-2/libxmlb/xb-builder-node.h +include/libxmlb-2/libxmlb/xb-builder-source-ctx.h +include/libxmlb-2/libxmlb/xb-builder-source.h +include/libxmlb-2/libxmlb/xb-builder.h +include/libxmlb-2/libxmlb/xb-machine.h +include/libxmlb-2/libxmlb/xb-node-query.h +include/libxmlb-2/libxmlb/xb-node-silo.h +include/libxmlb-2/libxmlb/xb-node.h +include/libxmlb-2/libxmlb/xb-opcode.h +include/libxmlb-2/libxmlb/xb-query-context.h +include/libxmlb-2/libxmlb/xb-query.h +include/libxmlb-2/libxmlb/xb-silo-export.h +include/libxmlb-2/libxmlb/xb-silo-query.h +include/libxmlb-2/libxmlb/xb-silo.h +include/libxmlb-2/libxmlb/xb-stack.h +include/libxmlb-2/libxmlb/xb-string.h +include/libxmlb-2/libxmlb/xb-value-bindings.h +include/libxmlb-2/libxmlb/xb-version.h +include/libxmlb-2/xmlb.h +lib/girepository-1.0/Xmlb-2.0.typelib +lib/libxmlb.so +lib/libxmlb.so.2 +lib/libxmlb.so.2.0.0 +libdata/pkgconfig/xmlb.pc +libexec/installed-tests/libxmlb/test.xml.gz.gz.gz +libexec/installed-tests/libxmlb/xb-self-test +libexec/xb-tool +share/gir-1.0/Xmlb-2.0.gir +share/gtk-doc/html/libxmlb/annotation-glossary.html +share/gtk-doc/html/libxmlb/api-index-full.html +share/gtk-doc/html/libxmlb/deprecated-api-index.html +share/gtk-doc/html/libxmlb/home.png +share/gtk-doc/html/libxmlb/index.html +share/gtk-doc/html/libxmlb/intro.html +share/gtk-doc/html/libxmlb/left-insensitive.png +share/gtk-doc/html/libxmlb/left.png +share/gtk-doc/html/libxmlb/libxmlb-XbBuilder.html +share/gtk-doc/html/libxmlb/libxmlb-XbBuilderFixup.html +share/gtk-doc/html/libxmlb/libxmlb-XbBuilderNode.html +share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSource.html +share/gtk-doc/html/libxmlb/libxmlb-XbBuilderSourceCtx.html +share/gtk-doc/html/libxmlb/libxmlb-XbMachine.html +share/gtk-doc/html/libxmlb/libxmlb-XbNode.html +share/gtk-doc/html/libxmlb/libxmlb-XbQuery.html +share/gtk-doc/html/libxmlb/libxmlb-XbSilo.html +share/gtk-doc/html/libxmlb/libxmlb-xb-node-query.html +share/gtk-doc/html/libxmlb/libxmlb-xb-opcode.html +share/gtk-doc/html/libxmlb/libxmlb-xb-query-context.html +share/gtk-doc/html/libxmlb/libxmlb-xb-silo-export.html +share/gtk-doc/html/libxmlb/libxmlb-xb-silo-query.html +share/gtk-doc/html/libxmlb/libxmlb-xb-stack.html +share/gtk-doc/html/libxmlb/libxmlb-xb-string.html +share/gtk-doc/html/libxmlb/libxmlb-xb-value-bindings.html +share/gtk-doc/html/libxmlb/libxmlb.devhelp2 +share/gtk-doc/html/libxmlb/libxmlb.html +share/gtk-doc/html/libxmlb/right-insensitive.png +share/gtk-doc/html/libxmlb/right.png +share/gtk-doc/html/libxmlb/style.css +share/gtk-doc/html/libxmlb/up-insensitive.png +share/gtk-doc/html/libxmlb/up.png +share/installed-tests/libxmlb/libxmlb.test