| Newsgroups |
gmane.linux.lfs.beyond.book |
| Message-ID |
<[email protected]> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository blfs.
commit c4e64ab62140b35aaf4d0bd331412b39789eebe9
Author: zeckma-tech <[email protected]>
AuthorDate: Mon Jun 22 12:51:41 2026 -0600
Added nlohmann-json.
Needed for Wayfire.
---
general/genlib/genlib.xml | 1 +
general/genlib/nlohmann-json.xml | 139 +++++++++++++++++++++++++++++++++++++
introduction/welcome/changelog.xml | 3 +
kde/kf-apps/kddockwidgets.xml | 4 +-
packages.ent | 1 +
5 files changed, 146 insertions(+), 2 deletions(-)
diff --git a/general/genlib/genlib.xml b/general/genlib/genlib.xml
index 9856ee07fd..461e04f3a3 100644
--- a/general/genlib/genlib.xml
+++ b/general/genlib/genlib.xml
@@ -154,6 +154,7 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="log4cplus.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="lzo.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mtdev.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nlohmann-json.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nodejs.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="npth.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="nspr.xml"/>
diff --git a/general/genlib/nlohmann-json.xml b/general/genlib/nlohmann-json.xml
new file mode 100644
index 0000000000..c7371ae8ea
--- /dev/null
+++ b/general/genlib/nlohmann-json.xml
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+ <!ENTITY % general-entities SYSTEM "../../general.ent">
+ %general-entities;
+
+ <!ENTITY nlohmann-json-download-http
+ "https://github.com/nlohmann/json/archive/v&nlohmann-json-version;/json-&nlohmann-json-version;.tar.gz">
+ <!ENTITY nlohmann-json-md5sum "c2528c3e04faccaaee44f1f8f3d30d99">
+ <!ENTITY nlohmann-json-size "9.3 MB">
+ <!ENTITY nlohmann-json-buildsize "21 MB (add 477 MB for tests)">
+ <!ENTITY nlohmann-json-time "less than 0.1 SBU (add 5.8 SBU for tests)">
+]>
+
+<sect1 id="nlohmann-json" xreflabel="nlohmann-json-&nlohmann-json-version;">
+ <?dbhtml filename="nlohmann-json.html"?>
+
+ <title>nlohmann-json-&nlohmann-json-version;</title>
+
+ <indexterm zone="nlohmann-json">
+ <primary sortas="a-nlohmann-json">nlohmann-json</primary>
+ </indexterm>
+
+ <sect2 role="package">
+ <title>Introduction to nlohmann-json</title>
+
+ <para>
+ The nlohmann-json package provides a header-only in-memory JSON and
+ interface library for C++. The package is simply called
+ <quote>json</quote>, but most refer to it as <quote>nlohmann json</quote>
+ to reduce ambiguity, and is done so here.
+ </para>
+
+ &lfs130_checked;
+
+ <bridgehead renderas="sect3">Package Information</bridgehead>
+ <itemizedlist spacing="compact">
+ <listitem>
+ <para>
+ Download (HTTP): <ulink url="&nlohmann-json-download-http;"/>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Download MD5 sum: &nlohmann-json-md5sum;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Download size: &nlohmann-json-size;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Estimated disk space required: &nlohmann-json-buildsize;
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Estimated build time: &nlohmann-json-time;
+ </para>
+ </listitem>
+ </itemizedlist>
+
+ <bridgehead renderas="sect3">nlohmann-json Dependencies</bridgehead>
+
+ <bridgehead renderas="sect4">Required</bridgehead>
+ <para role="required">
+ <xref linkend="cmake"/>
+ </para>
+
+ </sect2>
+
+ <sect2 role="installation">
+ <title>Installation of nlohmann-json</title>
+
+ <para>
+ Install nlohmann-json by running the following commands:
+ </para>
+
+<screen><userinput>mkdir build &&
+cd build &&
+
+cmake -D CMAKE_INSTALL_PREFIX=/usr \
+ -D CMAKE_BUILD_TYPE=Release \
+ -D JSON_BuildTests=OFF \
+ -G Ninja ..</userinput></screen>
+
+ <para>
+ If you removed the <parameter>-D JSON_BuildTests=OFF</parameter>
+ parameter, run the test suite by issuing
+ <command>ninja && ninja test</command>. 4 tests are known to fail
+ which fetch contents, but they require that a Git repository for the
+ project is set up.
+ </para>
+
+ <para>
+ Now, as the &root; user:
+ </para>
+
+<screen role="root"><userinput>ninja install</userinput></screen>
+
+ </sect2>
+
+ <sect2 role="commands">
+ <title>Command Explanations</title>
+
+ <para>
+ <parameter>-D JSON_BuildTests=OFF</parameter>:
+ This parameter disables building tests, as they can take a while to
+ build. Remove this option if you want to run the test suite.
+ </para>
+
+ </sect2>
+
+ <sect2 role="content">
+ <title>Contents</title>
+
+ <segmentedlist>
+ <segtitle>Installed Programs</segtitle>
+ <segtitle>Installed Libraries</segtitle>
+ <segtitle>Installed Directories</segtitle>
+
+ <seglistitem>
+ <seg>
+ None
+ </seg>
+ <seg>
+ None
+ </seg>
+ <seg>
+ /usr/include/nlohmann and /usr/share/cmake/nlohmann_json
+ </seg>
+ </seglistitem>
+ </segmentedlist>
+
+ </sect2>
+
+</sect1>
diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml
index dfa205e2b4..248f354d93 100644
--- a/introduction/welcome/changelog.xml
+++ b/introduction/welcome/changelog.xml
@@ -42,6 +42,9 @@
<listitem>
<para>June 22nd, 2026</para>
<itemizedlist>
+ <listitem>
+ <para>[zeckma] - Added nlohmann-json.</para>
+ </listitem>
<listitem>
<para>[pierre] - Update to mutter-50.2. Fixes
<ulink url="&blfs-ticket-root;23482">#23482</ulink>.</para>
diff --git a/kde/kf-apps/kddockwidgets.xml b/kde/kf-apps/kddockwidgets.xml
index 5100a416f6..b332b140cf 100644
--- a/kde/kf-apps/kddockwidgets.xml
+++ b/kde/kf-apps/kddockwidgets.xml
@@ -77,8 +77,8 @@
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
- <ulink url="https://github.com/KDAB/KDBindings">KDBindings</ulink>,
- <ulink url="https://github.com/nlohmann/json">nlohmann_json</ulink>, and
+ <xref linkend="nlohmann-json"/>,
+ <ulink url="https://github.com/KDAB/KDBindings">KDBindings</ulink>, and
<ulink url="https://github.com/gabime/spdlog">spdlog</ulink>
</para>
diff --git a/packages.ent b/packages.ent
index 6a9f0d7a67..c7691d3842 100644
--- a/packages.ent
+++ b/packages.ent
@@ -198,6 +198,7 @@
<!ENTITY log4cplus-release "2_1_2">
<!ENTITY lzo-version "2.10">
<!ENTITY mtdev-version "1.1.7">
+<!ENTITY nlohmann-json-version "3.12.0">
<!ENTITY nodejs-version "24.17.0">
<!ENTITY npth-version "1.8">
<!ENTITY nspr-version "4.39">
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/blfs-book
Unsubscribe: See the above information page