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.
===> The following configuration options are available for libxmlb-0.3.27:
DOCS=on: Build and/or install documentation
TEST=off: Build and/or run tests
===> Use 'make config' to modify these settings
textproc/libxmlb: Update to 0.3.21
Disable installed-tests. These seem harmless, but after the Jia Tan
long-con in xz-utils, best to just disable them since they are unused.
It's also kind of weird/sus to install random test data in general. This
seems to be "Hello, world." stuff for now, be could be more nefarious in
the future. Perhaps I'm just being a bit paranoid, but I don't see any
practical use for these test cases to be installed.
textproc/libxmlb: Switch to upstream release archive
Switch to upstream release archive to follow Porters Handbook more
closely and while at it define LICENSE_FILE
PR: 273120
Approved by: desktop (tcberner)
Sponsored by: Blinkinblox
textproc/libxmlb: update to 0.3.12
New Features:
* Use indexes when binding value (Richard Hughes)
Bugfixes:
* Avoid building errors and debug strings when possible to make XbQuery
faster (Christian Hergert)
* Fix content type detection on macOS (Richard Hughes)
* Inline a number of machine internals to make queries faster
(Christian Hergert)
* Make zstd support optional (sulincix, aliriza)
* Setup various release build options (Christian Hergert)
Changelog: https://github.com/hughsie/libxmlb/releases/tag/0.3.12
textproc/libxmlb: update to 0.3.11
Version 0.3.11
~~~~~~~~~~~~~~
Released: 2023-02-20
New Features:
- Add limited support for XPath 1.0 'in' (Richard Hughes)
- Add support for zstd (Richard Hughes)
Bugfixes:
- Do not assert() when decompressing invalid LZMA (Richard Hughes)
textproc/libxmlb: update to 0.3.10
Bugfixes:
- Fix dumping and exporting multiple files from the CLI (Richard
Hughes)
- Watch files before loading them into the builder (Philip Withnall)
- Fix potential double free when filtering by language (Sergio Costas
Rodriguez)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
textproc/libxmlb: update to 0.3.9
Bugfixes:
- Fix the crash for when the root tree has no children (Richard Hughes)
- Fix the crash when getting the element for the [empty] root (Richard Hughes)
- Install xb-tool into bindir (Richard Hughes)
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